Re: Coercing ligatures to expanded characters
Re: Coercing ligatures to expanded characters
- Subject: Re: Coercing ligatures to expanded characters
- From: Shane Stanley <email@hidden>
- Date: Sat, 14 Jan 2017 23:15:30 +1100
On 14 Jan 2017, at 10:56 pm, Shane Stanley <email@hidden> wrote:
It counts grapheme clusters, but that doesn't mean it doesn't use NSString (probably CFString). There's no reason they can't be using CFString and the equivalent of -enumerateSubstringsInRange:: with NSStringEnumerationByComposedCharacterSequences.
I should have kept reading further down the 10.6 Release Notes:
character elements are now counted using CFStringGetRangeOfComposedCharactersAtIndex . This mostly matches the 10.5 behavior of counting grapheme clusters, but counts a CR-LF ( \r\n ) sequence as two separate characters, as it did in 10.4 and earlier, not one.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden