Replace each tab character in s with the number of spaces necessary to align the following character at the next tab stop.
string
distance between tab stops
GC allocated string with tabs replaced with spaces
assert(detab(" \n\tx", 9) == " \n x");
Replace each tab character in s with the number of spaces necessary to align the following character at the next tab stop.