summaryrefslogtreecommitdiff
path: root/src/hashfunctioncasestring.h
blob: 7816a1b0ba65059800f8134560c4a8ba42f1caf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef HASH_FUNCTION_CASE_STRING
#define HASH_FUNCTION_CASE_STRING

#include "hashfunction.h"

/** A hash function for string data.  This hash function does strings, but is
  * actually generalized to handle any binary stream of characters terminated
  * by a null character.  This is different than HashFunctionString in that
  * this does comparisons without regaurd to case.
  *@author Mike Buland.
  */
class HashFunctionCaseString : public HashFunction
{
public:
	/**
	 * Standard Constructor.
	 */
	HashFunctionCaseString();
	
	/**
	 * Standard Deconstructor.
	 */
	virtual ~HashFunctionCaseString();
	unsigned long int hash( const void *id );
	bool cmpIDs( const void *id1, const void *id2 );
};

#endif