49#define FTB_YES (fts_boolean_syntax[0])
50#define FTB_EGAL (fts_boolean_syntax[1])
51#define FTB_NO (fts_boolean_syntax[2])
52#define FTB_INC (fts_boolean_syntax[3])
53#define FTB_DEC (fts_boolean_syntax[4])
54#define FTB_LBR (fts_boolean_syntax[5])
55#define FTB_RBR (fts_boolean_syntax[6])
56#define FTB_NEG (fts_boolean_syntax[7])
57#define FTB_TRUNC (fts_boolean_syntax[8])
58#define FTB_LQUOT (fts_boolean_syntax[10])
59#define FTB_RQUOT (fts_boolean_syntax[11])
91 for (; doc <
end; doc += (mbl > 0 ? mbl : (mbl < 0 ? -mbl : 1))) {
92 mbl =
cs->cset->ctype(
cs, &ctype, doc,
end);
110 info->
quot = (
char *)1;
119 if (info->
prev ==
' ') {
126 }
else if (*doc ==
FTB_NO) {
147 for (word->
pos = doc; doc <
end;
148 doc += (mbl > 0 ? mbl : (mbl < 0 ? -mbl : 1))) {
149 mbl =
cs->cset->ctype(
cs, &ctype, doc,
end);
158 word->
len = (uint)(doc - word->
pos);
Some definitions for full-text indices.
#define DEFAULT_FTB_SYNTAX
Definition: ft_global.h:45
#define FTB_DEC
Definition: fts0tokenize.h:53
#define FTB_RQUOT
Definition: fts0tokenize.h:59
#define FTB_YES
Definition: fts0tokenize.h:49
#define FTB_LQUOT
Definition: fts0tokenize.h:58
#define FTB_EGAL
Definition: fts0tokenize.h:50
bool true_word_char(int c, uint8_t ch)
Check a char is true word.
Definition: fts0tokenize.h:42
#define FTB_NO
Definition: fts0tokenize.h:51
#define FTB_RBR
Definition: fts0tokenize.h:55
#define FTB_INC
Definition: fts0tokenize.h:52
#define FTB_TRUNC
Definition: fts0tokenize.h:57
static const char * fts_boolean_syntax
Boolean search syntax.
Definition: fts0tokenize.h:47
uchar fts_get_word(const CHARSET_INFO *cs, uchar **start, uchar *end, FT_WORD *word, MYSQL_FTPARSER_BOOLEAN_INFO *info)
Tokenizer for ngram referring to ft_get_word(ft_parser.c) in MyISAM.
Definition: fts0tokenize.h:80
#define FTB_LBR
Definition: fts0tokenize.h:54
#define FTB_NEG
Definition: fts0tokenize.h:56
static void start(mysql_harness::PluginFuncEnv *env)
Definition: http_auth_backend_plugin.cc:180
A better implementation of the UNIX ctype(3) library.
static constexpr uint8_t MY_CHAR_L
Definition: m_ctype.h:540
static constexpr uint8_t MY_CHAR_NMR
Definition: m_ctype.h:541
static constexpr uint8_t MY_CHAR_U
Definition: m_ctype.h:539
unsigned char uchar
Definition: my_inttypes.h:52
Definition: commit_order_queue.h:34
Cursor end()
A past-the-end Cursor.
Definition: rules_table_service.cc:192
@ FT_TOKEN_RIGHT_PAREN
Definition: plugin_ftparser.h:95
@ FT_TOKEN_LEFT_PAREN
Definition: plugin_ftparser.h:94
@ FT_TOKEN_WORD
Definition: plugin_ftparser.h:93
@ FT_TOKEN_EOF
Definition: plugin_ftparser.h:92
Definition: m_ctype.h:421
FTS query token.
Definition: fts0tokenize.h:62
uint len
word len
Definition: fts0tokenize.h:64
double weight
word weight, unused in innodb
Definition: fts0tokenize.h:65
uchar * pos
word start pointer
Definition: fts0tokenize.h:63
Definition: plugin_ftparser.h:133
char * quot
Definition: plugin_ftparser.h:142
char trunc
Definition: plugin_ftparser.h:138
int weight_adjust
Definition: plugin_ftparser.h:136
char prev
Definition: plugin_ftparser.h:141
enum enum_ft_token_type type
Definition: plugin_ftparser.h:134
int yesno
Definition: plugin_ftparser.h:135
char wasign
Definition: plugin_ftparser.h:137