Re: Changing Case
Re: Changing Case
- Subject: Re: Changing Case
- From: Alastair Houghton <email@hidden>
- Date: Thu, 18 Mar 2004 18:14:02 +0000
On 18 Mar 2004, at 17:36, Stephane Sudre wrote:
>
On Thursday, March 18, 2004, at 03:40 PM, Alastair Houghton wrote:
>
>
> I suppose you might argue that this kind of thing is overkill
>
>
It's potentially a monster kill.
>
>
NSMutableString *myString = [NSMutableString
>
stringWithUTF8String:"hello"];
>
>
myString=[myString capitalizedString];
I should perhaps add that the -capitalizedString method would indeed be
a better way of upcasing the "h" of "hello" (so in that sense, you're
right), but it won't work if you wanted to make the "e" upper case
instead, or if you wanted to change "well hello" to "well Hello" (for
instance).
Kind regards,
Alastair.
--
Alastair Houghton
http://www.alastairs-place.net
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.