column
fn
size_t column(Range)(Range str, in size_t tabsize = 8) if ((isInputRange!Range && isSomeChar!(ElementEncodingType!Range) ||
isNarrowString!Range) &&
!isConvertibleToString!Range)Compute _column number at the end of the printed form of the string, assuming the string starts in the leftmost _column, which is numbered starting from 0.
Tab characters are expanded into enough spaces to bring the _column number to the next multiple of tabsize. If there are multiple lines in the string, the _column number of the last line is returned.
Parameters
str | string or InputRange to be analyzed |
tabsize | number of columns a tab character represents |
Returns
column number