Cocoa equivalent of strspn(3)
Cocoa equivalent of strspn(3)
- Subject: Cocoa equivalent of strspn(3)
- From: "Paul J. Lucas" <email@hidden>
- Date: Sun, 9 Oct 2005 23:13:52 -0700 (PDT)
I have two NSStrings. I want to see if the first contains any
character that is not in the second. I basically want the
equivalent of:
if ( strspn( first, second ) < strlen( first ) )
// ... there's a char in first not in second
What's the easiest way to do this using Cocoa NSStrings?
- Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden