java/org/apache/catalina/filters/ExpiresFilter.java
/**
     * @return {@code true} if the given {@code string} starts with the
     * given {@code prefix} ignoring case.
     *
     * @param string
     *            can be {@code null}
     * @param prefix
     *            can be {@code null}
     */
@return  true if the given  string starts with the
given  prefix ignoring case.

@param string
can be  null
@param prefix
can be  null
@return true if the given string starts with the given prefix ignoring case . @param string can be null @param prefix can be null
protected static boolean startsWithIgnoreCase(String string, String prefix) {
        if (string == null || prefix == null) {
            return string == null && prefix == null;
        }
        if (prefix.length() > string.length()) {
            return false;
        }
        return string.regionMatches(true, 0, prefix, 0, prefix.length());
    }
protected static boolean startsWithIgnoreCase ( String string , String prefix ) { if ( string == null || prefix == null ) { return string == null && prefix == null ; } if ( prefix . length ( ) > string . length ( ) ) { return false ; } return string . regionMatches ( true , 0 , prefix , 0 , prefix . length ( ) ) ; }
@return {@code true} if the given {@code string} starts with the
 given {@code prefix} ignoring case.
@return { @code true } if the given { @code string } starts with the given { @code prefix } ignoring case .