Live data from Hacker News

Unicorn: C++ Unicode string library

github.com

31–32 of 32 posts

Re: Unicorn: C++ Unicode string library

#31
post #9

Earlier quoted context omitted.

Probably referring to the Documentation link you provide on the GitHub page, and it breaks back button for me too.

I just tried that on several browsers; Safari and Chrome are fine, it seems to be only Firefox that has a problem with that. I have no idea whether that's a bug in Firefox or Github, and either way there's nothing I can do about it, sorry.

Hmm... weird. I guess this should either be reported to the GitHub people and/or the Firefox people?

Re: Unicorn: C++ Unicode string library

#32
post #30

Earlier quoted context omitted.

My parent was speaking about indexing at the code points level, not at the encoding (byte / character) level. I do know that Unicode has combining code points (confusingly called combining characters) and nasty things like rtl switching code points. I guess it's turtles all the way down.

Actually, they are not combining code points . Take for example the character 𪚥 (4 dragons). The codepoint is U+2A6A5, but in UTF16 it requires combining 2 utf16 characters (\uD869 and \uDEA5) in order to reference it. The codepoint however is still exactly the same (U+2A6A5).

> The codepoint is U+2A6A5, but in UTF16 it requires combining 2 utf16 characters (\uD869 and \uDEA5) in order to reference it.

No, you mean two UTF-16 code units. A character is one or more code points.

Post reply on HN