Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 61) sorted by relevance

123

/PHP-5.5/ext/mbstring/libmbfl/tests/conv_encoding.tests/
H A Dgen_exp.c21 map->n = 0; in mappings_init()
22 map->nalloc = 0; in mappings_init()
23 map->entries = 0; in mappings_init()
28 if (map->entries) in mappings_destroy()
34 if (map->n >= map->nalloc) { in mappings_grow()
48 map->nalloc = n; in mappings_grow()
68 size_t n = map->n - i, a = sizeof(*map->entries) * n; in mappings_add()
71 memmove(&map->entries[i + 1], &map->entries[i], a); in mappings_add()
73 ++map->n; in mappings_add()
89 memmove(&map->entries[i + 2], &map->entries[i + 1], a); in mappings_add()
[all …]
/PHP-5.5/ext/mbstring/tests/
H A Dbug40685.phpt7 $map = array(0, 0x10FFFF, 0, 0xFFFFFF);
8 var_dump(mb_decode_numericentity('&', $map, 'UTF-8'));
9 var_dump(mb_decode_numericentity('&&&', $map, 'UTF-8'));
10 var_dump(mb_decode_numericentity('&#', $map, 'UTF-8'));
11 var_dump(mb_decode_numericentity('&#x', $map, 'UTF-8'));
12 var_dump(mb_decode_numericentity('&#61', $map, 'UTF-8'));
13 var_dump(mb_decode_numericentity('&#x3d', $map, 'UTF-8'));
14 var_dump(mb_decode_numericentity('=', $map, 'UTF-8'));
15 var_dump(mb_decode_numericentity('=', $map, 'UTF-8'));
H A Dbug30549.phpt11 function test($enc, $map) {
14 foreach($map as $fromc => $toc) {
/PHP-5.5/ext/filter/
H A Dsanitizing_filters.c165 if ((*map)[str[i]]) { in filter_map_apply()
308 filter_map map; in php_filter_email() local
310 filter_map_init(&map); in php_filter_email()
312 filter_map_apply(value, &map); in php_filter_email()
322 filter_map map; in php_filter_url() local
324 filter_map_init(&map); in php_filter_url()
326 filter_map_apply(value, &map); in php_filter_url()
335 filter_map map; in php_filter_number_int() local
337 filter_map_init(&map); in php_filter_number_int()
348 filter_map map; in php_filter_number_float() local
[all …]
/PHP-5.5/ext/gd/
H A Dgdcache.c156 cacheTest( void *map, void *key ) in cacheTest() argument
158 return (((key_value_t *)map)->key == *(int *)key); in cacheTest()
164 key_value_t *map; in cacheFetch() local
166 map = (key_value_t *)malloc(sizeof(key_value_t)); in cacheFetch()
167 if (map == NULL) { in cacheFetch()
170 map->key = *(int *)key; in cacheFetch()
171 map->value = 3; in cacheFetch()
174 return (void *)map; in cacheFetch()
178 cacheRelease( void *map) in cacheRelease() argument
180 free( (char *)map ); in cacheRelease()
/PHP-5.5/ext/gd/libgd/
H A Dgdcache.c159 cacheTest (void *map, void *key) in cacheTest() argument
161 return (((key_value_t *) map)->key == *(int *) key); in cacheTest()
167 key_value_t *map; in cacheFetch() local
169 map = (key_value_t *) gdMalloc (sizeof (key_value_t)); in cacheFetch()
170 map->key = *(int *) key; in cacheFetch()
171 map->value = 3; in cacheFetch()
174 return (void *) map; in cacheFetch()
178 cacheRelease (void *map) in cacheRelease() argument
180 gdFree ((char *) map); in cacheRelease()
/PHP-5.5/ext/standard/
H A Dpack.c96 *output++ = v[map[i]]; in php_pack()
401 map = big_endian_short_map; in PHP_FUNCTION()
403 map = little_endian_short_map; in PHP_FUNCTION()
425 int *map = machine_endian_long_map; in PHP_FUNCTION() local
428 map = big_endian_long_map; in PHP_FUNCTION()
430 map = little_endian_long_map; in PHP_FUNCTION()
508 cresult[map[i]] = *data++; in php_unpack()
812 map = big_endian_short_map; in PHP_FUNCTION()
814 map = little_endian_short_map; in PHP_FUNCTION()
848 map = big_endian_long_map; in PHP_FUNCTION()
[all …]
/PHP-5.5/ext/fileinfo/libmagic/
H A Dapprentice.c371 ml->map = idx == 0 ? map : NULL; in add_mlist()
507 efree(map); in apprentice_unmap()
531 if (ml->map) in mlist_free()
1237 &map->magic[j], &map->nmagic[j]) == -1) { in apprentice_load()
1252 efree(map); in apprentice_load()
1255 return map; in apprentice_load()
2649 if ((map->p = CAST(void *, emalloc(map->len))) == NULL) { in apprentice_map()
2702 map->magic[0] = CAST(struct magic *, map->p) + 1; in apprentice_map()
2710 map->magic[i + 1] = map->magic[i] + map->nmagic[i]; in apprentice_map()
2721 byteswap(map->magic[i], map->nmagic[i]); in apprentice_map()
[all …]
/PHP-5.5/ext/soap/tests/
H A Dbug48557.phpt11 function test($map) {
12 var_dump($map, $map[1], $map[2]);die;
/PHP-5.5/ext/mbstring/libmbfl/filters/
H A Dmbfilter_sjis_mobile.h67 int mbfilter_conv_map_tbl(int c, int *w, const unsigned short map[][3], int n);
68 int mbfilter_conv_r_map_tbl(int c, int *w, const unsigned short map[][3], int n);
H A Dmbfilter_sjis_mobile.c248 mbfilter_conv_map_tbl(int c, int *w, const unsigned short map[][3], int n) in mbfilter_conv_map_tbl()
253 if (map[i][0] <= c && c <= map[i][1]) { in mbfilter_conv_map_tbl()
254 *w = c - map[i][0] + map[i][2]; in mbfilter_conv_map_tbl()
263 mbfilter_conv_r_map_tbl(int c, int *w, const unsigned short map[][3], int n) in mbfilter_conv_r_map_tbl()
268 if (map[i][2] <= c && c <= map[i][2] - map[i][0] + map[i][1]) { in mbfilter_conv_r_map_tbl()
269 *w = c + map[i][0] - map[i][2]; in mbfilter_conv_r_map_tbl()
/PHP-5.5/ext/standard/html_tables/
H A Dhtml_table_gen.php187 $map = array(); variable
191 $map[] = array($matches[1], $matches[2]);
195 foreach ($map as $v) { $mappy[hexdec($v[0])] = hexdec($v[1]); }
330 $map = array(); variable
334 $map[] = array($matches[1], $matches[2], rtrim($matches[3]));
338 foreach ($map as $v) {
/PHP-5.5/ext/mbstring/oniguruma/
H A Dregenc.c447 const OnigPairCaseFoldCodes map[], in onigenc_apply_all_case_fold_with_map() argument
458 code = map[i].to; in onigenc_apply_all_case_fold_with_map()
459 r = (*f)(map[i].from, &code, 1, arg); in onigenc_apply_all_case_fold_with_map()
462 code = map[i].from; in onigenc_apply_all_case_fold_with_map()
463 r = (*f)(map[i].to, &code, 1, arg); in onigenc_apply_all_case_fold_with_map()
475 const OnigPairCaseFoldCodes map[], in onigenc_get_case_fold_codes_by_str_with_map() argument
536 if (*p == map[i].from) { in onigenc_get_case_fold_codes_by_str_with_map()
539 items[0].code[0] = map[i].to; in onigenc_get_case_fold_codes_by_str_with_map()
542 else if (*p == map[i].to) { in onigenc_get_case_fold_codes_by_str_with_map()
545 items[0].code[0] = map[i].from; in onigenc_get_case_fold_codes_by_str_with_map()
H A Dregcomp.c1898 GroupNumRemap* map; in disable_noname_group_capture() local
1903 map[i].new_val = 0; in disable_noname_group_capture()
4352 if (map->map[c] == 0) { in add_char_opt_map_info()
4353 map->map[c] = 1; in add_char_opt_map_info()
4428 if (add->map[i]) in alt_merge_opt_map_info()
4429 to->map[i] = 1; in alt_merge_opt_map_info()
4431 if (to->map[i]) in alt_merge_opt_map_info()
4518 select_opt_map_info(&to->map, &add->map); in concat_left_node_opt_info()
4530 alt_merge_opt_map_info(env->enc, &to->map, &add->map); in alt_merge_node_opt_info()
4717 copy_opt_map_info(&opt->map, &nopt.map); in optimize_node_left()
[all …]
H A Dregenc.h117 …apply_all_case_fold_with_map P_((int map_size, const OnigPairCaseFoldCodes map[], int ess_tsett_fl…
118 …e_fold_codes_by_str_with_map P_((int map_size, const OnigPairCaseFoldCodes map[], int ess_tsett_fl…
/PHP-5.5/ext/fileinfo/
H A Dlibmagic.patch108 ml->map = idx == 0 ? map : NULL;
190 - if (map->len)
191 - (void)munmap(map->p, map->len);
195 - free(map);
208 + efree(map);
477 - free(map);
481 return map;
641 - if (read(fd, map->p, map->len) != (ssize_t)map->len) {
697 map->magic[0] = CAST(struct magic *, map->p) + 1;
700 map->magic[i + 1] = map->magic[i] + map->nmagic[i];
[all …]
/PHP-5.5/Zend/
H A Dzend_stream.c81 if (stream->mmap.map) { in zend_stream_unmap()
82 munmap(stream->mmap.map, stream->mmap.len + ZEND_MMAP_AHEAD); in zend_stream_unmap()
90 stream->mmap.map = 0; in zend_stream_unmap()
241 file_handle->handle.stream.mmap.map = *buf;
254 file_handle->handle.stream.mmap.map = 0;
271 file_handle->handle.stream.mmap.map = 0;
H A Dzend_stream.h47 void *map; member
/PHP-5.5/ext/standard/tests/array/
H A Darray_map_001.phpt21 Warning: array_map(): An error occurred while invoking the map callback in %s on line %d
H A Dbug35821.phpt26 Warning: array_map(): An error occurred while invoking the map callback in %s on line %d
/PHP-5.5/sapi/aolserver/
H A DREADME47 The 'map' command will cause AOLserver to pass all requests to *.php to
50 ns_param map *.php
/PHP-5.5/ext/pcre/pcrelib/
H A Dpcre_study.c1341 pcre_uint8 *map; in set_start_bits() local
1343 map = NULL; in set_start_bits()
1347 map = (pcre_uint8 *)(tcode + 1 + LINK_SIZE + 1); in set_start_bits()
1354 map = (pcre_uint8 *)tcode; in set_start_bits()
1365 if (map != NULL) in set_start_bits()
1371 for (c = 0; c < 16; c++) start_bits[c] |= map[c]; in set_start_bits()
1374 if ((map[c/8] && (1 << (c&7))) != 0) in set_start_bits()
1386 for (c = 0; c < 32; c++) start_bits[c] |= map[c]; in set_start_bits()
/PHP-5.5/ext/ldap/
H A Dldap.mak33 MAP_FILE = $(FINAL_DIR)\$(MODULE_NAME).map
168 -@del "$(FINAL_DIR)\$(MODULE_NAME).map"
/PHP-5.5/ext/standard/tests/strings/
H A Dhtml_entity_decode_html4.phpt5 $map = array(
260 foreach ($map as $str) {
/PHP-5.5/ext/xml/
H A Dxml.mak33 MAP_FILE = $(FINAL_DIR)\$(MODULE_NAME).map
167 -@del "$(FINAL_DIR)\$(MODULE_NAME).map"

Completed in 113 milliseconds

123