|
From: | Richard Frith-Macdonald |
Subject: | Re: NSScanner bug ? |
Date: | Wed, 3 Nov 2004 10:13:55 +0000 |
On 3 Nov 2004, at 09:44, Fabien VALLON wrote:
Hi, With this code NSScanner *scanner = [[NSScanner alloc] initWithString:test]; NSString *aStringValue;if ( [scanner scanCharactersFromSet:[NSCharacterSet uppercaseLetterCharacterSet]intoString:&aStringValue]) NSLog(@"=== %@",aStringValue); I have "THIS" as output. But according to NSScanner doc it should skip whitespace. I am wrong or is it a NSScanner bug ?
You don't say what the input string is ... if it is a string beginning with 'THIS' or whitespace followed by 'THIS', then I would say the output is as expected.
[Prev in Thread] | Current Thread | [Next in Thread] |