entabber
fn
auto entabber(Range)(Range r, size_t tabSize = 8) if (isForwardRange!Range && !isConvertibleToString!Range)Replaces spaces in range r with the optimal number of tabs. All spaces and tabs at the end of a line are removed.
Parameters
r | string or forward range |
tabSize | distance between tab stops |
Returns
lazy forward range with spaces replaced with tabs