NSString - Searching for a character in a string

 
Post new topic   Reply to topic    Mulle kybernetiK Optimization Forum Index :: Foundation & Objective-C
View previous topic :: View next topic  
Author Message
Nat!



Joined: 06 Aug 2004
Posts: 42
Location: Bochum

PostPosted: Thu Nov 18, 2004 2:27 pm    Post subject: NSString - Searching for a character in a string Reply with quote

I was under the misimpression, that

- (NSRange)rangeOfCharacterFromSet:(NSCharacterSet *)aSet options:(unsigned int)mask

is faster than

- (NSRange)rangeOfString:(NSString *)aString options:(unsigned)mask.

It is not so. At least not on Panther with my G5. In fact rangeOfString is faster.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Mulle kybernetiK Optimization Forum Index :: Foundation & Objective-C All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2002 phpBB Group
Charcoal2 Theme © Zarron Media