Insert a char in string

Alexandre via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 10 09:20:27 PDT 2014


Sorry..
I mean:

auto X = "100000000000000";
auto N = X.insertInPlace(3,',');

On Thursday, 10 July 2014 at 16:05:51 UTC, Alexandre wrote:
> I have a string X and I need to insert a char in that string...
>
> auto X = "100000000000000";
>
> And I need to inser a ',' in position 3 of this string..., I 
> try to use the array.insertInPlace, but, not work...
>
> I try this:
> auto X = "100000000000000";
> auto N = X.insertInPlace(1,'0');



More information about the Digitalmars-d-learn mailing list