Why can't D store all UTF-8 code units in char type? (not really understanding explanation)

rikki cattermole rikki at cattermole.co.nz
Fri Dec 2 22:43:22 UTC 2022


On 03/12/2022 11:32 AM, Ali Çehreli wrote:
> On 12/2/22 13:44, rikki cattermole wrote:
> 
>  > Yeah you're right, its code unit not code point.
> 
> This proves yet again how badly chosen those names are. I must look it 
> up every time before using one or the other.
> 
> So they are both "code"? One is a "unit" and the other is a "point"? 
> Sheesh!
> 
> Ali

Yeah, and I even have a physical copy beside me!

P.s.

Oh btw Unicode 15 should be coming soon to Phobos :)
Once that is in, expect Turkic support for case insensitive matching!


More information about the Digitalmars-d-learn mailing list