MCPcopy Index your code
hub / github.com/codeaashu/claude-code / offsetAt

Function offsetAt

src/vim/textObjects.ts:85–86  ·  view source on GitHub ↗
(idx: number)

Source from the content-addressed store, hash-verified

83
84 const graphemeAt = (idx: number): string => graphemes[idx]?.segment ?? ''
85 const offsetAt = (idx: number): number =>
86 idx < graphemes.length ? graphemes[idx]!.index : text.length
87 const isWs = (idx: number): boolean => isVimWhitespace(graphemeAt(idx))
88 const isWord = (idx: number): boolean => isWordChar(graphemeAt(idx))
89 const isPunct = (idx: number): boolean => isVimPunctuation(graphemeAt(idx))

Callers 1

findWordObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected