OLD | NEW |
1 /* C++ code produced by gperf version 3.0.3 */ | 1 /* C++ code produced by gperf version 3.0.3 */ |
2 /* Command-line: gperf -a -L C++ -C -c -o -t -k '*' -NFindDomain -ZPerfect_Hash_
Test1 -D effective_tld_names_unittest1.gperf */ | 2 /* Command-line: gperf -a -L C++ -C -c -o -t -k '*' -NFindDomain -ZPerfect_Hash_
Test1 -D effective_tld_names_unittest1.gperf */ |
3 | 3 |
4 #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ | 4 #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ |
5 && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ | 5 && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ |
6 && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \ | 6 && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \ |
7 && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \ | 7 && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \ |
8 && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \ | 8 && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \ |
9 && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \ | 9 && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \ |
10 && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \ | 10 && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \ |
(...skipping 12 matching lines...) Expand all Loading... |
23 && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \ | 23 && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \ |
24 && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \ | 24 && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \ |
25 && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \ | 25 && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \ |
26 && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126)) | 26 && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126)) |
27 /* The character set is not based on ISO-646. */ | 27 /* The character set is not based on ISO-646. */ |
28 #error "gperf generated tables don't work with this execution character set. Ple
ase report a bug to <bug-gnu-gperf@gnu.org>." | 28 #error "gperf generated tables don't work with this execution character set. Ple
ase report a bug to <bug-gnu-gperf@gnu.org>." |
29 #endif | 29 #endif |
30 | 30 |
31 #line 1 "effective_tld_names_unittest1.gperf" | 31 #line 1 "effective_tld_names_unittest1.gperf" |
32 | 32 |
33 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 33 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
34 // Use of this source code is governed by a BSD-style license that | 34 // Use of this source code is governed by a BSD-style license that can be |
35 // can be found in the LICENSE file. | 35 // found in the LICENSE file. |
36 // Test file used by registry_controlled_domain_unittest. | 36 // Test file used by registry_controlled_domain_unittest. |
37 // We edit this file manually, then run | 37 // We edit this file manually, then run |
38 // gperf -a -L "C++" -C -G -c -o -t -k '*' -NFindDomain -ZPerfect_Hash_Test2 -Hh
ash_test1 -Wword_list1 -D effective_tld_names_unittest1.gperf > effective_tld_n
ames_unittest1.cc | 38 // gperf -a -L "C++" -C -c -o -t -k '*' -NFindDomain -ZPerfect_Hash_Test1 -D eff
ective_tld_names_unittest1.gperf > effective_tld_names_unittest1.cc |
39 // to generate the perfect hashmap. | 39 // to generate the perfect hashmap. |
40 #line 10 "effective_tld_names_unittest1.gperf" | 40 #line 10 "effective_tld_names_unittest1.gperf" |
41 struct DomainRule { | 41 struct DomainRule { |
42 const char *name; | 42 const char *name; |
43 int type; // 1: exception, 2: wildcard | 43 int type; // 1: exception, 2: wildcard |
44 }; | 44 }; |
45 | 45 |
46 #define TOTAL_KEYWORDS 8 | 46 #define TOTAL_KEYWORDS 8 |
47 #define MIN_WORD_LENGTH 1 | 47 #define MIN_WORD_LENGTH 1 |
48 #define MAX_WORD_LENGTH 11 | 48 #define MAX_WORD_LENGTH 11 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 | 174 |
175 if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] ==
'\0') | 175 if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] ==
'\0') |
176 return &wordlist[index]; | 176 return &wordlist[index]; |
177 } | 177 } |
178 } | 178 } |
179 } | 179 } |
180 return 0; | 180 return 0; |
181 } | 181 } |
182 #line 23 "effective_tld_names_unittest1.gperf" | 182 #line 23 "effective_tld_names_unittest1.gperf" |
183 | 183 |
OLD | NEW |