MCPcopy
hub / github.com/version-fox/vfox / Contains

Function Contains

internal/plugin/luai/module/string/string.go:131–137  ·  view source on GitHub ↗

Contains lua strings.contains(string, cutset) Port of go string.Contains() returns bool

(L *lua.LState)

Source from the content-addressed store, hash-verified

129
130// Contains lua strings.contains(string, cutset) Port of go string.Contains() returns bool
131func Contains(L *lua.LState) int {
132 str1 := L.CheckString(1)
133 str2 := L.CheckString(2)
134 result := strings.Contains(str1, str2)
135 L.Push(lua.LBool(result))
136 return 1
137}

Callers

nothing calls this directly

Calls 1

ContainsMethod · 0.65

Tested by

no test coverage detected