The Case Against Autodecode
ag0aep6g via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jun 2 12:16:14 PDT 2016
On 06/02/2016 09:05 PM, Andrei Alexandrescu wrote:
> Pretty much everything. Consider s and s1 string variables with possibly
> different encodings (UTF8/UTF16).
>
> * s.all!(c => c == 'ö') works only with autodecoding. It returns always
> false without.
Doesn't work with autodecoding (to code points) when a combining
diaeresis (U+0308) is used in s.
Would actually work with UTF-16 and only combined 'ö's in s, because the
combined character fits in a single UTF-16 code unit.
More information about the Digitalmars-d
mailing list