Searched defs:map (Results 1 - 20 of 20) sorted by relevance

/PHP_5_6/ext/gd/
H A Dgdcache.c156 cacheTest( void *map, void *key ) argument
158 return (((key_value_t *)map)->key == *(int *)key);
164 key_value_t *map; local
166 map = (key_value_t *)malloc(sizeof(key_value_t));
167 if (map == NULL) {
170 map->key = *(int *)key;
171 map->value = 3;
174 return (void *)map;
178 cacheRelease( void *map) argument
180 free( (char *)map );
[all...]
/PHP_5_6/ext/gd/libgd/
H A Dgdcache.c159 cacheTest (void *map, void *key) argument
161 return (((key_value_t *) map)->key == *(int *) key);
167 key_value_t *map; local
169 map = (key_value_t *) gdMalloc (sizeof (key_value_t));
170 map->key = *(int *) key;
171 map->value = 3;
174 return (void *) map;
178 cacheRelease (void *map) argument
180 gdFree ((char *) map);
/PHP_5_6/ext/opcache/Optimizer/
H A Dcompact_literals.c93 int i, j, n, *pos, *map, cache_slots; local
286 map = (int*)ecalloc(op_array->last_literal, sizeof(int));
303 map[i] = l_null;
315 map[i] = l_true;
325 map[i] = l_false;
330 map[i] = *pos;
332 map[i] = j;
343 map[i] = *pos;
345 map[i] = j;
362 zval *class_name = &op_array->literals[(info[i].u.num < i) ? map[inf
[all...]
/PHP_5_6/ext/mbstring/libmbfl/tests/conv_encoding.tests/
H A Dgen_exp.c19 static void mappings_init(struct mappings *map) argument
21 map->n = 0;
22 map->nalloc = 0;
23 map->entries = 0;
26 static void mappings_destroy(struct mappings *map) argument
28 if (map->entries)
29 free(map->entries);
32 static int mappings_grow(struct mappings *map) argument
34 if (map->n >= map
53 mappings_add(struct mappings *map, int cp_uni, int cp_932) argument
384 struct mappings map; local
[all...]
/PHP_5_6/ext/mbstring/oniguruma/
H A Dregenc.c447 const OnigPairCaseFoldCodes map[],
458 code = map[i].to;
459 r = (*f)(map[i].from, &code, 1, arg);
462 code = map[i].from;
463 r = (*f)(map[i].to, &code, 1, arg);
475 const OnigPairCaseFoldCodes map[],
536 if (*p == map[i].from) {
539 items[0].code[0] = map[i].to;
542 else if (*p == map[i].to) {
545 items[0].code[0] = map[
446 onigenc_apply_all_case_fold_with_map(int map_size, const OnigPairCaseFoldCodes map[], int ess_tsett_flag, OnigCaseFoldType flag, OnigApplyAllCaseFoldFunc f, void* arg) argument
474 onigenc_get_case_fold_codes_by_str_with_map(int map_size, const OnigPairCaseFoldCodes map[], int ess_tsett_flag, OnigCaseFoldType flag ARG_UNUSED, const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) argument
[all...]
H A Dregexec.c2904 skip = reg->map[*se];
2951 s += reg->map[*s];
3020 map_search(OnigEncoding enc, UChar map[], argument
3026 if (map[*s]) return (UChar* )s;
3034 map_search_backward(OnigEncoding enc, UChar map[], argument
3041 if (map[*s]) return (UChar* )s;
3154 p = map_search(reg->enc, reg->map, p, range);
3284 p = map_search_backward(reg->enc, reg->map, range, adjrange, p);
H A Doniguruma.h681 /* optimization info (string search, char-map and anchors) */
687 int sub_anchor; /* start-anchor for exact or map */
690 unsigned char map[ONIG_CHAR_TABLE_SIZE]; /* used as BM skip or char-map */ member in struct:re_pattern_buffer
693 OnigDistance dmin; /* min-distance of exact or map */
694 OnigDistance dmax; /* max-distance of exact or map */
H A Dregcomp.c1751 noname_disable_map(Node** plink, GroupNumRemap* map, int* counter) argument
1760 r = noname_disable_map(&(NCAR(node)), map, counter);
1768 r = noname_disable_map(ptarget, map, counter);
1781 map[en->regnum].new_val = *counter;
1783 r = noname_disable_map(&(en->target), map, counter);
1789 r = noname_disable_map(plink, map, counter);
1793 r = noname_disable_map(&(en->target), map, counter);
1805 renumber_node_backref(Node* node, GroupNumRemap* map) argument
1821 n = map[backs[i]].new_val;
1833 renumber_by_map(Node* node, GroupNumRemap* map) argument
1898 GroupNumRemap* map; local
3962 UChar map[ONIG_CHAR_TABLE_SIZE]; member in struct:__anon11
3973 OptMapInfo map; /* boundary */ member in struct:__anon12
4315 clear_opt_map_info(OptMapInfo* map) argument
4349 add_char_opt_map_info(OptMapInfo* map, UChar c, OnigEncoding enc) argument
4358 add_char_amb_opt_map_info(OptMapInfo* map, UChar* p, UChar* end, OnigEncoding enc, OnigCaseFoldType case_fold_flag) argument
[all...]
H A Dregparse.c541 i_renumber_name(UChar* key ARG_UNUSED, NameEntry* e, GroupNumRemap* map) argument
547 e->back_refs[i] = map[e->back_refs[i]].new_val;
551 e->back_ref1 = map[e->back_ref1].new_val;
558 onig_renumber_name_table(regex_t* reg, GroupNumRemap* map) argument
563 onig_st_foreach(t, i_renumber_name, (HashDataType )map);
/PHP_5_6/ext/mbstring/libmbfl/filters/
H A Dmbfilter_sjis_mobile.c248 mbfilter_conv_map_tbl(int c, int *w, const unsigned short map[][3], int n) argument
253 if (map[i][0] <= c && c <= map[i][1]) {
254 *w = c - map[i][0] + map[i][2];
263 mbfilter_conv_r_map_tbl(int c, int *w, const unsigned short map[][3], int n) argument
268 if (map[i][2] <= c && c <= map[i][2] - map[i][0] + map[
[all...]
/PHP_5_6/Zend/
H A Dzend_stream.h47 void *map; member in struct:_zend_mmap
/PHP_5_6/ext/filter/
H A Dsanitizing_filters.c141 static void filter_map_init(filter_map *map) argument
143 memset(map, 0, sizeof(filter_map));
146 static void filter_map_update(filter_map *map, int flag, const unsigned char *allowed_list) argument
152 (*map)[allowed_list[i]] = flag;
156 static void filter_map_apply(zval *value, filter_map *map) argument
165 if ((*map)[str[i]]) {
308 filter_map map; local
310 filter_map_init(&map);
311 filter_map_update(&map, 1, allowed_list);
312 filter_map_apply(value, &map);
322 filter_map map; local
335 filter_map map; local
348 filter_map map; local
[all...]
/PHP_5_6/ext/soap/
H A Dphp_encoding.h181 soapMappingPtr map; member in struct:_encodeType
H A Dphp_encoding.c623 if (type && type->map && type->map->to_xml) {
626 if (call_user_function(EG(function_table), NULL, type->map->to_xml, return_value, 1, &data TSRMLS_CC) == FAILURE) {
653 if (type && type->map && type->map->to_zval) {
668 if (call_user_function(EG(function_table), NULL, type->map->to_zval, return_value, 1, &data TSRMLS_CC) == FAILURE) {
2842 soap_error0(E_ERROR, "Encoding: Can't decode apache map, missing key");
2847 soap_error0(E_ERROR, "Encoding: Can't decode apache map, missing value");
2858 soap_error0(E_ERROR, "Encoding: Can't decode apache map, only Strings or Longs are allowd as keys");
3741 soapMappingPtr map local
[all...]
/PHP_5_6/ext/standard/
H A Dpack.c87 static void php_pack(zval **val, int size, int *map, char *output) argument
96 *output++ = v[map[i]];
398 int *map = machine_endian_short_map; local
401 map = big_endian_short_map;
403 map = little_endian_short_map;
407 php_pack(argv[currentarg++], 2, map, &output[outputpos]);
425 int *map = machine_endian_long_map; local
428 map = big_endian_long_map;
430 map = little_endian_long_map;
434 php_pack(argv[currentarg++], 4, map,
499 php_unpack(char *data, int size, int issigned, int *map) argument
800 int *map = machine_endian_short_map; local
834 int *map = machine_endian_long_map; local
[all...]
/PHP_5_6/ext/pcre/pcrelib/
H A Dpcre_study.c583 start_bits points to the bit map
1254 /* Character class where all the information is in a bit map: set the
1275 pcre_uint8 *map; local
1277 map = (pcre_uint8 *)tcode;
1279 /* In UTF-8 mode, the bits in a bit map correspond to character
1280 values, not to byte values. However, the bit map we are constructing is
1288 for (c = 0; c < 16; c++) start_bits[c] |= map[c];
1291 if ((map[c/8] && (1 << (c&7))) != 0)
1303 for (c = 0; c < 32; c++) start_bits[c] |= map[c];
1306 /* Advance past the bit map, an
[all...]
/PHP_5_6/ext/fileinfo/libmagic/
H A Dfile.h353 void *map; /* internal resources used by entry */ member in struct:mlist
H A Dapprentice.c370 add_mlist(struct mlist *mlp, struct magic_map *map, size_t idx) argument
377 ml->map = idx == 0 ? map : NULL;
378 ml->magic = map->magic[idx];
379 ml->nmagic = map->nmagic[idx];
395 struct magic_map *map; local
400 (unsigned long)sizeof(*map->magic[0]),
406 map = apprentice_load(ms, fn, action);
407 if (map == NULL)
409 return apprentice_compile(ms, map, f
497 apprentice_unmap(struct magic_map *map) argument
1149 struct magic_map *map; local
2605 struct magic_map *map; local
2753 apprentice_compile(struct magic_set *ms, struct magic_map *map, const char *fn) argument
[all...]
/PHP_5_6/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) {
365 * Some of them map to two unicode code points, not one.
/PHP_5_6/ext/ldap/
H A Dldap.c1740 /* map the modification type */
2533 static void php_ldap_do_escape(const zend_bool *map, const char *value, size_t valuelen, char **result, size_t *resultlen) argument
2540 len += (map[(unsigned char) value[i]]) ? 3 : 1;
2549 if (map[v]) {
2561 static void php_ldap_escape_map_set_chars(zend_bool *map, const char *chars, const int charslen, char escape) argument
2565 map[(unsigned char) chars[i++]] = escape;
2575 zend_bool map[256] = {0}, havecharlist = 0; local
2587 php_ldap_escape_map_set_chars(map, "\\*()\0", sizeof("\\*()\0") - 1, 1);
2592 php_ldap_escape_map_set_chars(map, "\\,=+<>;\"#", sizeof("\\,=+<>;\"#") - 1, 1);
2597 map[
[all...]

Completed in 107 milliseconds