@Test public void countChars() { String test = "你好吗？"; String test1 = "Thîs lóo̰ks we̐ird!"; assertThat(CountUtil.countCharacters(test)).isEqualTo(4); assertThat(CountUtil.countCharacters(test1)).isEqualTo(21); }
public static long countCharacters(@Nonnull String content) { if (StringUtils.isBlank(content)) { return 0; } return content.codePointCount(0, content.length()); }
CountUtil { public static long countCharacters(@Nonnull String content) { if (StringUtils.isBlank(content)) { return 0; } return content.codePointCount(0, content.length()); } }
CountUtil { public static long countCharacters(@Nonnull String content) { if (StringUtils.isBlank(content)) { return 0; } return content.codePointCount(0, content.length()); } private  CountUtil(); }
CountUtil { public static long countCharacters(@Nonnull String content) { if (StringUtils.isBlank(content)) { return 0; } return content.codePointCount(0, content.length()); } private  CountUtil(); static long countWords(@NotNull String content,
            @NotNull String localeCode); static long countCharacters(@Nonnull String content); }
CountUtil { public static long countCharacters(@Nonnull String content) { if (StringUtils.isBlank(content)) { return 0; } return content.codePointCount(0, content.length()); } private  CountUtil(); static long countWords(@NotNull String content,
            @NotNull String localeCode); static long countCharacters(@Nonnull String content);  }