MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / charAt

Function charAt

src/cm/colorView.ts:62–65  ·  view source on GitHub ↗
(doc: Text, index: number)

Source from the content-addressed store, hash-verified

60}
61
62function charAt(doc: Text, index: number): string {
63 if (index < 0 || index >= doc.length) return "";
64 return doc.sliceString(index, index + 1);
65}
66
67function findPrevNonWhitespace(doc: Text, index: number): number {
68 for (let i = index - 1; i >= 0; i--) {

Callers 4

findPrevNonWhitespaceFunction · 0.85
findNextNonWhitespaceFunction · 0.85
readWordBeforeFunction · 0.85
shouldRenderColorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected