A D port of utf8proc
MrSmith
mrsmith33 at yandex.ru
Sun Apr 12 13:41:38 UTC 2020
On Sunday, 12 April 2020 at 13:34:49 UTC, MrSmith wrote:
> On Saturday, 11 April 2020 at 23:36:17 UTC, Ferhat Kurtulmuş
> wrote:
>> I could not find a similar library working with -betterC, so I
>> ported utf8proc.
>>
>> https://github.com/aferust/utf8proc-d
>>
>> Please test it, contribute it, and enjoy!
>
> in readme this expression is wrong: `(mstring.sizeof /
> ubyte.sizeof) * mstring.length`
> should be `mstring.length` instead
Actually even `mstring.length + 1` to account for null byte. But
you may pass mstring.length to `utf8proc_map` instead of 0 length.
More information about the Digitalmars-d-announce
mailing list