|
Class EString
|
| Field Summary | |
|---|---|
final static String |
The digits. |
| Method Summary | |
|---|---|
public static int |
amatch(String str, String pat) Look for a match between the string and the pattern. |
public static String |
compress(String s) Compresses its input by:
dropping space before space, comma, and period;
adding space before question, if char before is not a space; and
copying all others |
public static int |
count(String s, char c) Count number of occurrances of c in str |
public static int |
findNum(String str) Look for a number in the string. |
public static int |
findPat(String str, String pat) Search in successive positions of the string,
looking for a match to the pattern. |
public static boolean |
match(String str, String pat, String matches) |
static boolean |
matchA(String str, String pat, String matches) Match the string against a pattern and fills in
matches array with the pieces that matched * and # |
static boolean |
matchB(String strIn, String patIn, String matches) |
public static String |
pad(String s) Pad by ensuring there are spaces before and after the sentence. |
public static String |
translate(String str, String src, String dest) |
public static String |
trim(String s) Trim off leading space |
| Field Detail |
| Method Detail |