The Case Against Autodecode

ag0aep6g via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 2 14:24:24 PDT 2016


On 06/02/2016 11:06 PM, Andrei Alexandrescu wrote:
> Nope, that's a radically different matter. As the examples show, the
> examples would be entirely meaningless at code unit level.

They're simply not possible. Won't compile. There is no single UTF-8 
code unit for 'ö', so you can't (easily) search for it in a range for 
code units. Just like there is no single code point for 'a⃗' so you can't 
search for it in a range of code points.

You can still search for 'a', and 'o', and the rest of ASCII in a range 
of code units.


More information about the Digitalmars-d mailing list