|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.util.mString
This provides many additional utility String manipulation routines.
| Field Summary | |
static int |
Lowercase
|
static int |
Uppercase
|
| Constructor Summary | |
mString()
|
|
| Method Summary | |
static void |
changeCase(char[] chars,
int toWhat)
|
static String |
changeCase(String what,
int toWhat)
|
static int |
compare(String one,
String two)
|
static int |
compare(String one,
String two,
boolean ignoreCase)
|
static void |
copyInto(String data,
char[] destination,
int destinationStart)
Copy the characters from the String into the destination in the most memory effecient way. |
static void |
copyInto(String data,
int dataStart,
char[] destination,
int destinationStart,
int length)
Copy the characters from the String into the destination in the most memory effecient way. |
static String |
fromAscii(byte[] bytes,
int start,
int length)
|
static String |
fromBytes(byte[] bytes)
|
static String |
fromBytes(byte[] bytes,
int offset,
int stringLength)
|
static int |
indexOf(String s,
char what)
|
static String |
leftOf(String s,
char c)
This returns the string to the left of the specified character (not including the character). |
static String |
removeTrailingSlash(String s)
This removes a trailing "/" or "\" character. |
static String |
rightOf(String s,
char c)
This returns the string to the right of the specified character (not including the character). |
static String[] |
split(String what)
This splits a String using '|' as the separator. |
static String[] |
split(String what,
char separator)
Splits up a String using the specified separator and returns an array of sub Strings. |
static Vector |
split(String what,
char separator,
Vector dest)
Splits up a String using the specified separator and add the substrings to the destination Vector. |
static String[] |
splitCommand(String args,
String prepend)
|
static byte[] |
toAscii(String what)
|
static byte[] |
toBytes(String what)
|
static void |
toBytes(String what,
byte[] dest,
int offset)
|
static void |
toBytes(String what,
byte[] dest,
int offset,
boolean ascii)
|
static String |
toString(Object what)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, toString |
| Field Detail |
public static final int Uppercase
public static final int Lowercase
| Constructor Detail |
public mString()
| Method Detail |
public static Vector split(String what,
char separator,
Vector dest)
public static String[] split(String what,
char separator)
public static String[] split(String what)
public static void toBytes(String what,
byte[] dest,
int offset)
public static void toBytes(String what,
byte[] dest,
int offset,
boolean ascii)
public static byte[] toAscii(String what)
public static String fromAscii(byte[] bytes,
int start,
int length)
public static byte[] toBytes(String what)
public static String fromBytes(byte[] bytes,
int offset,
int stringLength)
public static String fromBytes(byte[] bytes)
public static String toString(Object what)
public static void changeCase(char[] chars,
int toWhat)
public static String changeCase(String what,
int toWhat)
public static int compare(String one,
String two)
public static int compare(String one,
String two,
boolean ignoreCase)
public static int indexOf(String s,
char what)
public static String leftOf(String s,
char c)
public static String rightOf(String s,
char c)
public static String removeTrailingSlash(String s)
public static String[] splitCommand(String args,
String prepend)
public static void copyInto(String data,
int dataStart,
char[] destination,
int destinationStart,
int length)
data - The string data.dataStart - The starting character in the String.destination - The destination character array.destinationStart - The starting point in the destination array.length - The number of characters to copy.
public static void copyInto(String data,
char[] destination,
int destinationStart)
data - The string data.destination - The destination character array.destinationStart - The starting point in the destination array.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||