|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.util.alg.CharKit
All char-array methods operates on half open intervals [begin, end), that is they access array only at indexes i such that begin <= i < end.
| Constructor Summary | |
CharKit()
|
|
| Method Summary | |
static void |
asciiToLowerCase(char[] array,
int begin,
int end)
Convert all occurences of 'A'..'Z' into corresponding 'a'..'z' |
static void |
asciiToUpperCase(char[] array,
int begin,
int end)
Convert all occurences of 'a'..'z' into corresponding 'A'..'Z' |
static boolean |
equals(String str,
char[] array,
int begin,
int end)
|
static boolean |
equalsIgnoreAsciiCase(String str,
char[] array,
int begin,
int end)
|
static boolean |
equalsIgnoreAsciiCase(String str1,
String str2)
|
static int |
indexOf(int ch,
char[] array,
int begin,
int end)
|
static long |
parseInt(char[] array,
int begin,
int end)
If array[begin..end) represents a signed decimal integer, return it as low 32 bits of the result, otherwise return -1L |
static long |
parseInt(String s)
If s represents a signed decimal integer, return it as low 32 bits of the result, otherwise return -1L |
static long |
parseInt(String s,
int begin,
int end)
If s[begin..end) represents a signed decimal integer, return it as low 32 bits of the result, otherwise return -1L |
static char[] |
replace(char from,
char[] to,
char[] array,
int begin,
int end)
Convert all occurences of 'from' into corresponding 'to'. |
static void |
replace(char from,
char to,
char[] array,
int begin,
int end)
Convert all occurences of 'from' into corresponding 'to' |
static int |
skipAny(String set,
char[] array,
int begin,
int end)
Search for first occurrence of any character not from set |
static int |
skipWhileNot(String set,
char[] array,
int begin,
int end)
Search for first occurrence of any character from set |
static String[] |
split(int separator,
String str)
|
static String[] |
split(int separator,
String str,
boolean skipEmpty)
|
static boolean |
startsWith(char[] array,
int begin,
int end,
String prefix)
|
static boolean |
startsWithIgnoreAsciiCase(char[] array,
int begin,
int end,
String prefix)
|
static boolean |
startsWithIgnoreAsciiCase(String str,
String prefix)
|
static String |
toLowerCase(String s)
Optimized version of s.toLowerCase() |
static String |
toString(char[] array,
int begin,
int end)
|
static int |
trimEnd(char[] array,
int begin,
int end)
Search for last non-ascii-space character, that is a character with value > ' ' or value > ' '. |
static int |
trimEnd(String str,
int begin,
int end)
Search for last non-ascii-space character, that is a character with value > ' ' or value > ' '. |
static int |
trimStart(char[] array,
int begin,
int end)
Search for first non-ascii-space character, that is a character with value > ' ' or value > ' '. |
static int |
trimStart(String str,
int begin,
int end)
Search for first non-ascii-space character, that is a character with value > ' ' or value > ' '. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CharKit()
| Method Detail |
public static int indexOf(int ch,
char[] array,
int begin,
int end)
public static int skipWhileNot(String set,
char[] array,
int begin,
int end)
public static int skipAny(String set,
char[] array,
int begin,
int end)
public static int trimStart(char[] array,
int begin,
int end)
public static int trimEnd(char[] array,
int begin,
int end)
public static int trimStart(String str,
int begin,
int end)
public static int trimEnd(String str,
int begin,
int end)
public static void asciiToLowerCase(char[] array,
int begin,
int end)
public static void asciiToUpperCase(char[] array,
int begin,
int end)
public static void replace(char from,
char to,
char[] array,
int begin,
int end)
public static char[] replace(char from,
char[] to,
char[] array,
int begin,
int end)
public static boolean equals(String str,
char[] array,
int begin,
int end)
public static boolean equalsIgnoreAsciiCase(String str,
char[] array,
int begin,
int end)
public static boolean equalsIgnoreAsciiCase(String str1,
String str2)
public static boolean startsWith(char[] array,
int begin,
int end,
String prefix)
public static boolean startsWithIgnoreAsciiCase(char[] array,
int begin,
int end,
String prefix)
public static boolean startsWithIgnoreAsciiCase(String str,
String prefix)
public static String toString(char[] array,
int begin,
int end)
public static String toLowerCase(String s)
public static long parseInt(char[] array,
int begin,
int end)
public static long parseInt(String s)
public static long parseInt(String s,
int begin,
int end)
public static String[] split(int separator,
String str)
public static String[] split(int separator,
String str,
boolean skipEmpty)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||