java.lang.Object
io.jmix.ui.widget.client.addon.aceeditor.Util

public class Util extends Object
  • Constructor Details

    • Util

      public Util()
  • Method Details

    • cursorPosFromLineCol

      public static int cursorPosFromLineCol(String text, int line, int col, int firstLineNum)
    • cursorPosFromLineCol

      public static int cursorPosFromLineCol(String[] lines, int line, int col, int firstLineNum)
    • cursorPosFromLineCol

      public static int cursorPosFromLineCol(int[] lineLengths, int line, int col, int firstLineNum)
    • lineColFromCursorPos

      public static int[] lineColFromCursorPos(String text, int pos, int firstLineNum)
    • lineColFromCursorPos

      public static int[] lineColFromCursorPos(String[] lines, int pos, int firstLineNum)
    • lineColFromCursorPos

      public static int[] lineColFromCursorPos(int[] lineLengths, int pos, int firstLineNum)
    • count

      public static int count(char c, String text)
    • startColOfCursorLine

      public static int startColOfCursorLine(String text, int cursor)
    • indentationStringOfCursorLine

      public static String indentationStringOfCursorLine(String text, int cursor)
    • join

      public static String join(String[] lines)
    • sameMaps

      public static <K, V> boolean sameMaps(Map<K,V> map1, Map<K,V> map2)
    • sameSets

      public static <V> boolean sameSets(Set<V> set1, Set<V> set2)
    • replaceContents

      public static String replaceContents(AceRange ofThis, String inText, String withThis)