|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectanecho.gui.TextUtils
public final class TextUtils
This class contains methods to do some common string requirements such as stripping escape characters.
| Method Summary | |
|---|---|
static java.lang.String |
cleanURL(java.lang.String input)
This method is used to remove extra characters from a URL. |
static int |
countSplits(java.lang.String inStr,
java.lang.String splitStr)
Counts the number of times the matching string appears in the given string An instance of the split as the first substring does not count as a match, as a real "split" cannot occur if there is nothing infront of it. |
static java.lang.String[] |
splitter(java.lang.String inStr,
java.lang.String splitStr)
This method splits the given string into an array of strings separated |
static double |
stringToDouble(java.lang.String input)
This method converts the numeric portion of a String to an Int. |
static java.lang.String |
stripEscapes(java.lang.String token,
boolean useBell)
This method returns the value of a string once it has had any escape characters stripped from it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String stripEscapes(java.lang.String token,
boolean useBell)
token - The string that will be analysed for escape characters.useBell - true - trigger system "bell" if a bell sequence is stripped.
false - do not trigger the system "bell" if a bell sequence is stripped.
public static java.lang.String cleanURL(java.lang.String input)
input -
public static double stringToDouble(java.lang.String input)
input - A mix string of numbers and characters
public static java.lang.String[] splitter(java.lang.String inStr,
java.lang.String splitStr)
inStr - The given string to splitsplitStr - The string to base the splitting on
public static int countSplits(java.lang.String inStr,
java.lang.String splitStr)
inStr - The main string to compare againstsplitStr - The matching portions to find
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||