what's the correct way to handle unicode? - trying to print out graphemes here.

ag0aep6g anonymous at example.com
Wed Jul 4 16:26:12 UTC 2018


On 07/04/2018 05:12 PM, aliak wrote:
> Is updating unicode stuff to the latest a matter of some config file
> somewhere with the code point configurations that result in specific
> graphemes?

I don't know.

[...]
> Also, any reason (technical or otherwise) that we have to slice a 
> grapheme to get it printed? Or just no one implemented something like
> toString or the like?

I don't know.

[...]
> I can't really imagine anyone figuring out that they have to slice a
> grapheme to get it to print 🤔

You can figure it out by reading the documentation for `Grapheme`.
However, the documentation doesn't make it clear that `byGrapheme` is a
range of `Grapheme`s. That's an easy fix, though:

https://github.com/dlang/phobos/pull/6627


More information about the Digitalmars-d-learn mailing list