As much as I enjoy languages (I've taken a few
in college, and 10 years ago I was on a couple
Unicode e-mailing lists mainly to read the
interesting discussion about the differences),
for now I'll stick with the US+Euro+Japanese+
Latin+Hebrew solution that I have, that uses
Separated by
On 26 Apr 2009, at 04:33, Jeffrey Oleander wrote:
NSArray * tokens = [string componentsSeparatedByCharactersInSet:
whitespaceCharacterSet];
No, no, no. If you read Gerriet's original post, you would have
noticed that he even explained that what you just said won't work,
because not all
At Sun, 2009-04-26, 09:01, Alastair Houghton alast...@alastairs-place.net
wrote:
At 2009 Apr 26, 04:33, Jeffrey Oleander wrote:
NSArray * tokens = [string
componentsSeparatedByCharactersInSet:
whitespaceCharacterSet];
No, no, no. If you read Gerriet's original post,
you would have
On 25 Apr 2009, at 09:21, Michael Ash michael@gmail.com wrote:
On Fri, Apr 24, 2009 at 9:24 PM, Gerriet M. Denkmann
gerr...@mdenkmann.de wrote:
I want to parse a string into words.
Currently I do:
NSString *theString =
NSUInteger stringLength = [ theString length ];
NATextView
In AppKit land, -[NSAttributedString doubleClickAtIndex:] would help
you.
Aki from iPhone
On 2009/04/25, at 2:15, Gerriet M. Denkmann gerr...@mdenkmann.de
wrote:
On 25 Apr 2009, at 09:21, Michael Ash michael@gmail.com wrote:
On Fri, Apr 24, 2009 at 9:24 PM, Gerriet M. Denkmann
On 26 Apr 2009, at 02:09, Aki Inoue wrote:
In AppKit land, -[NSAttributedString doubleClickAtIndex:] would help
you.
Thanks a lot!
I tested all three methods and found that:
1. NSTextView takes about 900 μsec to parse a Thai sentence into 17
words.
2. NSAttributedString took only 530
On Apr 25, 2009, at 10:06 PM, Gerriet M. Denkmann wrote:
One question though: why are version4, ปี2009 or ทีมA
all parsed as one word?
I would think that the change from letters to numbers, or from Thai
to Latin would indicate a word-break.
I haven't read it, myself, but the docs for
NSArray * tokens = [string componentsSeparatedByCharactersInSet:
whitespaceCharacterSet];
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at
I want to parse a string into words.
Currently I do:
NSString *theString =
NSUInteger stringLength = [ theString length ];
NATextView *theTextView = [[NSTextView alloc] initWithFrame:
NSMakeRect(0,0,99,99) ];
[ theTextView setString: theString ];
for( NSUInteger t = 0; t
On Fri, Apr 24, 2009 at 9:24 PM, Gerriet M. Denkmann
gerr...@mdenkmann.de wrote:
I want to parse a string into words.
Currently I do:
NSString *theString =
NSUInteger stringLength = [ theString length ];
NATextView *theTextView = [[NSTextView alloc] initWithFrame:
10 matches
Mail list logo