40
*/
41
public static visibleColumnFromColumn(lineContent: string, column: number, tabSize: number): number {
43
>
const text = lineContent.substring(0, textLen);
44
>
const iterator = new strings.GraphemeIterator(text);
45
>
46
>
let result = 0;
47
>
while (!iterator.eol()) {
48
>
const codePoint = strings.getNextCodePoint(text, textLen, iterator.offset);
49
>
iterator.nextGraphemeLength();
50
>
51
>
result = this._nextVisibleColumn(codePoint, result, tabSize);
52
>
}
53
>
54
>
return result;
55
>
}
56
57
/**