public static int countCodePoint ( StringBuffer source ) { if ( source == null || source . length ( ) == 0 ) { return 0 ; } return findCodePointOffset ( source , source . length ( ) ) ; }
Number of codepoints in a UTF16 String buffer