Re: How to use encode and decode of std.utf

2017-09-09 Thread Jonathan M Davis via Digitalmars-d-learn
On Sunday, September 10, 2017 00:05:42 ag0aep6g via Digitalmars-d-learn wrote: > On 09/09/2017 11:54 PM, solidstate1991 wrote: > > There's not much deep documentation about the functions, and I'm > > interested if it can decode into UTF16 from UTF8. > > toUTF16 can transcode from UTF-8. As linked

Re: How to use encode and decode of std.utf

2017-09-09 Thread ag0aep6g via Digitalmars-d-learn
On 09/09/2017 11:54 PM, solidstate1991 wrote: There's not much deep documentation about the functions, and I'm interested if it can decode into UTF16 from UTF8. toUTF16 can transcode from UTF-8. As linked there, byUTF!wchar does the same but lazily. import std.utf; string s8 =

How to use encode and decode of std.utf

2017-09-09 Thread solidstate1991 via Digitalmars-d-learn
There's not much deep documentation about the functions, and I'm interested if it can decode into UTF16 from UTF8.