public static int indexOf ( String input , char ch , int offset ) { for ( int i = offset ; i < input . length ( ) ; i ++ ) { if ( input . charAt ( i ) == ch ) { return i ; } } return - 1 ; }
Like a String . indexOf but without MIN_SUPPLEMENTARY_CODE_POINT handling