• 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
hasSuffix and new line characters.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: hasSuffix and new line characters.
      • From: "Clark S. Cox III" <email@hidden>
  • Prev by Date: Re: takeValue:forKey and BOOL
  • Next by Date: Folder available check
  • Previous by thread: NSCursor Tracking
  • Next by thread: Re: hasSuffix and new line characters.
  • Index(es):
    • Date
    • Thread