public final class TextUtils
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
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 characterspublic 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 onpublic static int countSplits(java.lang.String inStr,
java.lang.String splitStr)
inStr - The main string to compare againstsplitStr - The matching portions to find