|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opera.core.systems.common.lang.OperaStrings
public class OperaStrings
OperaStrings should be considered a supplement to Strings in
Guava.
| Constructor Summary | |
|---|---|
OperaStrings()
|
|
| Method Summary | |
|---|---|
static String |
escapeJsString(String string)
Escape characters for safe insertion in a Javascript string contained by double quotes ("). |
static String |
escapeJsString(String string,
String quote)
Escape characters for safe insertion in a JavaScript string. |
static boolean |
isDouble(String string)
Checks whether given string has a double value. |
static boolean |
isInteger(String string)
Checks whether the given string has an integer value. |
static boolean |
isNumeric(String string)
Checks whether given string has a numeric value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperaStrings()
| Method Detail |
|---|
public static boolean isNumeric(String string)
string - the string to check
public static boolean isDouble(String string)
string - the string to check
public static boolean isInteger(String string)
string - the string to check
public static String escapeJsString(String string)
string - the string to escape
public static String escapeJsString(String string,
String quote)
string - the string to escapequote - the type of quote to escape. Either " or '
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||