NSString *foo = @" x ";
NSRange r = [foo rangeOfCharacterFromSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
NSLog(@"foo range = %d,%d",r.location, r.length);
Results in "foo range = 0,1"
So will it ever return a length > 1?
NSString *foo = @" x ";
NSRange r = [foo rangeOfCharacterFromSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
NSLog(@"foo range = %d,%d",r.location, r.length);
Results in "foo range = 0,1"
So will it ever return a length > 1?