uniformize files
This commit is contained in:
parent
5cfa05e180
commit
8c08c4d66b
14
token.cpp
14
token.cpp
|
@ -140,8 +140,8 @@ bool TOKEN::simpleMatch(const TOKEN *tok, const char pattern[])
|
||||||
const char *current, *next;
|
const char *current, *next;
|
||||||
|
|
||||||
current = pattern;
|
current = pattern;
|
||||||
next = strchr(pattern, ' ');
|
next = strchr(pattern, ' ');
|
||||||
if ( !next )
|
if ( !next )
|
||||||
next = pattern + strlen(pattern);
|
next = pattern + strlen(pattern);
|
||||||
|
|
||||||
while ( *current )
|
while ( *current )
|
||||||
|
@ -152,11 +152,11 @@ bool TOKEN::simpleMatch(const TOKEN *tok, const char pattern[])
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
current = next;
|
current = next;
|
||||||
if ( *next )
|
if ( *next )
|
||||||
{
|
{
|
||||||
next = strchr(++current, ' ');
|
next = strchr(++current, ' ');
|
||||||
if ( !next )
|
if ( !next )
|
||||||
next = current + strlen(current);
|
next = current + strlen(current);
|
||||||
}
|
}
|
||||||
tok = tok->next();
|
tok = tok->next();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue