@Test public void testLowercaseBeyondBMP() throws Exception { int[] codePoints = new int[]{65,66578,67}; int[] expectedCodePoints = new int[]{97,66618,99}; String input = new String(codePoints, 0, codePoints.length); String lc = StringUtil.toLowerCase(input); Assert.assertArrayEquals(expectedCodePoints, lc.codePoints().toArray()); }
public static String toLowerCase(CharSequence string) { int[] cp = string.codePoints().map(Character::toLowerCase).toArray(); return new String(cp, 0, cp.length); }
StringUtil { public static String toLowerCase(CharSequence string) { int[] cp = string.codePoints().map(Character::toLowerCase).toArray(); return new String(cp, 0, cp.length); } }
StringUtil { public static String toLowerCase(CharSequence string) { int[] cp = string.codePoints().map(Character::toLowerCase).toArray(); return new String(cp, 0, cp.length); }  }
StringUtil { public static String toLowerCase(CharSequence string) { int[] cp = string.codePoints().map(Character::toLowerCase).toArray(); return new String(cp, 0, cp.length); }  static boolean isWhitespace(char charCode); static boolean isWhitespace(int charCode); static String toLowerCase(CharSequence string); static String toUpperCase(CharSequence string); static boolean isEmpty(CharSequence theString); static int[][] levenshteinDistance(String wordForm, String lemma); static void computeShortestEditScript(String wordForm, String lemma,
      int[][] distance, StringBuffer permutations); static String decodeShortestEditScript(String wordForm, String permutations); static String getShortestEditScript(String wordForm, String lemma); }
StringUtil { public static String toLowerCase(CharSequence string) { int[] cp = string.codePoints().map(Character::toLowerCase).toArray(); return new String(cp, 0, cp.length); }  static boolean isWhitespace(char charCode); static boolean isWhitespace(int charCode); static String toLowerCase(CharSequence string); static String toUpperCase(CharSequence string); static boolean isEmpty(CharSequence theString); static int[][] levenshteinDistance(String wordForm, String lemma); static void computeShortestEditScript(String wordForm, String lemma,
      int[][] distance, StringBuffer permutations); static String decodeShortestEditScript(String wordForm, String permutations); static String getShortestEditScript(String wordForm, String lemma);  }