60
*/
61
public static toStatusbarColumn(lineContent: string, column: number, tabSize: number): number {
62
>
const text = lineContent.substring(0, Math.min(column - 1, lineContent.length));
cursorColumns.ts
63
>
const iterator = new strings.CodePointIterator(text);
64
>
65
>
let result = 0;
66
>
while (!iterator.eol()) {
67
>
const codePoint = iterator.nextCodePoint();
68
>
69
>
if (codePoint === CharCode.Tab) {
70
>
result = CursorColumns.nextRenderTabStop(result, tabSize);
71
>
} else {
72
>
result = result + 1;
73
>
}
74
>
}
75
>
76
>
return result + 1;
77
>
}
78
79
/**