fts_apostrophe_word_break(tok, c)) {
len = char_start_i - start;
tok_append_truncated(tok, data + start, len);
- if (tok->token->used == 0) {
- start = i + char_size;
- continue;
- }
-
- if (fts_tokenizer_generic_simple_current_token(tok, token_r)) {
+ if (tok->token->used > 0 &&
+ fts_tokenizer_generic_simple_current_token(tok, token_r)) {
*skip_r = i + char_size;
return 1;
}
+ start = i + char_size;
}
}
/* word boundary not found yet */
"1.",
- "'quoted text' 'word' 'hlo words' you're bad'''word '''pre post'''",
+ "' ' '' ''' 'quoted text' 'word' 'hlo words' you're bad'''word '''pre post'''",
/* whitespace: with Unicode(utf8) U+FF01(ef bc 81)(U+2000(e2 80 80) and
U+205A(e2 81 9a) and U+205F(e2 81 9f) */