Add warning pragma in Character token for caching character set
This commit is contained in:
@@ -18,4 +18,5 @@
|
||||
- (void)appendString:(NSString *)string;
|
||||
|
||||
- (BOOL)isWhitespaceToken;
|
||||
|
||||
@end
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
|
||||
- (BOOL)isWhitespaceToken
|
||||
{
|
||||
#warning Cache Character Set
|
||||
NSCharacterSet *set = [[NSCharacterSet characterSetWithCharactersInString:@" \t\n\f"] invertedSet];
|
||||
return [_characters rangeOfCharacterFromSet:set].location == NSNotFound;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user