Accented Characters and Counting Syllables

John Colvin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Dec 7 05:41:08 PST 2014


On Sunday, 7 December 2014 at 13:24:28 UTC, Marc Schütz wrote:
> On Saturday, 6 December 2014 at 22:37:19 UTC, Nordlöw wrote:
>>    static assert("é".byCodePoint.length == 2);
>
> Huh? Why is byCodePoint.length even defined?

because string has ElementType dchar (i.e. it already iterates by 
codepoint), which means that byCodePoint is just the identity 
function.


More information about the Digitalmars-d-learn mailing list