Support between (space) and ~.
This commit is contained in:
parent
756fc4b25e
commit
af99ec8f3d
|
@ -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++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue