|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.common.base.Ascii
@Beta @GwtCompatible public final class Ascii
Static methods pertaining ASCII characters (those in the range of values 0x00
through
0x7F
), and to strings containing such characters.
Method Summary | |
---|---|
static boolean |
isLowerCase(char c)
Indicates whether c is one of the twenty-six lowercase ASCII alphabetic characters
between 'a' and 'z' inclusive. |
static boolean |
isUpperCase(char c)
Indicates whether c is one of the twenty-six uppercase ASCII alphabetic characters
between 'A' and 'Z' inclusive. |
static char |
toLowerCase(char c)
If the argument is an uppercase ASCII character returns the lowercase equivalent. |
static String |
toLowerCase(String string)
Returns a copy of the input string in which all uppercase ASCII characters have been converted to lowercase. |
static char |
toUpperCase(char c)
If the argument is a lowercase ASCII character returns the uppercase equivalent. |
static String |
toUpperCase(String string)
Returns a copy of the input string in which all lowercase ASCII characters have been converted to uppercase. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String toLowerCase(String string)
public static char toLowerCase(char c)
public static String toUpperCase(String string)
public static char toUpperCase(char c)
public static boolean isLowerCase(char c)
c
is one of the twenty-six lowercase ASCII alphabetic characters
between 'a'
and 'z'
inclusive. All others (including non-ASCII characters)
return false
.
public static boolean isUpperCase(char c)
c
is one of the twenty-six uppercase ASCII alphabetic characters
between 'A'
and 'Z'
inclusive. All others (including non-ASCII characters)
return false
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |