detab
fn
auto detab(Range)(auto ref Range s, size_t tabSize = 8) if ((isForwardRange!Range && isSomeChar!(ElementEncodingType!Range))
|| __traits(compiles, StringTypeOf!Range)) pureReplace each tab character in s with the number of spaces necessary to align the following character at the next tab stop.
Parameters
s | string |
tabSize | distance between tab stops |
Returns
GC allocated string with tabs replaced with spaces