Support between (space) and ~.

This commit is contained in:
Steve 2018-12-10 08:22:25 +00:00
parent 756fc4b25e
commit af99ec8f3d
1 changed files with 2 additions and 2 deletions

View File

@ -402,7 +402,7 @@ static char *nextCharacter(const char *str, int *i)
{ {
bit = (unsigned char)str[*i]; bit = (unsigned char)str[*i];
if ((bit >= ' ' && bit <= 'z') || bit >= 0xC0 || bit == '\0') if ((bit >= ' ' && bit <= '~') || bit >= 0xC0 || bit == '\0')
{ {
if (n > 0) if (n > 0)
{ {
@ -427,7 +427,7 @@ static int strlenMB(char *text)
{ {
bit = (unsigned char)text[i]; bit = (unsigned char)text[i];
if ((bit >= ' ' && bit <= 'z') || bit >= 0xC0) if ((bit >= ' ' && bit <= '~') || bit >= 0xC0)
{ {
n++; n++;
} }