MCPcopy Create free account
hub / github.com/Tencent/LuaHelper / OffsetForPosition

Function OffsetForPosition

luahelper-lsp/langserver/lspcommon/util.go:54–98  ·  view source on GitHub ↗

OffsetForPosition Previously used bytes converted to rune. Now use the high bit to determine how many bits the character occupies. posLine (zero-based, from 0)

(contents []byte, posLine, posCh int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected