Add warning pragma in Character token for caching character set

This commit is contained in:
iska
2015-02-28 01:04:21 +01:00
parent 098c0fe467
commit fc5ec2c2e4
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -18,4 +18,5 @@
- (void)appendString:(NSString *)string;
- (BOOL)isWhitespaceToken;
@end
+1
View File
@@ -35,6 +35,7 @@
- (BOOL)isWhitespaceToken
{
#warning Cache Character Set
NSCharacterSet *set = [[NSCharacterSet characterSetWithCharactersInString:@" \t\n\f"] invertedSet];
return [_characters rangeOfCharacterFromSet:set].location == NSNotFound;
}