mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
style fixes
This commit is contained in:
@ -145,7 +145,7 @@ byte ft_get_word(CHARSET_INFO *cs, byte **start, byte *end,
|
|||||||
byte ft_simple_get_word(CHARSET_INFO *cs, byte **start, byte *end,
|
byte ft_simple_get_word(CHARSET_INFO *cs, byte **start, byte *end,
|
||||||
FT_WORD *word)
|
FT_WORD *word)
|
||||||
{
|
{
|
||||||
byte *doc=*start;
|
byte *doc= *start;
|
||||||
uint mwc, length;
|
uint mwc, length;
|
||||||
DBUG_ENTER("ft_simple_get_word");
|
DBUG_ENTER("ft_simple_get_word");
|
||||||
|
|
||||||
@ -156,10 +156,10 @@ byte ft_simple_get_word(CHARSET_INFO *cs, byte **start, byte *end,
|
|||||||
if (true_word_char(cs,*doc)) break;
|
if (true_word_char(cs,*doc)) break;
|
||||||
}
|
}
|
||||||
|
|
||||||
mwc=length=0;
|
mwc= length= 0;
|
||||||
for(word->pos=doc; doc<end; length++, doc+=my_mbcharlen(cs, *(uchar *)doc))
|
for (word->pos=doc; doc<end; length++, doc+=my_mbcharlen(cs, *(uchar *)doc))
|
||||||
if (true_word_char(cs,*doc))
|
if (true_word_char(cs,*doc))
|
||||||
mwc=0;
|
mwc= 0;
|
||||||
else if (!misc_word_char(*doc) || mwc++)
|
else if (!misc_word_char(*doc) || mwc++)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -168,7 +168,7 @@ byte ft_simple_get_word(CHARSET_INFO *cs, byte **start, byte *end,
|
|||||||
if (length >= ft_min_word_len && length < ft_max_word_len &&
|
if (length >= ft_min_word_len && length < ft_max_word_len &&
|
||||||
!is_stopword(word->pos, word->len))
|
!is_stopword(word->pos, word->len))
|
||||||
{
|
{
|
||||||
*start=doc;
|
*start= doc;
|
||||||
DBUG_RETURN(1);
|
DBUG_RETURN(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user