Package se.krka.kahlua.stdlib
Class StringLib
java.lang.Object
se.krka.kahlua.stdlib.StringLib
- All Implemented Interfaces:
JavaFunction
public final class StringLib extends java.lang.Object implements JavaFunction
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StringLib.MatchState
static class
StringLib.StringPointer
-
Constructor Summary
Constructors Constructor Description StringLib(int index)
-
Method Summary
Modifier and Type Method Description int
call(LuaCallFrame callFrame, int nArguments)
static void
register(Platform platform, KahluaTable env)
static double
roundToPrecision(double x, int precision)
static double
roundToSignificantNumbers(double x, int precision)
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
StringLib
public StringLib(int index)
-
-
Method Details
-
register
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
call
- Specified by:
call
in interfaceJavaFunction
-
roundToPrecision
public static double roundToPrecision(double x, int precision) -
roundToSignificantNumbers
public static double roundToSignificantNumbers(double x, int precision)
-