VE Lua Documentation

Press F to search!

rpad

Definition


-- @/lua/common/utils.lua:170

function rpad(s, l, c)
  s = tostring(s)
  return s .. string.rep(c, l - #s)
end

Callers

@/lua/common/luaProfiler.lua
        if (not detectPeaks) or (detectPeaks and localPeakDetected) then
          --local msg = rpad(title, width, " ").." = "..format(time, 3, 8)
          local msg = format(garbage, 0, 8) .. " bytes"