• 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
Cocoa equivalent of strspn(3)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Cocoa equivalent of strspn(3)
      • From: Justin Anderson <email@hidden>
  • Prev by Date: custom frameworks: dynamic link errors
  • Next by Date: FIXED - Re: custom frameworks: dynamic link errors
  • Previous by thread: FIXED - Re: custom frameworks: dynamic link errors
  • Next by thread: Re: Cocoa equivalent of strspn(3)
  • Index(es):
    • Date
    • Thread