[haiku-development] Re: BString and UTF-8

  • From: David Given <dg@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 04 Dec 2011 01:25:23 +0000

On 03/12/11 23:22, Oliver Tappe wrote:
[...]
> Hm, let me think, where did I get this from? Ah, right, String.h. If you 
> would have taken care to look, you would have noticed that it declares 
> several ...Chars() methods that take character based lengths and indices as 
> parameters. Those support (and expect) UTF-8 encoding.

Just to clarify: by 'characters', you mean code points, right? They're
not quite the same thing --- the closest Unicode equivalent to a
character is the grapheme cluster, which can actually be made out of
multiple code points.

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ "Never attribute to malice what can be adequately explained by
│ stupidity." --- Nick Diamos (Hanlon's Razor)

Other related posts: