counting characters
counting characters
- Subject: counting characters
- From: Koen van der Drift <email@hidden>
- Date: Wed, 14 Apr 2004 19:58:25 -0400
Hi,
To count the occurance of characters or a group of characters in an
NSString, I now use a for loop, and compare each character with an
NSCharacterSet. It works fine, but I was wondering if I can do this
easier/more efficiently using an NSScanner.
thanks,
- Koen.
_______________________________________________
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.