Class LuaStringHelper

java.lang.Object
games.stendhal.server.core.scripting.lua.LuaStringHelper

public class LuaStringHelper extends Object
Adds some useful string function members to Lua "string" object.
  • Method Details

    • get

      public static LuaStringHelper get()
      Retrieves the static instance.
      Returns:
      Static LuaStringHelper instance.
    • init

      public void init(org.luaj.vm2.LuaTable stringTable)
      Adds custom functions to the Lua "string" object.
      Parameters:
      stringTable - Lua "string" object.