Find Semantically Correct Word Splits in UTF-8 Strings

monarch_dodra via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Oct 2 06:21:23 PDT 2014


On Wednesday, 1 October 2014 at 21:34:40 UTC, Nordlöw wrote:
> On Wednesday, 1 October 2014 at 17:09:57 UTC, monarch_dodra 
> wrote:
>> Does that even work? takeExactly would pop up to N 
>> *codepoints*, whereas your string only has N *codeunits*.
>
> Your're right again :)
>
> If forgot that takeExactly auto-decodes.

Technically, it only pops. It's front/popFront that auto-decode.


More information about the Digitalmars-d-learn mailing list