Comment

Comment by shakna

Depends what you mean by Unicode.

All the UTF-8 codepoints can be held inside an 8bit char, which is what this library seems to use under the covers.

You might need to add a couple UTF-specific methods if you want number of graphemes rather than number of bytes, but there's nothing to stop you placing UTF8 data inside a char buffer.

parent shakna 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton