Re: How to check the capital letter?
Re: How to check the capital letter?
- Subject: Re: How to check the capital letter?
- From: Marco Masser <email@hidden>
- Date: Mon, 11 Aug 2008 16:49:37 +0200
How to check the capital letter?
If you don't want to mess around with NSCharacterSet and NSScanner,
you could also do this:
NSString *string = @"abcABC";
NSUInteger index = 0; // The character at this index will be checked
NSString *character = [string substringWithRange:NSMakeRange(index, 1)];
NSLog(@"is uppercase: %i", [character isEqualToString:[character
uppercaseString]]);
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden