public final class StringUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
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).Copyright © 2015. All Rights Reserved.