tomcat/src/main/java/org/apache/catalina/filters/ExpiresFilter.java
/**
     * Return <code>true</code> if the given <code>string</code> starts with the
     * given <code>prefix</code> ignoring case.
     *
     * @param string
     *            can be <code>null</code>
     * @param prefix
     *            can be <code>null</code>
     */
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</code> if the given <code>string</code> starts with the
 given <code>prefix</code> ignoring case.
Return <code > true< / code > if the given <code > string< / code > starts with the given <code > prefix< / code > ignoring case .