|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.misc.StringUtils
public final class StringUtils
Utilities for string management.
| Method Summary | |
|---|---|
static String |
fromUCP(int ucp)
Returns a string containing a single character, namely the given Unicode code point. |
static String |
fromUCP(int[] ucps)
Returns a string containing the characters with the given Unicode code points. |
static boolean |
isValid(int ucp)
Checks whether the given integer represents a well-defined unicode code point that is also not an ISO control character or within the surrogate areas (high or low). |
static int |
lengthUCP(String s)
Returns the number of Unicode code points in the given string. |
static int[] |
toUCPArray(String s)
Returns an array containing the Unicode code points of the given string. |
static String |
toUCPArrayStr(String s)
Returns a string containing the integer representations, in uppercase hex, of the Unicode code points of the given string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int lengthUCP(String s)
s - The string.
public static String fromUCP(int[] ucps)
ucps - The code points.
public static String fromUCP(int ucp)
ucp - The code point.
public static int[] toUCPArray(String s)
s - The string. It may be null, in which case null is
returned.
public static String toUCPArrayStr(String s)
s - The input string. It may be null, in which case null
is returned.
public static boolean isValid(int ucp)
ucp - The integer (candidate code point).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||