• 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
counting characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: counting characters
      • From: Shawn Erickson <email@hidden>
    • RE: counting characters
      • From: "Jonathan E. Jackel" <email@hidden>
    • Re: counting characters
      • From: Pandaa <email@hidden>
  • Prev by Date: Re: NSString and txt file
  • Next by Date: Re: New book on its way!!!
  • Previous by thread: Re: Install Program for Completed App
  • Next by thread: Re: counting characters
  • Index(es):
    • Date
    • Thread