getIndent

Return the indentation present before the given offset. offset should point past the indentation. e.g. : '\t\ttest' => Offset should be 2 (the index of 't'), and getIndent will return '\t\t'. If offset is 1, getIndent returns '\t'.

pure nothrow
string
getIndent
(
size_t offset
,
string text
)

Meta