How to use strip or stripRight on char[len] ? Thanks.

FrankLike 1150015857 at qq.com
Thu Feb 22 17:08:14 UTC 2018


On Thursday, 22 February 2018 at 16:59:40 UTC, Adam D. Ruppe 
wrote:
> On Thursday, 22 February 2018 at 16:55:14 UTC, FrankLike wrote:

> It is simply that these functions require a slice so it can 
> resize it and you can't resize a static array.

    char[100] abc ="aabc    ";
    string aa = to!string(abc);
    string aaa = aa.stripRight;


It get the same result.










More information about the Digitalmars-d-learn mailing list