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 classStringLib.MatchStatestatic classStringLib.StringPointer -
Constructor Summary
Constructors Constructor Description StringLib(int index) -
Method Summary
Modifier and Type Method Description intcall(LuaCallFrame callFrame, int nArguments)static voidregister(Platform platform, KahluaTable env)static doubleroundToPrecision(double x, int precision)static doubleroundToSignificantNumbers(double x, int precision)java.lang.StringtoString()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:
toStringin classjava.lang.Object
-
call
- Specified by:
callin interfaceJavaFunction
-
roundToPrecision
public static double roundToPrecision(double x, int precision) -
roundToSignificantNumbers
public static double roundToSignificantNumbers(double x, int precision)
-