Home
last modified time | relevance | path

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

123

/PHP-7.3/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-7.3/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-7.3/ext/filter/
H A Dsanitizing_filters.c167 if ((*map)[str[i]]) { in filter_map_apply()
310 filter_map map; in php_filter_email() local
312 filter_map_init(&map); in php_filter_email()
314 filter_map_apply(value, &map); in php_filter_email()
324 filter_map map; in php_filter_url() local
326 filter_map_init(&map); in php_filter_url()
328 filter_map_apply(value, &map); in php_filter_url()
337 filter_map map; in php_filter_number_int() local
339 filter_map_init(&map); in php_filter_number_int()
350 filter_map map; in php_filter_number_float() local
[all …]
/PHP-7.3/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-7.3/ext/spl/tests/
H A Dobserver_010.phpt9 $map = new SplObjectStorage();
10 $map[$a] = 'foo';
11 var_dump($map[$b] ?? null);
12 var_dump($map[$a] ?? null);
/PHP-7.3/ext/standard/
H A Dpack.c94 *output++ = v[map[i]]; in php_pack()
537 map = big_endian_short_map; in PHP_FUNCTION()
539 map = little_endian_short_map; in PHP_FUNCTION()
564 map = big_endian_long_map; in PHP_FUNCTION()
566 map = little_endian_long_map; in PHP_FUNCTION()
584 map = big_endian_longlong_map; in PHP_FUNCTION()
696 cresult[map[i]] = *data++; in php_unpack()
1034 map = big_endian_short_map; in PHP_FUNCTION()
1036 map = little_endian_short_map; in PHP_FUNCTION()
1070 map = big_endian_long_map; in PHP_FUNCTION()
[all …]
/PHP-7.3/ext/fileinfo/libmagic/
H A Dapprentice.c393 ml->map = idx == 0 ? map : NULL; in add_mlist()
537 efree(map); in apprentice_unmap()
1365 &map->magic[j], &map->nmagic[j]) == -1) { in apprentice_load()
1379 return map; in apprentice_load()
2947 return map; in apprentice_buf()
3062 map->magic[0] = CAST(struct magic *, map->p) + 1; in apprentice_map()
3070 map->magic[i + 1] = map->magic[i] + map->nmagic[i]; in apprentice_map()
3080 byteswap(map->magic[i], map->nmagic[i]); in apprentice_map()
3132 map->magic[0] = CAST(struct magic *, map->p) + 1; in check_buffer()
3140 map->magic[i + 1] = map->magic[i] + map->nmagic[i]; in check_buffer()
[all …]
/PHP-7.3/ext/soap/tests/
H A Dbug48557.phpt11 function test($map) {
12 var_dump($map, $map[1], $map[2]);die;
/PHP-7.3/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.c253 mbfilter_conv_map_tbl(int c, int *w, const unsigned short map[][3], int n) in mbfilter_conv_map_tbl()
258 if (map[i][0] <= c && c <= map[i][1]) { in mbfilter_conv_map_tbl()
259 *w = c - map[i][0] + map[i][2]; in mbfilter_conv_map_tbl()
268 mbfilter_conv_r_map_tbl(int c, int *w, const unsigned short map[][3], int n) in mbfilter_conv_r_map_tbl()
273 if (map[i][2] <= c && c <= map[i][2] - map[i][0] + map[i][1]) { in mbfilter_conv_r_map_tbl()
274 *w = c + map[i][0] - map[i][2]; in mbfilter_conv_r_map_tbl()
/PHP-7.3/ext/opcache/Optimizer/
H A Dzend_call_graph.c277 zend_call_info **map, *call; in zend_build_call_map() local
283 map = zend_arena_calloc(arena, sizeof(zend_call_info *), op_array->last); in zend_build_call_map()
286 map[call->caller_init_opline - op_array->opcodes] = call; in zend_build_call_map()
288 map[call->caller_call_opline - op_array->opcodes] = call; in zend_build_call_map()
292 map[call->arg_info[i].opline - op_array->opcodes] = call; in zend_build_call_map()
296 return map; in zend_build_call_map()
H A Dcompact_literals.c121 int i, j, n, *map, cache_size; in zend_optimizer_compact_literals() local
355 map[i] = l_null; in zend_optimizer_compact_literals()
366 map[i] = l_false; in zend_optimizer_compact_literals()
377 map[i] = l_true; in zend_optimizer_compact_literals()
384 map[i] = j; in zend_optimizer_compact_literals()
403 map[i] = j; in zend_optimizer_compact_literals()
420 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals()
422 map[i] = j; in zend_optimizer_compact_literals()
457 map[i] = j; in zend_optimizer_compact_literals()
487 map[i] = l_empty_arr; in zend_optimizer_compact_literals()
[all …]
H A Dscdf.c121 int block_num = ssa->cfg.map[i]; in scdf_solve()
193 uint32_t start_block = cfg->map[live_range->start]; in kept_alive_by_live_range()
194 uint32_t end_block = cfg->map[live_range->end]; in kept_alive_by_live_range()
H A Dzend_cfg.h92 uint32_t *map; member
/PHP-7.3/ext/mbstring/ucgendat/
H A Ducgendat.php472 function generateCaseMPH(string $name, array $map) { argument
474 list($gTable, $table) = generateMPH($map, $fast = false);
539 function tryGenerateMPH(array $map, int $gSize) { argument
540 $tableSize = count($map);
545 foreach ($map as $k => $v) {
617 function generateMPH(array $map, bool $fast) { argument
621 $m = (int) (count($map) / $lambda);
622 $tmpMph = tryGenerateMPH($map, $m);
630 $m = (int) (count($map) / 7.0);
632 $tmpMph = tryGenerateMPH($map, $m);
/PHP-7.3/ext/standard/html_tables/
H A Dhtml_table_gen.php185 $map = array(); variable
189 $map[] = array($matches[1], $matches[2]);
193 foreach ($map as $v) { $mappy[hexdec($v[0])] = hexdec($v[1]); }
328 $map = array(); variable
332 $map[] = array($matches[1], $matches[2], rtrim($matches[3]));
336 foreach ($map as $v) {
/PHP-7.3/ext/mbstring/oniguruma/src/
H A Dregenc.c559 const OnigPairCaseFoldCodes map[], in onigenc_apply_all_case_fold_with_map() argument
570 code = map[i].to; in onigenc_apply_all_case_fold_with_map()
571 r = (*f)(map[i].from, &code, 1, arg); in onigenc_apply_all_case_fold_with_map()
574 code = map[i].from; in onigenc_apply_all_case_fold_with_map()
575 r = (*f)(map[i].to, &code, 1, arg); in onigenc_apply_all_case_fold_with_map()
587 const OnigPairCaseFoldCodes map[], in onigenc_get_case_fold_codes_by_str_with_map() argument
648 if (*p == map[i].from) { in onigenc_get_case_fold_codes_by_str_with_map()
651 items[0].code[0] = map[i].to; in onigenc_get_case_fold_codes_by_str_with_map()
654 else if (*p == map[i].to) { in onigenc_get_case_fold_codes_by_str_with_map()
657 items[0].code[0] = map[i].from; in onigenc_get_case_fold_codes_by_str_with_map()
H A Dregcomp.c2406 GroupNumRemap* map; in disable_noname_group_capture() local
2411 map[i].new_val = 0; in disable_noname_group_capture()
5722 if (m->map[c] == 0) { in add_char_opt_map()
5723 m->map[c] = 1; in add_char_opt_map()
5805 if (add->map[i]) in alt_merge_opt_map()
5806 to->map[i] = 1; in alt_merge_opt_map()
5808 if (to->map[i]) in alt_merge_opt_map()
5891 select_opt_map(&to->map, &add->map); in concat_left_node_opt_info()
5902 alt_merge_opt_map(env->enc, &to->map, &add->map); in alt_merge_node_opt_info()
6078 copy_opt_map(&opt->map, &xo.map); in optimize_nodes()
[all …]
/PHP-7.3/ext/fileinfo/
H A Dlibmagic.patch147 ml->map = idx == 0 ? map : NULL;
270 - if (map->p && map->p != MAP_FAILED)
271 - (void)munmap(map->p, map->len);
277 - free(map);
278 + efree(map);
292 if (ml->map)
996 - if (read(fd, map->p, map->len) != (ssize_t)map->len) {
1054 + map->magic[0] = CAST(struct magic *, map->p) + 1;
1062 + map->magic[i + 1] = map->magic[i] + map->nmagic[i];
1073 + byteswap(map->magic[i], map->nmagic[i]);
[all …]
/PHP-7.3/Zend/
H A Dzend_stream.c77 if (stream->mmap.map) { in zend_stream_unmap()
78 munmap(stream->mmap.map, stream->mmap.len + ZEND_MMAP_AHEAD); in zend_stream_unmap()
86 stream->mmap.map = 0; in zend_stream_unmap()
228 file_handle->handle.stream.mmap.map = *buf; in zend_stream_fixup()
241 file_handle->handle.stream.mmap.map = 0; in zend_stream_fixup()
258 file_handle->handle.stream.mmap.map = 0; in zend_stream_fixup()
H A Dzend_alloc.c1131 chunk->map[page_num] = 0;
1331 info = chunk->map[page_num];
1431 info = chunk->map[page_num];
1960 info = chunk->map[page_num];
1964 info = chunk->map[page_num];
1989 info = chunk->map[page_num];
1993 info = chunk->map[page_num];
2014 info = chunk->map[i];
2025 chunk->map[i] = ZEND_MM_SRUN(bin_num);
2087 if (p->map[i] & ZEND_MM_IS_SRUN) {
[all …]
H A Dzend_stream.h48 void *map; member
/PHP-7.3/sapi/phpdbg/
H A Dphpdbg_list.h48 void *map; member
/PHP-7.3/ext/pcre/pcre2lib/
H A Dpcre2_printint.c645 uint8_t *map; in pcre2_printint() local
672 map = (uint8_t *)ccode; in pcre2_printint()
675 for (i = 0; i < 32; i++) inverted_map[i] = ~map[i]; in pcre2_printint()
676 map = inverted_map; in pcre2_printint()
681 if ((map[i/8] & (1 << (i&7))) != 0) in pcre2_printint()
685 if ((map[j/8] & (1 << (j&7))) == 0) break; in pcre2_printint()

Completed in 87 milliseconds

123