Skip navigation.
 
mlRe: multiple componentsSeparatedByString
FROM : Koen van der Drift
DATE : Mon Nov 25 14:54:02 2002

>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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlmultiple componentsSeparatedByString Koen van der Drift Nov 22, 15:06
mlRE: multiple componentsSeparatedByString Jonathan E. Jackel Nov 22, 17:04
mlRE: multiple componentsSeparatedByString Koen van der Drift Nov 22, 17:18
mlRE: multiple componentsSeparatedByString Koen van der Drift Nov 23, 18:34
mlRE: multiple componentsSeparatedByString Koen van der Drift Nov 24, 01:12
mlRe: multiple componentsSeparatedByString Jonathan Jackel Nov 25, 00:04
mlRe: multiple componentsSeparatedByString Koen van der Drift Nov 25, 02:37
mlRe: multiple componentsSeparatedByString Koen van der Drift Nov 25, 03:03
mlRe: multiple componentsSeparatedByString Jonathan Jackel Nov 25, 04:12
mlRe: multiple componentsSeparatedByString Koen van der Drift Nov 25, 14:54
mlNSScanner (was Re: multiple componentsSeparatedByString) Koen van der Drift Nov 29, 20:02
mlRe: NSScanner (was Re: multiple componentsSeparatedByString) Jonathan Jackel Nov 30, 04:06