public final class FoxBaseStringUtils
extends java.lang.Object
author: Blankj
blog : http://blankj.com
time : 2016/08/16
desc : utils about string
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
equals(java.lang.CharSequence s1,
java.lang.CharSequence s2)
Return whether string1 is equals to string2.
|
static boolean |
equalsIgnoreCase(java.lang.String s1,
java.lang.String s2)
Return whether string1 is equals to string2, ignoring case considerations..
|
static java.lang.String |
getString(int id)
Return the string value associated with a particular resource ID.
|
static java.lang.String |
getString(int id,
java.lang.Object... formatArgs)
Return the string value associated with a particular resource ID.
|
static java.lang.String[] |
getStringArray(int id)
Return the string array associated with a particular resource ID.
|
static boolean |
isEmpty(java.lang.CharSequence s)
Return whether the string is null or 0-length.
|
static boolean |
isSpace(java.lang.String s)
Return whether the string is null or white space.
|
static boolean |
isTrimEmpty(java.lang.String s)
Return whether the string is null or whitespace.
|
static int |
length(java.lang.CharSequence s)
Return the length of string.
|
static java.lang.String |
lowerFirstLetter(java.lang.String s)
Set the first letter of string lower.
|
static java.lang.String |
null2Length0(java.lang.String s)
Return
"" if string equals null. |
static java.lang.String |
reverse(java.lang.String s)
Reverse the string.
|
static java.lang.String |
toDBC(java.lang.String s)
Convert string to DBC.
|
static java.lang.String |
toSBC(java.lang.String s)
Convert string to SBC.
|
static java.lang.String |
upperFirstLetter(java.lang.String s)
Set the first letter of string upper.
|
public static boolean isEmpty(java.lang.CharSequence s)
s - The string.true: yesfalse: nopublic static boolean isTrimEmpty(java.lang.String s)
s - The string.true: yesfalse: nopublic static boolean isSpace(java.lang.String s)
s - The string.true: yesfalse: nopublic static boolean equals(java.lang.CharSequence s1,
java.lang.CharSequence s2)
s1 - The first string.s2 - The second string.true: yesfalse: nopublic static boolean equalsIgnoreCase(java.lang.String s1,
java.lang.String s2)
s1 - The first string.s2 - The second string.true: yesfalse: nopublic static java.lang.String null2Length0(java.lang.String s)
"" if string equals null.s - The string."" if string equals nullpublic static int length(java.lang.CharSequence s)
s - The string.public static java.lang.String upperFirstLetter(java.lang.String s)
s - The string.public static java.lang.String lowerFirstLetter(java.lang.String s)
s - The string.public static java.lang.String reverse(java.lang.String s)
s - The string.public static java.lang.String toDBC(java.lang.String s)
s - The string.public static java.lang.String toSBC(java.lang.String s)
s - The string.public static java.lang.String getString(int id)
id - The desired resource identifier.public static java.lang.String getString(int id,
java.lang.Object... formatArgs)
id - The desired resource identifier.formatArgs - The format arguments that will be used for substitution.public static java.lang.String[] getStringArray(int id)
id - The desired resource identifier.