• 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
Re: Finding count of a character in a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding count of a character in a string


  • Subject: Re: Finding count of a character in a string
  • From: Will Mason <email@hidden>
  • Date: Mon, 22 Aug 2005 11:17:01 -0700 (PDT)

--- Steve Palmer <stevstevenopencommunityuk> ukote:

> if you know up-front that the string is entirely ASCII, then getting
>
> a pointer to the raw string data with [UTF8UTFing:] and iterating
> over it with a pointer might be marginally faster.

This would be worse, actually, as NSStNSStrings UTF-UTFas the
underlying encoding, not UTF-UTFYou'd waste time converting from
UTF-UTFto UTF-UTF

Take care,
Will
 _______________________________________________
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: Finding count of a character in a string
      • From: Will Mason <email@hidden>
References: 
 >Re: Finding count of a character in a string (From: Steve Palmer <email@hidden>)

  • Prev by Date: (no subject)
  • Next by Date: Catching application errors
  • Previous by thread: Re: Finding count of a character in a string
  • Next by thread: Re: Finding count of a character in a string
  • Index(es):
    • Date
    • Thread