InnoDB Plugin
1.0
|
Macros | |
#define | INNOBASE_FTS0TYPES_IC |
#define | fts_utf8_is_valid(b) (((b) & 0xC0) == 0x80) |
Functions | |
UNIV_INLINE void | fts_utf8_string_dup (fts_string_t *dst, const fts_string_t *src, mem_heap_t *heap) |
UNIV_INLINE int | fts_trx_row_doc_id_cmp (const void *p1, const void *p2) |
UNIV_INLINE int | fts_ranking_doc_id_cmp (const void *p1, const void *p2) |
UNIV_INLINE int | fts_update_doc_id_cmp (const void *p1, const void *p2) |
UNIV_INLINE void | fts_utf8_tolower (fts_string_t *str) |
UNIV_INLINE int | fts_utf8_string_cmp (const void *p1, const void *p2) |
UNIV_INLINE int | fts_utf8_string_cmp_prefix (const void *p1, const void *p2) |
UNIV_INLINE ulint | fts_utf8_decode (const byte **ptr) |
ulint | innobase_strnxfrm (const CHARSET_INFO *cs, const uchar *p2, const ulint len2) |
UNIV_INLINE ulint | fts_select_index (const CHARSET_INFO *cs, const byte *str, ulint len) |
UNIV_INLINE ulint | fts_select_next_index (const CHARSET_INFO *cs, const byte *str, ulint len) |
UNIV_INLINE const char * | fts_get_suffix (ulint selected) |
UNIV_INLINE ulint | fts_get_n_selectors (void) |
Variables | |
const ulint | UTF8_ERROR |
Full text search types.
Created 2007-03-27 Sunny Bains
UNIV_INLINE ulint fts_get_n_selectors | ( | void | ) |
Get the number of index selectors.
UNIV_INLINE const char* fts_get_suffix | ( | ulint | selected | ) |
Return the selected FTS aux index suffix.
selected | in: selected index |
UNIV_INLINE int fts_ranking_doc_id_cmp | ( | const void * | p1, |
const void * | p2 | ||
) |
Compare two fts_ranking_t doc_ids.
p1 | in: id1 |
p2 | in: id2 |
UNIV_INLINE ulint fts_select_index | ( | const CHARSET_INFO * | cs, |
const byte * | str, | ||
ulint | len | ||
) |
Select the FTS auxiliary index for the given character.
cs | in: Charset |
str | in: string |
len | in: string length |
UNIV_INLINE ulint fts_select_next_index | ( | const CHARSET_INFO * | cs, |
const byte * | str, | ||
ulint | len | ||
) |
Select the next FTS auxiliary index for the given character.
cs | in: Charset |
str | in: string |
len | in: string length |
UNIV_INLINE int fts_trx_row_doc_id_cmp | ( | const void * | p1, |
const void * | p2 | ||
) |
Compare two fts_trx_row_t doc_ids.
p1 | in: id1 |
p2 | in: id2 |
UNIV_INLINE int fts_update_doc_id_cmp | ( | const void * | p1, |
const void * | p2 | ||
) |
Compare two fts_update_t doc_ids.
p1 | in: id1 |
p2 | in: id2 |
UNIV_INLINE ulint fts_utf8_decode | ( | const byte ** | ptr | ) |
Decode a UTF-8 character.
http://www.unicode.org/versions/Unicode4.0.0/ch03.pdf:
Scalar Value 1st Byte 2nd Byte 3rd Byte 4th Byte 00000000 0xxxxxxx 0xxxxxxx 00000yyy yyxxxxxx 110yyyyy 10xxxxxx zzzzyyyy yyxxxxxx 1110zzzz 10yyyyyy 10xxxxxx 000uuuzz zzzzyyyy yyxxxxxx 11110uuu 10zzzzzz 10yyyyyy 10xxxxxx
This function decodes UTF-8 sequences up to 6 bytes (31 bits).
On error *ptr will point to the first byte that was not correctly decoded. This will hopefully help in resyncing the input.
ptr | in/out: pointer to UTF-8 string. The pointer is advanced to the start of the next character. |
UNIV_INLINE int fts_utf8_string_cmp | ( | const void * | p1, |
const void * | p2 | ||
) |
Compare two UTF-8 strings.
p1 | in: key |
p2 | in: node |
UNIV_INLINE int fts_utf8_string_cmp_prefix | ( | const void * | p1, |
const void * | p2 | ||
) |
Compare two UTF-8 strings, and return match (0) if passed in "key" value equals or is the prefix of the "node" value.
p1 | in: key |
p2 | in: node |
UNIV_INLINE void fts_utf8_string_dup | ( | fts_string_t * | dst, |
const fts_string_t * | src, | ||
mem_heap_t * | heap | ||
) |
Duplicate an UTF-8 string.
dst | in: dup to here |
src | in: src string |
heap | in: heap to use |
UNIV_INLINE void fts_utf8_tolower | ( | fts_string_t * | str | ) |
Lowercase an UTF-8 string.
str | in: string |
ulint innobase_strnxfrm | ( | const CHARSET_INFO * | cs, |
const uchar * | p2, | ||
const ulint | len2 | ||
) |
Get the first character's code position for FTS index partition in: string length
cs | in: Character set |
p2 | in: string |