Revision 477
Added by Matthias over 17 years ago
search_convert.php | ||
---|---|---|
33 | 33 |
exit(0); |
34 | 34 |
} |
35 | 35 |
|
36 |
//htmlspecialchars_decode |
|
37 |
$string_htmlspecialchars_decode=array( |
|
38 |
"<"=>"<", ">"=>">", "&"=>"&", """=>"\"", "'"=>"\'" |
|
39 |
); |
|
40 |
//htmlspecialchars_decode |
|
41 |
$string_htmlspecialchars_encode=array( |
|
42 |
"<"=>"<", ">"=>">", "&"=>"&", "\""=>""", "\'"=>"'" |
|
43 |
); |
|
44 |
|
|
36 | 45 |
//convert some bad characters |
37 | 46 |
$string_conv_all=array( |
38 |
"<"=>"<",">"=>">","&"=>"&","\""=>""","\'"=>"'","!"=>" ","-"=>" ","="=>" " |
|
39 |
); |
|
40 |
$string_entities_conv_all=array( |
|
41 | 47 |
"!"=>" ","-"=>" ","="=>" " |
42 | 48 |
); |
43 | 49 |
|
44 |
//htmlspecialchars_decode |
|
45 |
$string_htmlspecialchars_decode=array( |
|
46 |
"<"=>"<", ">"=>">", "&"=>"&", """=>"\"", "''"=>"\'" |
|
47 |
); |
|
48 |
|
|
49 | 50 |
//umlauts to '(upper|lower)' for preg_match() |
50 | 51 |
//this is UTF-8-encoded |
51 | 52 |
$string_ul_umlauts = array( |
... | ... | |
55 | 56 |
"\xc3\xa2" => "(\xc3\xa2|\xc3\x82)", |
56 | 57 |
"\xc3\xa3" => "(\xc3\xa3|\xc3\x83)", |
57 | 58 |
"\xc3\xa4" => "(\xc3\xa4|\xc3\x84)", |
58 |
"\xc3\xa5" => "(\xc3\xa5|\xc3\x85)", |
|
59 |
"\xc3\xa5" => "(\xc3\xa5|\xc3\x85|\xe2\x84\xab)",
|
|
59 | 60 |
"\xc3\xa6" => "(\xc3\xa6|\xc3\x86)", |
60 | 61 |
"\xc3\xa7" => "(\xc3\xa7|\xc3\x87)", |
61 | 62 |
"\xc3\xa8" => "(\xc3\xa8|\xc3\x88)", |
... | ... | |
162 | 163 |
"\xc6\xb9" => "(\xc6\xb9|\xc6\xb8)", |
163 | 164 |
"\xc6\xbd" => "(\xc6\xbd|\xc6\xbc)", |
164 | 165 |
"\xc6\xbf" => "(\xc6\xbf|\xc7\xb7)", |
165 |
"\xc7\x85" => "(\xc7\x85|\xc7\x84)", |
|
166 |
"\xc7\x86" => "(\xc7\x86|\xc7\x84)", |
|
167 |
"\xc7\x88" => "(\xc7\x88|\xc7\x87)", |
|
168 |
"\xc7\x89" => "(\xc7\x89|\xc7\x87)", |
|
169 |
"\xc7\x8b" => "(\xc7\x8b|\xc7\x8a)", |
|
170 |
"\xc7\x8c" => "(\xc7\x8c|\xc7\x8a)", |
|
166 |
"\xc7\x86" => "(\xc7\x86|\xc7\x84|\xc7\x85)", |
|
167 |
"\xc7\x89" => "(\xc7\x89|\xc7\x87|\xc7\x88)", |
|
168 |
"\xc7\x8c" => "(\xc7\x8c|\xc7\x8a|\xc7\x8b)", |
|
171 | 169 |
"\xc7\x8e" => "(\xc7\x8e|\xc7\x8d)", |
172 | 170 |
"\xc7\x90" => "(\xc7\x90|\xc7\x8f)", |
173 | 171 |
"\xc7\x92" => "(\xc7\x92|\xc7\x91)", |
... | ... | |
186 | 184 |
"\xc7\xab" => "(\xc7\xab|\xc7\xaa)", |
187 | 185 |
"\xc7\xad" => "(\xc7\xad|\xc7\xac)", |
188 | 186 |
"\xc7\xaf" => "(\xc7\xaf|\xc7\xae)", |
189 |
"\xc7\xb2" => "(\xc7\xb2|\xc7\xb1)", |
|
190 |
"\xc7\xb3" => "(\xc7\xb3|\xc7\xb1)", |
|
187 |
"\xc7\xb2" => "(\xc7\xb2|\xc7\xb1|\xc7\xb3)",
|
|
188 |
"\xc7\xb3" => "(\xc7\xb3|\xc7\xb1|\xc7\xb2)",
|
|
191 | 189 |
"\xc7\xb5" => "(\xc7\xb5|\xc7\xb4)", |
192 | 190 |
"\xc7\xb9" => "(\xc7\xb9|\xc7\xb8)", |
193 | 191 |
"\xc7\xbb" => "(\xc7\xbb|\xc7\xba)", |
... | ... | |
249 | 247 |
"\xce\xb5" => "(\xce\xb5|\xce\x95)", |
250 | 248 |
"\xce\xb6" => "(\xce\xb6|\xce\x96)", |
251 | 249 |
"\xce\xb7" => "(\xce\xb7|\xce\x97)", |
252 |
"\xce\xb8" => "(\xce\xb8|\xce\x98)", |
|
250 |
"\xce\xb8" => "(\xce\xb8|\xce\x98|\xcf\xb4)",
|
|
253 | 251 |
"\xce\xb9" => "(\xce\xb9|\xce\x99)", |
254 | 252 |
"\xce\xba" => "(\xce\xba|\xce\x9a)", |
255 | 253 |
"\xce\xbb" => "(\xce\xbb|\xce\x9b)", |
... | ... | |
266 | 264 |
"\xcf\x86" => "(\xcf\x86|\xce\xa6)", |
267 | 265 |
"\xcf\x87" => "(\xcf\x87|\xce\xa7)", |
268 | 266 |
"\xcf\x88" => "(\xcf\x88|\xce\xa8)", |
269 |
"\xcf\x89" => "(\xcf\x89|\xce\xa9)", |
|
267 |
"\xcf\x89" => "(\xcf\x89|\xce\xa9|\xe2\x84\xa6)",
|
|
270 | 268 |
"\xcf\x8a" => "(\xcf\x8a|\xce\xaa)", |
271 | 269 |
"\xcf\x8b" => "(\xcf\x8b|\xce\xab)", |
272 | 270 |
"\xcf\x8c" => "(\xcf\x8c|\xce\x8c)", |
... | ... | |
897 | 895 |
"\xc6\xb7" => "(\xc6\xb7|\xca\x92)", |
898 | 896 |
"\xc6\xb8" => "(\xc6\xb8|\xc6\xb9)", |
899 | 897 |
"\xc6\xbc" => "(\xc6\xbc|\xc6\xbd)", |
900 |
"\xc7\x84" => "(\xc7\x84|\xc7\x86)", |
|
901 |
"\xc7\x85" => "(\xc7\x85|\xc7\x86)", |
|
902 |
"\xc7\x87" => "(\xc7\x87|\xc7\x89)", |
|
903 |
"\xc7\x88" => "(\xc7\x88|\xc7\x89)", |
|
904 |
"\xc7\x8a" => "(\xc7\x8a|\xc7\x8c)", |
|
905 |
"\xc7\x8b" => "(\xc7\x8b|\xc7\x8c)", |
|
898 |
"\xc7\x84" => "(\xc7\x84|\xc7\x86|\xc7\x85)",
|
|
899 |
"\xc7\x85" => "(\xc7\x85|\xc7\x84|\xc7\x86)",
|
|
900 |
"\xc7\x87" => "(\xc7\x87|\xc7\x89|\xc7\x88)",
|
|
901 |
"\xc7\x88" => "(\xc7\x88|\xc7\x87|\xc7\x89)",
|
|
902 |
"\xc7\x8a" => "(\xc7\x8a|\xc7\x8c|\xc7\x8b)",
|
|
903 |
"\xc7\x8b" => "(\xc7\x8b|\xc7\x8a|\xc7\x8c)",
|
|
906 | 904 |
"\xc7\x8d" => "(\xc7\x8d|\xc7\x8e)", |
907 | 905 |
"\xc7\x8f" => "(\xc7\x8f|\xc7\x90)", |
908 | 906 |
"\xc7\x91" => "(\xc7\x91|\xc7\x92)", |
... | ... | |
920 | 918 |
"\xc7\xaa" => "(\xc7\xaa|\xc7\xab)", |
921 | 919 |
"\xc7\xac" => "(\xc7\xac|\xc7\xad)", |
922 | 920 |
"\xc7\xae" => "(\xc7\xae|\xc7\xaf)", |
923 |
"\xc7\xb1" => "(\xc7\xb1|\xc7\xb3)", |
|
924 |
"\xc7\xb2" => "(\xc7\xb2|\xc7\xb3)", |
|
921 |
"\xc7\xb1" => "(\xc7\xb1|\xc7\xb3|\xc7\xb2)", |
|
925 | 922 |
"\xc7\xb4" => "(\xc7\xb4|\xc7\xb5)", |
926 | 923 |
"\xc7\xb6" => "(\xc7\xb6|\xc6\x95)", |
927 | 924 |
"\xc7\xb7" => "(\xc7\xb7|\xc6\xbf)", |
... | ... | |
962 | 959 |
"\xce\x8e" => "(\xce\x8e|\xcf\x8d)", |
963 | 960 |
"\xce\x8f" => "(\xce\x8f|\xcf\x8e)", |
964 | 961 |
"\xce\x91" => "(\xce\x91|\xce\xb1)", |
965 |
"\xce\x92" => "(\xce\x92|\xce\xb2)", |
|
962 |
"\xce\x92" => "(\xce\x92|\xce\xb2|\xcf\x90)",
|
|
966 | 963 |
"\xce\x93" => "(\xce\x93|\xce\xb3)", |
967 | 964 |
"\xce\x94" => "(\xce\x94|\xce\xb4)", |
968 |
"\xce\x95" => "(\xce\x95|\xce\xb5)", |
|
965 |
"\xce\x95" => "(\xce\x95|\xce\xb5|\xcf\xb5)",
|
|
969 | 966 |
"\xce\x96" => "(\xce\x96|\xce\xb6)", |
970 | 967 |
"\xce\x97" => "(\xce\x97|\xce\xb7)", |
971 |
"\xce\x98" => "(\xce\x98|\xce\xb8)", |
|
972 |
"\xce\x99" => "(\xce\x99|\xce\xb9)", |
|
973 |
"\xce\x9a" => "(\xce\x9a|\xce\xba)", |
|
968 |
"\xce\x98" => "(\xce\x98|\xce\xb8|\xcf\x91)",
|
|
969 |
"\xce\x99" => "(\xce\x99|\xce\xb9|\xcd\x85|\xe1\xbe\xbe)",
|
|
970 |
"\xce\x9a" => "(\xce\x9a|\xce\xba|\xcf\xb0)",
|
|
974 | 971 |
"\xce\x9b" => "(\xce\x9b|\xce\xbb)", |
975 |
"\xce\x9c" => "(\xce\x9c|\xce\xbc)", |
|
972 |
"\xce\x9c" => "(\xce\x9c|\xce\xbc|\xc2\xb5)",
|
|
976 | 973 |
"\xce\x9d" => "(\xce\x9d|\xce\xbd)", |
977 | 974 |
"\xce\x9e" => "(\xce\x9e|\xce\xbe)", |
978 | 975 |
"\xce\x9f" => "(\xce\x9f|\xce\xbf)", |
979 |
"\xce\xa0" => "(\xce\xa0|\xcf\x80)", |
|
980 |
"\xce\xa1" => "(\xce\xa1|\xcf\x81)", |
|
981 |
"\xce\xa3" => "(\xce\xa3|\xcf\x83)", |
|
976 |
"\xce\xa0" => "(\xce\xa0|\xcf\x80|\xcf\x96)",
|
|
977 |
"\xce\xa1" => "(\xce\xa1|\xcf\x81|\xcf\xb1)",
|
|
978 |
"\xce\xa3" => "(\xce\xa3|\xcf\x83|\xcf\x82|\xcf\xb2)",
|
|
982 | 979 |
"\xce\xa4" => "(\xce\xa4|\xcf\x84)", |
983 | 980 |
"\xce\xa5" => "(\xce\xa5|\xcf\x85)", |
984 |
"\xce\xa6" => "(\xce\xa6|\xcf\x86)", |
|
981 |
"\xce\xa6" => "(\xce\xa6|\xcf\x86|\xcf\x95)",
|
|
985 | 982 |
"\xce\xa7" => "(\xce\xa7|\xcf\x87)", |
986 | 983 |
"\xce\xa8" => "(\xce\xa8|\xcf\x88)", |
987 | 984 |
"\xce\xa9" => "(\xce\xa9|\xcf\x89)", |
... | ... | |
1200 | 1197 |
"\xe1\xb9\x9a" => "(\xe1\xb9\x9a|\xe1\xb9\x9b)", |
1201 | 1198 |
"\xe1\xb9\x9c" => "(\xe1\xb9\x9c|\xe1\xb9\x9d)", |
1202 | 1199 |
"\xe1\xb9\x9e" => "(\xe1\xb9\x9e|\xe1\xb9\x9f)", |
1203 |
"\xe1\xb9\xa0" => "(\xe1\xb9\xa0|\xe1\xb9\xa1)", |
|
1200 |
"\xe1\xb9\xa0" => "(\xe1\xb9\xa0|\xe1\xb9\xa1|\xe1\xba\x9b)",
|
|
1204 | 1201 |
"\xe1\xb9\xa2" => "(\xe1\xb9\xa2|\xe1\xb9\xa3)", |
1205 | 1202 |
"\xe1\xb9\xa4" => "(\xe1\xb9\xa4|\xe1\xb9\xa5)", |
1206 | 1203 |
"\xe1\xb9\xa6" => "(\xe1\xb9\xa6|\xe1\xb9\xa7)", |
... | ... | |
1476 | 1473 |
"\xf0\x90\x90\xa2" => "(\xf0\x90\x90\xa2|\xf0\x90\x91\x8a)", |
1477 | 1474 |
"\xf0\x90\x90\xa3" => "(\xf0\x90\x90\xa3|\xf0\x90\x91\x8b)", |
1478 | 1475 |
"\xf0\x90\x90\xa4" => "(\xf0\x90\x90\xa4|\xf0\x90\x91\x8c)", |
1479 |
"\xf0\x90\x90\xa5" => "(\xf0\x90\x90\xa5|\xf0\x90\x91\x8d)" |
|
1476 |
"\xf0\x90\x90\xa5" => "(\xf0\x90\x90\xa5|\xf0\x90\x91\x8d)", |
|
1477 |
"i" => "(i|\xc4\xb0|I)", |
|
1478 |
"I" => "(I|\xc4\xb1|i)", |
|
1479 |
"k" => "(k|\xe2\x84\xaa|K)", |
|
1480 |
"S" => "(S|\xc5\xbf|s)" |
|
1480 | 1481 |
); |
1481 | 1482 |
|
1482 | 1483 |
?> |
Also available in: Unified diff
Added changeset [476] also to branches