Home
last modified time | relevance | path

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

123

/PHP-5.4/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.4/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.4/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.4/ext/gd/
H A Dgdcache.c151 cacheTest( void *map, void *key ) in cacheTest() argument
153 return (((key_value_t *)map)->key == *(int *)key); in cacheTest()
159 key_value_t *map; in cacheFetch() local
161 map = (key_value_t *)malloc(sizeof(key_value_t)); in cacheFetch()
162 if (map == NULL) { in cacheFetch()
165 map->key = *(int *)key; in cacheFetch()
166 map->value = 3; in cacheFetch()
169 return (void *)map; in cacheFetch()
173 cacheRelease( void *map) in cacheRelease() argument
175 free( (char *)map ); in cacheRelease()
/PHP-5.4/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.4/ext/standard/
H A Dpack.c96 *output++ = v[map[i]]; in php_pack()
390 map = big_endian_short_map; in PHP_FUNCTION()
392 map = little_endian_short_map; in PHP_FUNCTION()
414 int *map = machine_endian_long_map; in PHP_FUNCTION() local
417 map = big_endian_long_map; in PHP_FUNCTION()
419 map = little_endian_long_map; in PHP_FUNCTION()
497 cresult[map[i]] = *data++; in php_unpack()
756 map = big_endian_short_map; in PHP_FUNCTION()
758 map = little_endian_short_map; in PHP_FUNCTION()
792 map = big_endian_long_map; in PHP_FUNCTION()
[all …]
/PHP-5.4/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()
2606 efree(map); in apprentice_map()
2703 map->magic[0] = CAST(struct magic *, map->p) + 1; in apprentice_map()
2711 map->magic[i + 1] = map->magic[i] + map->nmagic[i]; in apprentice_map()
2722 byteswap(map->magic[i], map->nmagic[i]); in apprentice_map()
[all …]
/PHP-5.4/ext/soap/tests/
H A Dbug48557.phpt11 function test($map) {
12 var_dump($map, $map[1], $map[2]);die;
/PHP-5.4/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.4/ext/standard/html_tables/
H A Dhtml_table_gen.php184 $map = array(); variable
188 $map[] = array($matches[1], $matches[2]);
192 foreach ($map as $v) { $mappy[hexdec($v[0])] = hexdec($v[1]); }
327 $map = array(); variable
331 $map[] = array($matches[1], $matches[2], rtrim($matches[3]));
335 foreach ($map as $v) {
/PHP-5.4/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.4/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.4/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.4/ext/mbstring/oniguruma/
H A Dregcomp.c1876 GroupNumRemap* map; in disable_noname_group_capture() local
1881 map[i].new_val = 0; in disable_noname_group_capture()
4141 if (map->map[c] == 0) { in add_char_opt_map_info()
4142 map->map[c] = 1; in add_char_opt_map_info()
4223 if (add->map[i]) in alt_merge_opt_map_info()
4224 to->map[i] = 1; in alt_merge_opt_map_info()
4226 if (to->map[i]) in alt_merge_opt_map_info()
4313 select_opt_map_info(&to->map, &add->map); in concat_left_node_opt_info()
4325 alt_merge_opt_map_info(env->enc, &to->map, &add->map); in alt_merge_node_opt_info()
4510 copy_opt_map_info(&opt->map, &nopt.map); in optimize_node_left()
[all …]
/PHP-5.4/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.4/ext/pcre/pcrelib/
H A Dpcre_study.c1335 pcre_uint8 *map; in set_start_bits() local
1337 map = NULL; in set_start_bits()
1341 map = (pcre_uint8 *)(tcode + 1 + LINK_SIZE + 1); in set_start_bits()
1348 map = (pcre_uint8 *)tcode; in set_start_bits()
1359 if (map != NULL) in set_start_bits()
1365 for (c = 0; c < 16; c++) start_bits[c] |= map[c]; in set_start_bits()
1368 if ((map[c/8] && (1 << (c&7))) != 0) in set_start_bits()
1380 for (c = 0; c < 32; c++) start_bits[c] |= map[c]; in set_start_bits()
/PHP-5.4/ext/xml/
H A Dxml.mak33 MAP_FILE = $(FINAL_DIR)\$(MODULE_NAME).map
167 -@del "$(FINAL_DIR)\$(MODULE_NAME).map"
/PHP-5.4/ext/standard/tests/strings/
H A Dhtml_entity_decode_html4.phpt5 $map = array(
260 foreach ($map as $str) {
/PHP-5.4/ext/ldap/
H A Dldap.mak33 MAP_FILE = $(FINAL_DIR)\$(MODULE_NAME).map
168 -@del "$(FINAL_DIR)\$(MODULE_NAME).map"
/PHP-5.4/ext/openssl/
H A Dopenssl.mak44 MAP_FILE = $(FINAL_DIR)\$(MODULE_NAME).map
180 -@del "$(FINAL_DIR)\$(MODULE_NAME).map"
/PHP-5.4/ext/soap/
H A Dphp_encoding.h181 soapMappingPtr map; member

Completed in 82 milliseconds

123