• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Number of chars
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Number of chars


  • Subject: Re: Number of chars
  • From: Aki Inoue <email@hidden>
  • Date: Thu, 21 Mar 2013 18:12:43 -0700

On Mar 21, 2013, at 6:05 PM, Andrew Thompson <email@hidden> wrote:

>
>
> On Mar 21, 2013, at 2:10 PM, Aki Inoue <email@hidden> wrote:
>
>> For that matter, UTF-32 (aka UCS-4) is not safe to find the truncation boundary just at the 4-byte boundary.
>
> You're thinking of combining marks here?
Yes.

> It's generally claimed that one can multiply character offsets by 4 to index into UCS-4 data… which I think I now see is only true depending on your definition of character; i.e whether one considers a decomposed sequence to be one character or two.

> I see how truncation would be unsafe because you'd chop off the accents etc?
Yes.

Aki

>
>


_______________________________________________

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Number of chars
      • From: email@hidden
References: 
 >Number of chars (From: Luca Ciciriello <email@hidden>)
 >Re: Number of chars (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Number of chars (From: "Glenn L. Austin" <email@hidden>)
 >Re: Number of chars (From: Luca Ciciriello <email@hidden>)
 >Re: Number of chars (From: Luther Baker <email@hidden>)
 >Re: Number of chars (From: Aki Inoue <email@hidden>)

  • Prev by Date: Re: Triggering an NSTextStorage Bug
  • Next by Date: PDF Images and NSSharingService
  • Previous by thread: Re: Number of chars
  • Next by thread: Re: Number of chars
  • Index(es):
    • Date
    • Thread