hasSuffix and new line characters.
hasSuffix and new line characters.
- Subject: hasSuffix and new line characters.
- From: Anthony Duer <email@hidden>
- Date: Thu, 3 Apr 2003 10:09:10 -0800
Hi all, I seem to have run across a problem with NSString's hasSuffix
method and new line characters. With the program I'm writing, I'm
trying to parse a line like:
Item One \034GSM\n
ItemTwo\034GSL\n
The problem I'm having is that no matter what I've tried, hasSuffix
always returns no for testing it. The problem seems to stem from the \n
character. Even for testing for something simple line "none\n" returns
false, even though I -know- that the newline character and none is
there as the suffix for that string. Any help?
~Anthony Duer
_______________________________________________
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.