Package de.cxp.ocs.util
Class StringUtils
- java.lang.Object
-
- de.cxp.ocs.util.StringUtils
-
public final class StringUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringasciify(String s)Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if one exists.static StringescapeReservedESCharacters(String text)
-
-
-
Method Detail
-
escapeReservedESCharacters
public static String escapeReservedESCharacters(String text)
- Parameters:
text- that should be escaped- Returns:
- that text with the reserved characters escaped
-
asciify
public static String asciify(String s)
Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if one exists.- Parameters:
s- the string to convert.- Returns:
- the converted string.
-
-