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 int1)  
  • Method Summary

    Modifier and Type Method Description
    int call​(LuaCallFrame luaCallFrame, int int1)  
    static void register​(Platform platform, KahluaTable kahluaTable)  
    static double roundToPrecision​(double double1, int int1)  
    static double roundToSignificantNumbers​(double double1, int int1)  
    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 int1)
  • Method Details

    • register

      public static void register​(Platform platform, KahluaTable kahluaTable)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • call

      public int call​(LuaCallFrame luaCallFrame, int int1)
      Specified by:
      call in interface JavaFunction
    • roundToPrecision

      public static double roundToPrecision​(double double1, int int1)
    • roundToSignificantNumbers

      public static double roundToSignificantNumbers​(double double1, int int1)