detab

fnauto detab(Range)(auto ref Range s, size_t tabSize = 8) if ((isForwardRange!Range && isSomeChar!(ElementEncodingType!Range)) || __traits(compiles, StringTypeOf!Range)) pure

Replace each tab character in s with the number of spaces necessary to align the following character at the next tab stop.

Parameters

sstring
tabSizedistance between tab stops

Returns

GC allocated string with tabs replaced with spaces