@ Deprecated public static int indexOf ( CharSequence s , int codePoint ) { int cp ; for ( int i = 0 ; i < s . length ( ) ; i += Character . charCount ( cp ) ) { cp = Character . codePointAt ( s , i ) ; if ( cp == codePoint ) { return i ; } } return - 1 ; }
Find code point in string .