public class Util extends Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static int |
count(char c,
String text) |
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 |
join(String[] lines) |
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 |
sameMaps(Map<K,V> map1,
Map<K,V> map2) |
static <V> boolean |
sameSets(Set<V> set1,
Set<V> set2) |
static int |
startColOfCursorLine(String text,
int cursor) |
public static int cursorPosFromLineCol(String text, int line, int col, int firstLineNum)
public static int cursorPosFromLineCol(String[] lines, int line, int col, int firstLineNum)
public static int cursorPosFromLineCol(int[] lineLengths, int line, int col, int firstLineNum)
public static int[] lineColFromCursorPos(String text, int pos, int firstLineNum)
public static int[] lineColFromCursorPos(String[] lines, int pos, int firstLineNum)
public static int[] lineColFromCursorPos(int[] lineLengths, int pos, int firstLineNum)
public static int count(char c, String text)
public static int startColOfCursorLine(String text, int cursor)
public static String indentationStringOfCursorLine(String text, int cursor)
Copyright © 2020 Magnolia International Ltd.. All rights reserved.