How to loop through characters of a string in D language?

Adam D Ruppe destructionator at gmail.com
Wed Dec 8 12:49:39 UTC 2021


On Wednesday, 8 December 2021 at 11:23:45 UTC, BoQsc wrote:
> The string example to loop/iterate:

foreach(ch; a) {

}

does the individual chars of the string you can also

foreach(dchar ch; a) {

}

to decode the utf 8


More information about the Digitalmars-d-learn mailing list