Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to 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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.