• 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: Splitting strings....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Splitting strings....


  • Subject: Re: Splitting strings....
  • From: Allan Odgaard <email@hidden>
  • Date: Sat, 28 Feb 2004 17:42:35 +0100

On 28. Feb 2004, at 17:31, Jerry LeVan wrote:

if([workingString characterAtIndex:i] == '\'') {

When going through the entire string, Apple recommends against this method -- I think the reason is that the underlying string might not be unicode, so it may need a mapping from your requested index to the actual buffer index. Although I don't think this mapping will ever be anything but O(1), except if they have special string classes for UTF8 (which I guess they may have).

Seems to be working....

But it doesn't handle quotes inside strings!?!
_______________________________________________
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.


References: 
 >Splitting strings.... (From: Jerry LeVan <email@hidden>)
 >Re: Splitting strings.... (From: Jerry LeVan <email@hidden>)
 >Re: Splitting strings.... (From: Public Look <email@hidden>)
 >Re: Splitting strings.... (From: Allan Odgaard <email@hidden>)
 >Re: Splitting strings.... (From: Jerry LeVan <email@hidden>)

  • Prev by Date: Re: US / British English Localisations
  • Next by Date: Re: Cocoa XML-RPC Framework
  • Previous by thread: Re: Splitting strings....
  • Next by thread: Re: Splitting strings....
  • Index(es):
    • Date
    • Thread