• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to check the capital letter?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to check the capital letter? (From: Macarov Anatoli <email@hidden>)

  • Prev by Date: Re: addObserver:
  • Next by Date: Re: Memory Leaks & Instruments Questions
  • Previous by thread: Re: How to check the capital letter?
  • Next by thread: Re: How to check the capital letter?
  • Index(es):
    • Date
    • Thread