Fix Phobos dependencies on autodecoding

xenon325 anm at programmer.net
Fri Aug 16 16:32:05 UTC 2019


On Thursday, 15 August 2019 at 22:23:13 UTC, Walter Bright wrote:
> And yet somehow people manage to read printed material without 
> all these problems.

If same glyphs had same codes, what will you do with these:

1) Sort string.

In my phone's contact lists there are entries in russian, in 
english and mixed.
Now they are sorted as:
A (latin), B (latin), C, А (ru), Б, В (ru).
Wich is pretty easy to search/navigate.

What would be the order in case Unicode worked the way you want?

2) Convert cases:
- in english: 'B'.toLower == 'b'
- in russian: 'В'.toLower == 'в'





More information about the Digitalmars-d mailing list