common/src/main/java/HTTPClient/CIHashtable.java
/**
     * We smash case before calculation so that the hash code is
     * "case insensitive". This is based on code snarfed from
     * java.lang.String.hashCode().
     */
We smash case before calculation so that the hash code is
"case insensitive". This is based on code snarfed from
java.lang.String.hashCode().
We smash case before calculation so that the hash code is " case insensitive " . This is based on code snarfed from java . lang . String . hashCode () .
private static final int calcHashCode(String str)
    {
	int  hash  = 0;
	char llc[] = lc;
	int  len   = str.length();
	for (int idx= 0; idx<len; idx++)
	    hash = 31*hash + llc[str.charAt(idx)];
	return hash;
    }
private static final int calcHashCode ( String str ) { int hash = 0 ; char llc [ ] = lc ; int len = str . length ( ) ; for ( int idx = 0 ; idx < len ; idx ++ ) hash = 31 * hash + llc [ str . charAt ( idx ) ] ; return hash ; }
We smash case before calculation so that the hash code is
 "case insensitive".
We smash case before calculation so that the hash code is " case insensitive " .