Class Util
java.lang.Object
io.jmix.ui.widget.client.addon.aceeditor.Util
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
static int
cursorPosFromLineCol
(int[] lineLengths, int line, int col, int firstLineNum) static int
cursorPosFromLineCol
(String[] lines, int line, int col, int firstLineNum) static int
cursorPosFromLineCol
(String text, int line, int col, int firstLineNum) static String
indentationStringOfCursorLine
(String text, int cursor) static String
static int[]
lineColFromCursorPos
(int[] lineLengths, int pos, int firstLineNum) static int[]
lineColFromCursorPos
(String[] lines, int pos, int firstLineNum) static int[]
lineColFromCursorPos
(String text, int pos, int firstLineNum) static String
replaceContents
(AceRange ofThis, String inText, String withThis) static <K,
V> boolean static <V> boolean
static int
startColOfCursorLine
(String text, int cursor)
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
cursorPosFromLineCol
-
cursorPosFromLineCol
-
cursorPosFromLineCol
public static int cursorPosFromLineCol(int[] lineLengths, int line, int col, int firstLineNum) -
lineColFromCursorPos
-
lineColFromCursorPos
-
lineColFromCursorPos
public static int[] lineColFromCursorPos(int[] lineLengths, int pos, int firstLineNum) -
count
-
startColOfCursorLine
-
indentationStringOfCursorLine
-
join
-
sameMaps
-
sameSets
-
replaceContents
-