Today's programming challenge - How's your Range-Fu ?

Panke via Digitalmars-d digitalmars-d at puremagic.com
Mon Apr 20 12:24:00 PDT 2015


On Monday, 20 April 2015 at 18:03:50 UTC, John Colvin wrote:
> On Monday, 20 April 2015 at 17:48:17 UTC, Panke wrote:
>> To measure the columns needed to print a string, you'll need 
>> the number of graphemes. (d|)?string.length gives you the 
>> number of code units.
>
> Even that's not really true.

Why? Doesn't string.length give you the byte count?


More information about the Digitalmars-d mailing list