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

Function strRep

stringlib.go:392–401  ·  view source on GitHub ↗
(L *LState)

Source from the content-addressed store, hash-verified

390}
391
392func strRep(L *LState) int {
393 str := L.CheckString(1)
394 n := L.CheckInt(2)
395 if n < 0 {
396 L.Push(emptyLString)
397 } else {
398 L.Push(LString(strings.Repeat(str, n)))
399 }
400 return 1
401}
402
403func strReverse(L *LState) int {
404 str := L.CheckString(1)

Callers

nothing calls this directly

Calls 4

LStringTypeAlias · 0.85
CheckStringMethod · 0.80
CheckIntMethod · 0.80
PushMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…