Home
last modified time | relevance | path

Searched refs:map (Results 51 – 75 of 121) sorted by relevance

12345

/php-src/ext/mbstring/libmbfl/filters/
H A Dmbfilter_utf8.c77 static bool mbfilter_conv_map_tbl(int c, int *w, unsigned int n, const unsigned short map[/* n */][… in mbfilter_conv_map_tbl()
80 if (map[i][0] <= c && c <= map[i][1]) { in mbfilter_conv_map_tbl()
81 *w = c - map[i][0] + map[i][2]; in mbfilter_conv_map_tbl()
88 static bool mbfilter_conv_r_map_tbl(int c, int *w, unsigned int n, const unsigned short map[/* n */… in mbfilter_conv_r_map_tbl()
92 if (map[i][2] <= c && c <= map[i][2] - map[i][0] + map[i][1]) { in mbfilter_conv_r_map_tbl()
93 *w = c + map[i][0] - map[i][2]; in mbfilter_conv_r_map_tbl()
/php-src/Zend/
H A Dzend_alloc.c1162 chunk->map[page_num] = 0;
1362 info = chunk->map[page_num];
1462 info = chunk->map[page_num];
1983 info = chunk->map[page_num];
1987 info = chunk->map[page_num];
2012 info = chunk->map[page_num];
2016 info = chunk->map[page_num];
2037 info = chunk->map[i];
2048 chunk->map[i] = ZEND_MM_SRUN(bin_num);
2110 if (p->map[i] & ZEND_MM_IS_SRUN) {
[all …]
/php-src/Zend/Optimizer/
H A Dzend_cfg.h89 uint32_t *map; member
H A Dblock_pass.c131 return cfg->map[ZEND_OFFSET_TO_OPLINE_NUM(op_array, opline, Z_LVAL_P(zv))]; in get_const_switch_target()
1053 uint32_t *map; in assemble_code_blocks() local
1056 map = (uint32_t *)do_alloca(sizeof(uint32_t) * op_array->last_try_catch, use_heap); in assemble_code_blocks()
1058 if (blocks[cfg->map[op_array->try_catch_array[i].try_op]].flags & ZEND_BB_REACHABLE) { in assemble_code_blocks()
1059 map[i] = j; in assemble_code_blocks()
1060 … op_array->try_catch_array[j].try_op = blocks[cfg->map[op_array->try_catch_array[i].try_op]].start; in assemble_code_blocks()
1062 …op_array->try_catch_array[j].catch_op = blocks[cfg->map[op_array->try_catch_array[i].catch_op]].st… in assemble_code_blocks()
1093 opline->op2.num = map[opline->op2.num]; in assemble_code_blocks()
1099 free_alloca(map, use_heap); in assemble_code_blocks()
1103 memset(cfg->map, -1, sizeof(int) * op_array->last); in assemble_code_blocks()
[all …]
H A Dscdf.c120 int block_num = ssa->cfg.map[i]; in scdf_solve()
201 def_block = scdf->ssa->cfg.map[ssa_var->definition]; in is_live_loop_var_free()
H A Dzend_cfg.c118 uint32_t *block_map = cfg->map; in zend_mark_reachable_blocks()
203 uint32_t *block_map = cfg->map; in zend_mark_reachable_blocks()
284 cfg->map = block_map = zend_arena_calloc(arena, op_array->last, sizeof(uint32_t)); in zend_build_cfg()
H A Dzend_dump.c1075 cfg->map[op_array->try_catch_array[i].try_op]); in zend_dump_op_array()
1078 cfg->map[op_array->try_catch_array[i].catch_op]); in zend_dump_op_array()
1084 cfg->map[op_array->try_catch_array[i].finally_op]); in zend_dump_op_array()
1090 cfg->map[op_array->try_catch_array[i].finally_end]); in zend_dump_op_array()
/php-src/ext/pcre/pcre2lib/
H A Dpcre2_printint.c718 uint8_t *map = (uint8_t *)ccode; in pcre2_printint() local
723 for (i = 0; i < 32; i++) inverted_map[i] = 255 ^ map[i]; in pcre2_printint()
724 map = inverted_map; in pcre2_printint()
729 if ((map[i/8] & (1u << (i&7))) != 0) in pcre2_printint()
733 if ((map[j/8] & (1u << (j&7))) == 0) break; in pcre2_printint()
H A Dpcre2_internal.h1898 #define MAPBIT(map,n) ((map)[(n)/32]&(1u<<((n)%32))) argument
1899 #define MAPSET(map,n) ((map)[(n)/32]|=(1u<<((n)%32))) argument
/php-src/ext/mbstring/tests/
H A Dbig5_encoding.phpt16 // Non-reversible mappings (two different BIG5 codepoints map to same Unicode codepoint)
H A Dmb_substr.phpt67 echo "-- Testing MacJapanese characters which map to 3-5 codepoints each --\n";
69 /* There are many characters in MacJapanese which map to sequences of several codepoints */
172 -- Testing MacJapanese characters which map to 3-5 codepoints each --
H A Dcp950_encoding.phpt16 // Non-reversible mappings (two different CP950 codepoints map to same Unicode codepoint)
H A Dmb_decode_numericentity_large_ints.phpt2 mb_decode_numericentity() with 0xFFFFFFFF in conversion map
H A Dsjis_mobile_encodings.phpt39 * from 0xF040-0xF9FC, which map to Unicode 'private' codepoints 0xE000-E757 */
60 /* Windows-932 has many cases where two different kuten codes map to the same
64 * (Other sequences in 0xFA00-0xFC4B map to the same codepoints.)
/php-src/ext/standard/tests/strings/
H A Dhtml_entity_decode_html4.phpt5 $map = array(
260 foreach ($map as $str) {
/php-src/ext/mbstring/
H A Dmbstring.stub.php175 function mb_encode_numericentity(string $string, array $map, ?string $encoding = null, bool $hex = … argument
178 function mb_decode_numericentity(string $string, array $map, ?string $encoding = null): string {} argument
H A Dmbstring_arginfo.h175 ZEND_ARG_TYPE_INFO(0, map, IS_ARRAY, 0)
182 ZEND_ARG_TYPE_INFO(0, map, IS_ARRAY, 0)
/php-src/ext/mysqli/tests/
H A Dmysqli_stmt_bind_result_zerofill.phpt73 We map those to PHP numeric types -
/php-src/ext/soap/
H A Dphp_encoding.h186 soapMappingPtr map; member
H A Dphp_encoding.c606 if (type && type->map && Z_TYPE(type->map->to_xml) != IS_UNDEF) { in to_xml_user()
609 if (call_user_function(NULL, NULL, &type->map->to_xml, &return_value, 1, data) == FAILURE) { in to_xml_user()
634 if (type && type->map && Z_TYPE(type->map->to_zval) != IS_UNDEF) { in to_zval_user()
646 if (call_user_function(NULL, NULL, &type->map->to_zval, ret, 1, &data) == FAILURE) { in to_zval_user()
3630 soapMappingPtr map = (soapMappingPtr)data; in delete_mapping() local
3632 zval_ptr_dtor(&map->to_xml); in delete_mapping()
3633 zval_ptr_dtor(&map->to_zval); in delete_mapping()
3634 efree(map); in delete_mapping()
3646 if (t->details.map) { in delete_encoder()
3647 delete_mapping(t->details.map); in delete_encoder()
[all …]
H A Dsoap.c831 new_enc->details.map = emalloc(sizeof(soapMapping)); in soap_create_typemap()
832 memset(new_enc->details.map, 0, sizeof(soapMapping)); in soap_create_typemap()
834 ZVAL_COPY(&new_enc->details.map->to_xml, to_xml); in soap_create_typemap()
836 } else if (enc->details.map && Z_TYPE(enc->details.map->to_xml) != IS_UNDEF) { in soap_create_typemap()
837 ZVAL_COPY(&new_enc->details.map->to_xml, &enc->details.map->to_xml); in soap_create_typemap()
840 ZVAL_COPY(&new_enc->details.map->to_zval, to_zval); in soap_create_typemap()
842 } else if (enc->details.map && Z_TYPE(enc->details.map->to_zval) != IS_UNDEF) { in soap_create_typemap()
843 ZVAL_COPY(&new_enc->details.map->to_zval, &enc->details.map->to_zval); in soap_create_typemap()
/php-src/ext/sockets/
H A Dsockets.c2585 HANDLE map; local
2610map = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, sizeof(WSAPROTOCOL_INFO), Z…
2611 if (NULL != map) {
2612 LPVOID view = MapViewOfFile(map, FILE_MAP_WRITE, 0, 0, 0);
2616 zend_hash_add_ptr(&(SOCKETS_G(wsa_info)), seg_name, map);
2640 HANDLE map; local
2646 map = OpenFileMapping(FILE_MAP_READ, FALSE, id);
2647 if (map) {
2648 LPVOID view = MapViewOfFile(map, FILE_MAP_READ, 0, 0, 0);
2657 CloseHandle(map);
/php-src/ext/ldap/
H A Dldap.c3762 static zend_string* php_ldap_do_escape(const bool *map, const char *value, size_t valuelen, zend_lo… in php_ldap_do_escape() argument
3770 len += (map[(unsigned char) value[i]]) ? 3 : 1; in php_ldap_do_escape()
3785 if (map[v] || ((flags & PHP_LDAP_ESCAPE_DN) && ((i == 0) || (i + 1 == valuelen)) && (v == ' '))) { in php_ldap_do_escape()
3799 static void php_ldap_escape_map_set_chars(bool *map, const char *chars, const size_t charslen, char… in php_ldap_escape_map_set_chars() argument
3803 map[(unsigned char) chars[i++]] = escape; in php_ldap_escape_map_set_chars()
3813 bool map[256] = {0}, havecharlist = 0; in PHP_FUNCTION() local
3825 php_ldap_escape_map_set_chars(map, "\\*()\0", sizeof("\\*()\0") - 1, 1); in PHP_FUNCTION()
3830 php_ldap_escape_map_set_chars(map, "\\,=+<>;\"#\r", sizeof("\\,=+<>;\"#\r") - 1, 1); in PHP_FUNCTION()
3835 map[i] = 1; in PHP_FUNCTION()
3840 php_ldap_escape_map_set_chars(map, ignores, ignoreslen, 0); in PHP_FUNCTION()
[all …]
/php-src/ext/pdo/tests/
H A Dpdo_018.phpt145 // map whitespace (from early TDS versions) to empty string so the test doesn't diff
152 // map NULL to empty string so the test doesn't diff
/php-src/ext/dom/
H A Dphp_dom.c2318 dom_nnodemap_object *map = php_dom_obj_from_obj(object)->ptr; in dom_modern_nodemap_read_dimension() local
2324 php_dom_named_node_map_get_item_into_zval(map, (zend_long) lval, rv); in dom_modern_nodemap_read_dimension()
2326 php_dom_named_node_map_get_named_item_into_zval(map, Z_STR_P(offset), rv); in dom_modern_nodemap_read_dimension()
2329 php_dom_named_node_map_get_item_into_zval(map, Z_LVAL_P(offset), rv); in dom_modern_nodemap_read_dimension()
2331 php_dom_named_node_map_get_item_into_zval(map, zend_dval_to_lval_safe(Z_DVAL_P(offset)), rv); in dom_modern_nodemap_read_dimension()
2346 dom_nnodemap_object *map = obj->ptr; in dom_modern_nodemap_has_dimension() local
2354 return php_dom_named_node_map_get_named_item(map, Z_STR_P(member), false) != NULL; in dom_modern_nodemap_has_dimension()

Completed in 148 milliseconds

12345