• 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
Trapping line breaks with a scanner
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trapping line breaks with a scanner


  • Subject: Trapping line breaks with a scanner
  • From: Zac Belado <email@hidden>
  • Date: Sat, 16 Mar 2002 23:08:58 -0800

I am trying to build an NSCharacterSet with all three possible line breaks
in it. Am I correct in assuming that the following NSCharacterSet

NSCharacterSet *lineBreaks = [NSCharacterSet
characterSetWithCharactersInString:@"\r\n"];

will still catch Windows line breaks (\rn)?

TIA



--

Any fool can make a rule, and any fool will mind it.

Thoreau
_______________________________________________
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: Trapping line breaks with a scanner
      • From: Itrat Khan <email@hidden>
  • Prev by Date: Re: Theory, Practice, Down-Time...
  • Next by Date: Re: Low-level File Access
  • Previous by thread: Re: Low-level File Access
  • Next by thread: Re: Trapping line breaks with a scanner
  • Index(es):
    • Date
    • Thread