MCPcopy Index your code
hub / github.com/yuin/gopher-lua / RawGetString

Method RawGetString

table.go:315–323  ·  view source on GitHub ↗

RawGetString returns an LValue associated with a given key without __index metamethod.

(key string)

Source from the content-addressed store, hash-verified

313
314// RawGetString returns an LValue associated with a given key without __index metamethod.
315func (tb *LTable) RawGetString(key string) LValue {
316 if tb.strdict == nil {
317 return LNil
318 }
319 if v, vok := tb.strdict[string(key)]; vok {
320 return v
321 }
322 return LNil
323}
324
325// ForEach iterates over this table of elements, yielding each in turn to a given function.
326func (tb *LTable) ForEach(cb func(LValue, LValue)) {

Callers 14

getIntFieldFunction · 0.80
getBoolFieldFunction · 0.80
baseSetMetatableFunction · 0.80
OpenIoFunction · 0.80
metatableMethod · 0.80
metaOp1Method · 0.80
metaOp2Method · 0.80
getFieldStringMethod · 0.80
setFieldStringMethod · 0.80
metatableMethod · 0.80
metaOp1Method · 0.80
metaOp2Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected