mutable string

ag0aep6g via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 10 14:31:43 PDT 2016


On 07/10/2016 11:17 PM, Adam Sansier wrote:
> The problem is things like
>
> https://msdn.microsoft.com/en-us/library/windows/desktop/ms724902(v=vs.85).aspx
>
>
> require data buffers to be used. I can't just plug in a wstring to it,
> can I?

You can't.

> `First-chance exception: core.exception.UnicodeException illegal UTF-16
> value at src\rt\util\utf.d(400)`
>
> This happens when I call toLower on a wstring trying to lower all the
> characters.

Looks like you've got bad data. How did you make the wstring?


More information about the Digitalmars-d-learn mailing list