From 8ec0fe03ec3c03ebbb4f5d3a7b3dc7d5955ac1d2 Mon Sep 17 00:00:00 2001
From: Fredrik Westermarck
- * CharUtils.toCharacter(null, 'X') = IllegalArgumentException - * CharUtils.toCharacter("", 'X') = IllegalArgumentException - * CharUtils.toCharacter("A", 'X') = 'A' - * CharUtils.toCharacter("BA", 'X') = 'B' + * CharUtils.toCharacter(null) = IllegalArgumentException + * CharUtils.toCharacter("") = IllegalArgumentException + * CharUtils.toCharacter("A") = 'A' + * CharUtils.toCharacter("BA") = 'B' ** * @param str the character to convert @@ -321,8 +321,8 @@ public static String toString(Character ch) { *
This format is the Java source code format.
* *- * CharUtils.toUnicode(' ') = "\u0020" - * CharUtils.toUnicode('A') = "\u0041" + * CharUtils.unicodeEscaped(' ') = "\u0020" + * CharUtils.unicodeEscaped('A') = "\u0041" ** * @param ch the character to convert @@ -347,9 +347,9 @@ public static String unicodeEscaped(char ch) { *
If null
is passed in, null
will be returned.
- * CharUtils.toUnicode(null) = null - * CharUtils.toUnicode(' ') = "\u0020" - * CharUtils.toUnicode('A') = "\u0041" + * CharUtils.unicodeEscaped(null) = null + * CharUtils.unicodeEscaped(' ') = "\u0020" + * CharUtils.unicodeEscaped('A') = "\u0041" ** * @param ch the character to convert, may be null