wstring double quotes to string double quotes

Adam D. Ruppe destructionator at gmail.com
Thu Apr 19 21:57:28 UTC 2018


On Thursday, 19 April 2018 at 21:53:52 UTC, Joel wrote:
> I have a program that uses string double quotes, but copies 
> from wstring double quotes. The wstring double quotes are in 
> string type (sourceTxt is a string with wstring double quotes).

quotes are quotes, you don't need to convert to wstring here.

I really don't think it should be throwing that error 
regardless... but you also should be able to just do

string[] sourceLines = sourceTxt.replace("”", `"`).split("\n");

and skip the wstring part entirely.


More information about the Digitalmars-d-learn mailing list