FROM : Koen van der Drift
DATE : Sun Nov 24 01:12:45 2002
At 12:34 PM -0500 11/23/02, Koen van der Drift wrote:
>
>How can I fix this?
>
I found another solution. Instead of using an NSScanner, I just extract
each character from the string and test it against the NSCharacterSet:
unichar buf;
for ( i = 0; i < [s length]; i++ )
{
buf = [s characterAtIndex:i];
if ([stopSet characterIsMember:buf])
{
// make substring
// add substring to array
....
Seems to work so far :)
- 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.
DATE : Sun Nov 24 01:12:45 2002
At 12:34 PM -0500 11/23/02, Koen van der Drift wrote:
>
>How can I fix this?
>
I found another solution. Instead of using an NSScanner, I just extract
each character from the string and test it against the NSCharacterSet:
unichar buf;
for ( i = 0; i < [s length]; i++ )
{
buf = [s characterAtIndex:i];
if ([stopSet characterIsMember:buf])
{
// make substring
// add substring to array
....
Seems to work so far :)
- 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 mails | Author | Date |
|---|---|---|
| Koen van der Drift | Nov 22, 15:06 | |
| Jonathan E. Jackel | Nov 22, 17:04 | |
| Koen van der Drift | Nov 22, 17:18 | |
| Koen van der Drift | Nov 23, 18:34 | |
| Koen van der Drift | Nov 24, 01:12 | |
| Jonathan Jackel | Nov 25, 00:04 | |
| Koen van der Drift | Nov 25, 02:37 | |
| Koen van der Drift | Nov 25, 03:03 | |
| Jonathan Jackel | Nov 25, 04:12 | |
| Koen van der Drift | Nov 25, 14:54 | |
| Koen van der Drift | Nov 29, 20:02 | |
| Jonathan Jackel | Nov 30, 04:06 |






Cocoa mail archive

