Add warning pragma in Character token for caching character set

This commit is contained in:
iska committed 2015-02-28 01:04:21 +01:00
1 parent 098c0fe467
commit fc5ec2c2e4
2 files changed
+2

No files matched your search

+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;
}