The Case Against Autodecode

Dmitry Olshansky via Digitalmars-d digitalmars-d at puremagic.com
Tue May 31 12:47:56 PDT 2016


On 31-May-2016 01:00, Walter Bright wrote:
> On 5/30/2016 11:25 AM, Adam D. Ruppe wrote:
>> I don't agree on changing those. Indexing and slicing a char[] is
>> really useful
>> and actually not hard to do correctly (at least with regard to
>> handling code
>> units).
>
> Yup. It isn't hard at all to use arrays of codeunits correctly.

Ehm as long as all you care for is operating on substrings I'd say.
Working with individual character requires either decoding or clever 
tricks like operating on encoded UTF directly.

-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list