• 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: multiple componentsSeparatedByString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple componentsSeparatedByString


  • Subject: Re: multiple componentsSeparatedByString
  • From: Koen van der Drift <email@hidden>
  • Date: Mon, 25 Nov 2002 08:54:02 -0500

You can substitute "nil" for "&result". I misunderstood what you were
trying to do with your example, so I told you how to read the separators
into the array, rather than the "data". The solution is to simply to do the
opposite of what I said -- "scanUpTo" into your result string and scan the
characters in your set into nil.


OK - I see. Too bad there isn't a 'scanInTo' function, since I need the separator too to be part of the data. But I can easily solve that by scanning one extra character and append that to result. Maybe if I feel like it I'll write a category for this ;)

thanks again,

- 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.

References: 
 >Re: multiple componentsSeparatedByString (From: Jonathan Jackel <email@hidden>)

  • Prev by Date: Re: An interesting localisation issue
  • Next by Date: DO doesn't like my objects
  • Previous by thread: Re: multiple componentsSeparatedByString
  • Next by thread: stringByTrimmingCharactersInSet
  • Index(es):
    • Date
    • Thread