Re: String Type Usage. String vs DString vs WString

2018-01-14 Thread Chris P via Digitalmars-d-learn
On Monday, 15 January 2018 at 02:15:55 UTC, Nicholas Wilson wrote: On Monday, 15 January 2018 at 02:05:32 UTC, Chris P wrote: [...] string == immutable( char)[], char == utf8 wstring == immutable(wchar)[], char == utf16 dstring == immutable(dchar)[], char == utf32 Unless you are dealing with

String Type Usage. String vs DString vs WString

2018-01-14 Thread Chris P via Digitalmars-d-learn
Hello, I'm extremely new to D and have a quick question regarding common practice when using strings. Is usage of one type over the others encouraged? When using 'string' it appears there is a length mismatch between the string length and the char array if large Unicode characters are used. S