The Case Against Autodecode

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 2 13:13:52 PDT 2016


On 06/02/2016 03:34 PM, deadalnix wrote:
> On Thursday, 2 June 2016 at 19:05:44 UTC, 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.
>>
>
> False.

True. "Are all code points equal to this one?" -- Andrei




More information about the Digitalmars-d mailing list