MCPcopy
hub / github.com/micro-editor/micro / LuaIsWordChar

Function LuaIsWordChar

internal/util/lua.go:38–41  ·  view source on GitHub ↗

LuaIsWordChar returns true if the first rune in a string is a word character

(s string)

Source from the content-addressed store, hash-verified

36
37// LuaIsWordChar returns true if the first rune in a string is a word character
38func LuaIsWordChar(s string) bool {
39 r, _, _ := DecodeCharacterInString(s)
40 return IsWordChar(r)
41}

Callers

nothing calls this directly

Calls 2

IsWordCharFunction · 0.85
DecodeCharacterInStringFunction · 0.70

Tested by

no test coverage detected