• 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
Re: Detecting new line character(s) in text file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting new line character(s) in text file?


  • Subject: Re: Detecting new line character(s) in text file?
  • From: Jean-Nicolas Jolivet <email@hidden>
  • Date: Sat, 17 Nov 2007 18:35:04 -0500

Thank you! I am looking into it! Seems like it will do the trick..!

Shawn Erickson wrote:

On Nov 17, 2007, at 3:29 PM, Jean-Nicolas Jolivet wrote:

I am parsing subtitles file...(text subtitles for divx movies etc..)

Depending on the format they need to be parsed differently, but in any cases, I need to find out what linebreak character is used so I can parse them...

Why do you need to care about the line ending? You just want the lines?

Still sounds like -[NSString getLineStart:end:contentsEnd:forRange:] will do what you need without you having to care about which line ending is being used.

-Shawn


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Detecting new line character(s) in text file?
      • From: Ricky Sharp <email@hidden>
References: 
 >Detecting new line character(s) in text file? (From: Jean-Nicolas Jolivet <email@hidden>)
 >Re: Detecting new line character(s) in text file? (From: Shawn Erickson <email@hidden>)
 >Re: Detecting new line character(s) in text file? (From: Jean-Nicolas Jolivet <email@hidden>)
 >Re: Detecting new line character(s) in text file? (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Detecting new line character(s) in text file?
  • Next by Date: Re: Detecting new line character(s) in text file?
  • Previous by thread: Re: Detecting new line character(s) in text file?
  • Next by thread: Re: Detecting new line character(s) in text file?
  • Index(es):
    • Date
    • Thread