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

/PHP_TRUNK/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_TRUNK/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_TRUNK/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_TRUNK/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_TRUNK/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_TRUNK/ext/pcre/pcrelib/
H A Dpcre_printint.c646 pcre_uint8 *map; local
669 /* Print a bit map */
673 map = (pcre_uint8 *)ccode;
676 for (i = 0; i < 32; i++) inverted_map[i] = ~map[i];
677 map = inverted_map;
682 if ((map[i/8] & (1 << (i&7))) != 0)
686 if ((map[j/8] & (1 << (j&7))) == 0) break;
H A Dpcre_study.c581 start_bits points to the bit map
1249 /* Character class where all the information is in a bit map: set the
1280 pcre_uint8 *map; local
1282 map = NULL;
1286 map = (pcre_uint8 *)(tcode + 1 + LINK_SIZE + 1);
1293 map = (pcre_uint8 *)tcode;
1297 /* In UTF-8 mode, the bits in a bit map correspond to character
1298 values, not to byte values. However, the bit map we are constructing is
1304 if (map != NULL)
1310 for (c = 0; c < 16; c++) start_bits[c] |= map[
[all...]
/PHP_TRUNK/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_TRUNK/Zend/
H A Dzend_stream.h50 void *map; member in struct:_zend_mmap
H A Dzend_alloc.c46 * few bitset for available runs of predefined small sizes, map of pages that
203 * map - contains service information for each page. (32-bits for each
267 zend_mm_page_info map[ZEND_MM_PAGES]; /* 2 KB = 512 * 4 */ member in struct:_zend_mm_chunk
818 chunk->map[0] = ZEND_MM_LRUN(ZEND_MM_FIRST_PAGE);
1022 chunk->map[page_num] = ZEND_MM_LRUN(pages_count);
1052 chunk->map[page_num] = 0;
1174 chunk->map[page_num] = ZEND_MM_SRUN(bin_num);
1178 chunk->map[page_num+i] = ZEND_MM_SRUN(bin_num);
1265 info = chunk->map[page_num];
1330 zend_mm_page_info info = chunk->map[page_nu
[all...]
/PHP_TRUNK/ext/soap/
H A Dphp_encoding.h181 soapMappingPtr map; member in struct:_encodeType
H A Dphp_encoding.c596 if (type && type->map && Z_TYPE(type->map->to_xml) != IS_UNDEF) {
599 if (call_user_function(EG(function_table), NULL, &type->map->to_xml, &return_value, 1, data TSRMLS_CC) == FAILURE) {
624 if (type && type->map && Z_TYPE(type->map->to_zval) != IS_UNDEF) {
636 if (call_user_function(EG(function_table), NULL, &type->map->to_zval, ret, 1, &data TSRMLS_CC) == FAILURE) {
2742 soap_error0(E_ERROR, "Encoding: Can't decode apache map, missing key");
2747 soap_error0(E_ERROR, "Encoding: Can't decode apache map, missing value");
2760 soap_error0(E_ERROR, "Encoding: Can't decode apache map, only Strings or Longs are allowd as keys");
3624 soapMappingPtr map local
[all...]
/PHP_TRUNK/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_TRUNK/ext/filter/
H A Dsanitizing_filters.c143 static void filter_map_init(filter_map *map) argument
145 memset(map, 0, sizeof(filter_map));
148 static void filter_map_update(filter_map *map, int flag, const unsigned char *allowed_list) argument
154 (*map)[allowed_list[i]] = flag;
158 static void filter_map_apply(zval *value, filter_map *map) argument
168 if ((*map)[str[i]]) {
311 filter_map map; local
313 filter_map_init(&map);
314 filter_map_update(&map, 1, allowed_list);
315 filter_map_apply(value, &map);
325 filter_map map; local
338 filter_map map; local
351 filter_map map; local
[all...]
/PHP_TRUNK/ext/ldap/
H A Dldap.c1725 /* map the modification type */
2507 static void php_ldap_do_escape(const zend_bool *map, const char *value, size_t valuelen, char **result, size_t *resultlen) argument
2514 len += (map[(unsigned char) value[i]]) ? 3 : 1;
2523 if (map[v]) {
2535 static void php_ldap_escape_map_set_chars(zend_bool *map, const char *chars, const int charslen, char escape) argument
2539 map[(unsigned char) chars[i++]] = escape;
2550 zend_bool map[256] = {0}, havecharlist = 0; local
2562 php_ldap_escape_map_set_chars(map, "\\*()\0", sizeof("\\*()\0") - 1, 1);
2567 php_ldap_escape_map_set_chars(map, "\\,=+<>;\"#", sizeof("\\,=+<>;\"#") - 1, 1);
2572 map[
[all...]
/PHP_TRUNK/ext/standard/
H A Dpack.c93 static void php_pack(zval *val, size_t size, int *map, char *output) argument
102 *output++ = v[map[i]];
416 int *map = machine_endian_short_map; local
419 map = big_endian_short_map;
421 map = little_endian_short_map;
425 php_pack(&argv[currentarg++], 2, map, &output[outputpos]);
443 int *map = machine_endian_long_map; local
446 map = big_endian_long_map;
448 map = little_endian_long_map;
452 php_pack(&argv[currentarg++], 4, map,
463 int *map = machine_endian_longlong_map; local
529 php_unpack(char *data, size_t size, int issigned, int *map) argument
845 int *map = machine_endian_short_map; local
879 int *map = machine_endian_long_map; local
914 int *map = machine_endian_longlong_map; local
[all...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dcompact_literals.c120 int i, j, n, *map, cache_slots; local
320 map = (int*)zend_arena_alloc(&ctx->arena, op_array->last_literal * sizeof(int));
321 memset(map, 0, op_array->last_literal * sizeof(int));
338 map[i] = l_null;
349 map[i] = l_false;
360 map[i] = l_true;
364 map[i] = Z_LVAL_P(pos);
366 map[i] = j;
378 map[i] = Z_LVAL_P(pos);
380 map[
[all...]

Completed in 57 milliseconds