aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/passwords/driver/bcrypt_wcf2.php
diff options
context:
space:
mode:
authorErwan Nader <ernadoo@gmail.com>2016-07-24 17:46:23 +0200
committerErwan Nader <ernadoo@gmail.com>2016-07-24 17:46:23 +0200
commit4eecc95a42d8493b80a4b1a7684c84b3ffe488c3 (patch)
tree310b9381b5276da4a5295c6d01fbd01956cded2f /phpBB/phpbb/passwords/driver/bcrypt_wcf2.php
parentef91c6abed8ac69e1bbf62b8e1cb0f4452d585ae (diff)
downloadforums-4eecc95a42d8493b80a4b1a7684c84b3ffe488c3.tar
forums-4eecc95a42d8493b80a4b1a7684c84b3ffe488c3.tar.gz
forums-4eecc95a42d8493b80a4b1a7684c84b3ffe488c3.tar.bz2
forums-4eecc95a42d8493b80a4b1a7684c84b3ffe488c3.tar.xz
forums-4eecc95a42d8493b80a4b1a7684c84b3ffe488c3.zip
[ticket/14592] [PHP] core.search_backend_search_after
PHPBB3-14592
Diffstat (limited to 'phpBB/phpbb/passwords/driver/bcrypt_wcf2.php')
0 files changed, 0 insertions, 0 deletions
#n30'>30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
/* Perfect hash generated by command line:
 * ./a.out 1
 */
#define MIN_HASH_VALUE	2
#define MAX_HASH_VALUE	118
#define MIN_KEYWORD_LEN 2
#define MAX_KEYWORD_LEN 11

static unsigned char Keyword_Hash_Table [256] =
{
  119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 
  119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 
  119,   1, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 
    9,   7,   1,   8,   2, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 
  119, 119,   0,   0, 119,   0, 119, 119, 119,   7, 119,   0,   0, 119, 119,   0, 
  119, 119,   0,   0,   0,   0, 119, 119,   0, 119, 119, 119, 119, 119, 119,   2, 
  119,  41,   1,   1,   9,   0,  55,   8,   0,   0, 119,   0,  27,   0,   0,   0, 
    7,   2,   0,  21,   0,   0,   0,   3,   2,   0, 119, 119, 119, 119, 119, 119, 
  119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 
  119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 
  119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 
  119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 
  119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 
  119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 
  119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 
  119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119
};

static unsigned char keyword_hash (char *s, unsigned int len)
{
   unsigned int sum;

   sum = len;
   while (len)
     {
	len--;
	sum += (unsigned int) Keyword_Hash_Table [(unsigned char)s[len]];
     }
   return sum;
}

typedef struct
{
   char *name;
   unsigned int type;
}
Keyword_Table_Type;

static Keyword_Table_Type Keyword_Table [/* 117 */] =
{
   {"or",	OR_TOKEN},
   {"not",	NOT_TOKEN},
   {NULL,0},
   {"xor",	BXOR_TOKEN},
   {"return",	RETURN_TOKEN},
   {"exch",	EXCH_TOKEN},
   {NULL,0},
   {"continue",	CONT_TOKEN},
   {NULL,0},
   {"do",	DO_TOKEN},
   {"mod",	MOD_TOKEN},
   {"ERROR_BLOCK",	ERRBLK_TOKEN},
   {"USER_BLOCK2",	USRBLK2_TOKEN},
   {"USER_BLOCK4",	USRBLK4_TOKEN},
   {"__tmp",	TMP_TOKEN},
   {"pop",	POP_TOKEN},
   {NULL,0},
   {"EXIT_BLOCK",	EXITBLK_TOKEN},
   {"USER_BLOCK1",	USRBLK1_TOKEN},
   {"USER_BLOCK3",	USRBLK3_TOKEN},
   {"USER_BLOCK0",	USRBLK0_TOKEN},
   {NULL,0},
   {"shr",	SHR_TOKEN},
   {"chs",	CHS_TOKEN},
   {"sqr",	SQR_TOKEN},
   {NULL,0},
   {"struct",	STRUCT_TOKEN},
   {NULL,0},
   {NULL,0},
   {"switch",	SWITCH_TOKEN},
   {"mul2",	MUL2_TOKEN},
   {"sign",	SIGN_TOKEN},
   {"using",	USING_TOKEN},
   {"while",	WHILE_TOKEN},
   {NULL,0},
   {NULL,0},
   {"loop",	LOOP_TOKEN},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {"public",	PUBLIC_TOKEN},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {"break",	BREAK_TOKEN},
   {NULL,0},
   {"do_while",	DOWHILE_TOKEN},
   {NULL,0},
   {"shl",	SHL_TOKEN},
   {"else",	ELSE_TOKEN},
   {"and",	AND_TOKEN},
   {"orelse",	ORELSE_TOKEN},
   {"private",	PRIVATE_TOKEN},
   {NULL,0},
   {"if",	IF_TOKEN},
   {"for",	FOR_TOKEN},
   {"!if",	IFNOT_TOKEN},
   {NULL,0},
   {"_for",	_FOR_TOKEN},
   {"forever",	FOREVER_TOKEN},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {"abs",	ABS_TOKEN},
   {"case",	CASE_TOKEN},
   {NULL,0},
   {"static",	STATIC_TOKEN},
   {"define",	DEFINE_TOKEN},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {"typedef",	TYPEDEF_TOKEN},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {NULL,0},
   {"foreach",	FOREACH_TOKEN},
   {"andelse",	ANDELSE_TOKEN},