public static int findFirstEqual ( final CharSequence source , final int index , final CharSequence match ) { for ( int i = index ; i < source . length ( ) ; i ++ ) { if ( equalsOne ( source . charAt ( i ) , match ) ) { return i ; } } return - 1 ; }
Finds index of the first character in given charsequence the matches any from the given set of characters .