Lines Matching refs:i
825 int str_len, i, j; in to_zval_hexbin() local
839 for (i = j = 0; i < str_len; i++) { in to_zval_hexbin()
842 str[i] = (c - '0') << 4; in to_zval_hexbin()
844 str[i] = (c - 'a' + 10) << 4; in to_zval_hexbin()
846 str[i] = (c - 'A' + 10) << 4; in to_zval_hexbin()
852 str[i] |= c - '0'; in to_zval_hexbin()
854 str[i] |= c - 'a' + 10; in to_zval_hexbin()
856 str[i] |= c - 'A' + 10; in to_zval_hexbin()
909 int i; in to_xml_string() local
912 for (i = 0; (c = err[i++]);) { in to_xml_string()
915 if ((err[i] & 0xc0) != 0x80) { in to_xml_string()
918 i++; in to_xml_string()
920 if ((err[i] & 0xc0) != 0x80 || (err[i+1] & 0xc0) != 0x80) { in to_xml_string()
923 i += 2; in to_xml_string()
925 if ((err[i] & 0xc0) != 0x80 || (err[i+1] & 0xc0) != 0x80 || (err[i+2] & 0xc0) != 0x80) { in to_xml_string()
928 i += 3; in to_xml_string()
934 err[i-1] = '\\'; in to_xml_string()
935 err[i++] = 'x'; in to_xml_string()
936 err[i++] = ((unsigned char)c >> 4) + ((((unsigned char)c >> 4) > 9) ? ('a' - 10) : '0'); in to_xml_string()
937 err[i++] = (c & 15) + (((c & 15) > 9) ? ('a' - 10) : '0'); in to_xml_string()
938 err[i++] = '.'; in to_xml_string()
939 err[i++] = '.'; in to_xml_string()
940 err[i++] = '.'; in to_xml_string()
941 err[i++] = 0; in to_xml_string()
996 int i, j; in to_xml_hexbin() local
1010 for (i = j = 0; i < Z_STRLEN_P(data); i++) { in to_xml_hexbin()
1011 str[j++] = hexconvtab[((unsigned char)Z_STRVAL_P(data)[i]) >> 4]; in to_xml_hexbin()
1012 str[j++] = hexconvtab[((unsigned char)Z_STRVAL_P(data)[i]) & 15]; in to_xml_hexbin()
1900 int i; in to_xml_object() local
2056 i = zend_hash_num_elements(prop); in to_xml_object()
2059 for (;i > 0;i--) { in to_xml_object()
2117 int i = 0, flag = 0; in calc_dimension_12() local
2122 i++; in calc_dimension_12()
2128 i++; in calc_dimension_12()
2138 return i; in calc_dimension_12()
2144 int i = -1, flag = 0; in get_position_12() local
2153 i++; in get_position_12()
2158 i++; in get_position_12()
2161 pos[i] = (pos[i]*10)+(*str-'0'); in get_position_12()
2174 int i = 1; in calc_dimension() local
2177 i++; in calc_dimension()
2181 return i; in calc_dimension()
2186 int i = 0; in get_position_ex() local
2189 while (*str != ']' && *str != '\0' && i < dimension) { in get_position_ex()
2191 (*pos)[i] = ((*pos)[i]*10)+(*str-'0'); in get_position_ex()
2193 i++; in get_position_ex()
2294 int i; in to_xml_array() local
2384 i = zend_hash_num_elements(Z_ARRVAL_P(data)); in to_xml_array()
2412 dims[0] = i; in to_xml_array()
2414 for (i = 1; i < dimension; i++) { in to_xml_array()
2420 dims[i] = zend_hash_num_elements(Z_ARRVAL_PP(el)); in to_xml_array()
2422 dims[i] = 0; in to_xml_array()
2428 for (i=1; i<dimension; i++) { in to_xml_array()
2430 smart_str_append_long(&array_size, dims[i]); in to_xml_array()
2455 if (dims[0] == 0) {dims[0] = i;} in to_xml_array()
2458 for (i=1; i<dimension; i++) { in to_xml_array()
2460 smart_str_append_long(&array_size, dims[i]); in to_xml_array()
2465 smart_str_append_long(&array_size, i); in to_xml_array()
2476 if (dims[0] == 0) {dims[0] = i;} in to_xml_array()
2479 for (i=1; i<dimension; i++) { in to_xml_array()
2481 smart_str_append_long(&array_size, dims[i]); in to_xml_array()
2507 smart_str_append_long(&array_size, i); in to_xml_array()
2510 dims[0] = i; in to_xml_array()
2514 smart_str_append_long(&array_size, i); in to_xml_array()
2516 dims[0] = i; in to_xml_array()
2532 int i = 0; in to_xml_array() local
2533 while (i < array_size.len) { in to_xml_array()
2534 if (array_size.c[i] == ',') {array_size.c[i] = ' ';} in to_xml_array()
2535 ++i; in to_xml_array()
2725 int i; in to_zval_array() local
2739 i = 0; in to_zval_array()
2741 while (i < dimension-1) { in to_zval_array()
2743 if (zend_hash_index_find(Z_ARRVAL_P(ar), pos[i], (void**)&ar2) == SUCCESS) { in to_zval_array()
2749 zend_hash_index_update(Z_ARRVAL_P(ar), pos[i], &tmpAr, sizeof(zval*), (void**)&ar2); in to_zval_array()
2752 i++; in to_zval_array()
2754 zend_hash_index_update(Z_ARRVAL_P(ar), pos[i], &tmpVal, sizeof(zval *), NULL); in to_zval_array()
2757 i = dimension; in to_zval_array()
2758 while (i > 0) { in to_zval_array()
2759 i--; in to_zval_array()
2760 pos[i]++; in to_zval_array()
2761 if (pos[i] >= dims[i]) { in to_zval_array()
2762 if (i > 0) { in to_zval_array()
2763 pos[i] = 0; in to_zval_array()
2783 int i; in to_xml_map() local
2790 i = zend_hash_num_elements(Z_ARRVAL_P(data)); in to_xml_map()
2792 for (;i > 0;i--) { in to_xml_map()
3609 int i, count = zend_hash_num_elements(Z_ARRVAL_P(array)); in is_map() local
3612 for (i = 0; i < count; i++) { in is_map()
3617 num_index != i) { in is_map()
3628 int i, count, cur_type, prev_type, different; in get_array_type() local
3643 for (i = 0;i < count;i++) { in get_array_type()
3680 if (i > 0) { in get_array_type()