Rosyna wrote:
Oh, >1 was to pass over surrogate pairs, so you don't pass over anything.
rangeOfComposedCharacterSequenceAtIndex: is for more than surrogate pairs. It also applies to base characters that have combining accents following them. For example, the Latin letter 'e' followed by a combining acute-accent is a 2-unichar sequence (or 2 code- points) that should not be separated, otherwise it changes the meaning. A sequence may contain multiple combining accents and diacriticals, so assuming at most 2 is an error.
-- GG _______________________________________________ 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 cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com