Re: Remove excess line breaks
Re: Remove excess line breaks
- Subject: Re: Remove excess line breaks
- From: Chris Ridd <email@hidden>
- Date: Mon, 15 Dec 2003 19:06:22 +0000
On 15/12/03 5:14 pm, Rick Anderson <email@hidden> wrote:
>
On Monday, December 15, 2003, at 08:42 AM,
>
email@hidden wrote:
>
>
> Should be a "while" not a "if" to make the Cocoa version perform
>
> exactly as the Perl one.
>
>
*SIgh* I can't believe I did that. Thank you for pointing it out.
You should probably also use all the possible Unicode line end characters
instead of hardwiring something.
<
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ObjC_cl
assic/Classes/NSCharacterSet.html#//apple_ref/doc/uid/20000157/CJBDJHDJ>
There's also CFStringGetLineBounds(), which might be quite useful.
<
http://developer.apple.com/documentation/CoreFoundation/Reference/CFStringR
ef/index.html#//apple_ref/doc/uid/20001211>
Cheers,
Chris
_______________________________________________
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.