public static boolean startsWith ( CharSequence seq , CharSequence pattern , IntUnaryOperator op ) { if ( pattern . length ( ) > seq . length ( ) ) { return false ; } int length = pattern . length ( ) ; for ( int ii = 0 ; ii < length ; ii ++ ) { if ( op . applyAsInt ( seq . charAt ( ii ) ) != op . applyAsInt ( pattern . charAt ( ii ) ) ) { return false ; } } return true ; }
Return true if seq start match pattern after both characters have been converted with op .