/*----------------------------------------------------------------------------- hash.h -- Hashing Copyright (c) 1994 JANZ Computer AG All Rights Reserved Created 94/10/11 by Soenke Hansen Version 1.3 of 98/03/24 -----------------------------------------------------------------------------*/ #ifndef hash_DEFINED #define hash_DEFINED #ifdef __cplusplus extern "C" { #endif #include "defs.h" /* Hashing */ #define HASH_LEN 211 /* prime number used in hashing */ extern int hashfcn(BYTE_t *bytestr, int len); /* Check encoding range of character */ #define IS_NUM(c) ((c) >= 0x30 && (c) <= 0x39) #define IS_ALPHA_NUM(c) (((c) >= 0x30 && (c) <= 0x39) || \ ((c) == '_') || \ ((c) >= 0x41 && (c) <= 0x5a) || \ ((c) >= 0x61 && (c) <= 0x7a)) #ifdef __cplusplus } #endif #endif /* !hash_DEFINED */