Home
last modified time | relevance | path

Searched refs:cur_mb_index (Results 1 – 2 of 2) sorted by relevance

/freebsd-11-stable/gnu/usr.bin/grep/
HDdfa.c340 static ssize_t cur_mb_index; /* Byte index of the current scanning multibyte variable
377 if (cur_mb_index) in update_mb_len_index()
378 cur_mb_index = (cur_mb_index >= cur_mb_len)? 0 in update_mb_len_index()
379 : cur_mb_index + 1; in update_mb_len_index()
384 if (! cur_mb_index) in update_mb_len_index()
390 cur_mb_index = 1; in update_mb_len_index()
731 if (MB_CUR_MAX > 1 && cur_mb_index) in lex()
1133 : (((cur_mb_index == 1)? 1 : 0) /* 1st-byte of multibyte char */ in addtok()
1134 + ((cur_mb_index == cur_mb_len)? 2 : 0)); /* last-byte */ in addtok()
1226 while (cur_mb_index > 1 && tok >= 0 && tok < NOTCHAR) in atom()
[all …]
HDChangeLog412 (lex): check cur_mb_index not to misunderstand multibyte characters.
417 (cur_mb_index): new variable.