Return to search.c CVS log | Up to [local] / src / usr.bin / less |
version 1.19, 2017/08/02 19:35:57 | version 1.20, 2019/03/14 16:21:35 | ||
---|---|---|---|
|
|
||
static int | static int | ||
is_ucase(char *str) | is_ucase(char *str) | ||
{ | { | ||
char *str_end = str + strlen(str); | wchar_t ch; | ||
LWCHAR ch; | int len; | ||
while (str < str_end) { | for (; *str != '\0'; str += len) { | ||
ch = step_char(&str, +1, str_end); | if ((len = mbtowc(&ch, str, MB_CUR_MAX)) == -1) { | ||
if (isupper(ch)) | mbtowc(NULL, NULL, MB_CUR_MAX); | ||
len = 1; | |||
} else if (iswupper(ch)) | |||
return (1); | return (1); | ||
} | } | ||
return (0); | return (0); |