trimStart

fnIStr trimStart(IStr str, IStr pattern = "") @safe nothrow @nogc

Removes whitespace characters from the beginning of the string. Value pattern can be used to trim a specific pattern from the start (e.g. "temp.") instead of whitespace.

fnIStr trimStart(IStr str, char pattern) @safe nothrow @nogc

Removes whitespace characters from the beginning of the string. Value pattern can be used to trim a specific pattern from the start (e.g. "temp.") instead of whitespace.