Lines Matching refs:i
65 for(int32_t i = 0; i < fmt_count; ++i) { in umsg_format_helper() local
70 switch(argTypes[i]) { in umsg_format_helper()
72 convert_to_long_ex(&args[i]); in umsg_format_helper()
73 fargs[i].setDate(U_MILLIS_PER_SECOND * (double)Z_LVAL_P(args[i])); in umsg_format_helper()
77 convert_to_double_ex(&args[i]); in umsg_format_helper()
78 fargs[i].setDouble(Z_DVAL_P(args[i])); in umsg_format_helper()
82 convert_to_long_ex(&args[i]); in umsg_format_helper()
83 fargs[i].setLong(Z_LVAL_P(args[i])); in umsg_format_helper()
87 if(Z_TYPE_P(args[i]) == IS_DOUBLE) { in umsg_format_helper()
88 tInt64 = (int64_t)Z_DVAL_P(args[i]); in umsg_format_helper()
89 } else if(Z_TYPE_P(args[i]) == IS_LONG) { in umsg_format_helper()
90 tInt64 = (int64_t)Z_LVAL_P(args[i]); in umsg_format_helper()
92 SEPARATE_ZVAL_IF_NOT_REF(&args[i]); in umsg_format_helper()
93 convert_scalar_to_number( args[i] TSRMLS_CC ); in umsg_format_helper()
94 tInt64 = (Z_TYPE_P(args[i]) == IS_DOUBLE)?(int64_t)Z_DVAL_P(args[i]):Z_LVAL_P(args[i]); in umsg_format_helper()
96 fargs[i].setInt64(tInt64); in umsg_format_helper()
100 convert_to_string_ex(&args[i]); in umsg_format_helper()
101 …intl_convert_utf8_to_utf16(&stringVal, &stringLen, Z_STRVAL_P(args[i]), Z_STRLEN_P(args[i]), statu… in umsg_format_helper()
106 fargs[i].setString(stringVal); in umsg_format_helper()
135 #define cleanup_zvals() for(int j=i;j>=0;j--) { zval_ptr_dtor((*args)+i); }
149 for(int32_t i = 0; i < *count; i++) { in umsg_parse_helper() local
156 ALLOC_INIT_ZVAL((*args)[i]); in umsg_parse_helper()
158 switch(fargs[i].getType()) { in umsg_parse_helper()
160 aDate = ((double)fargs[i].getDate())/U_MILLIS_PER_SECOND; in umsg_parse_helper()
162 ZVAL_DOUBLE((*args)[i], aDate<0?ceil(aDate):floor(aDate)); in umsg_parse_helper()
164 ZVAL_LONG((*args)[i], (long)aDate); in umsg_parse_helper()
169 ZVAL_DOUBLE((*args)[i], (double)fargs[i].getDouble()); in umsg_parse_helper()
173 ZVAL_LONG((*args)[i], fargs[i].getLong()); in umsg_parse_helper()
177 aInt64 = fargs[i].getInt64(); in umsg_parse_helper()
179 ZVAL_DOUBLE((*args)[i], (double)aInt64); in umsg_parse_helper()
181 ZVAL_LONG((*args)[i], (long)aInt64); in umsg_parse_helper()
186 fargs[i].getString(temp); in umsg_parse_helper()
192 ZVAL_STRINGL((*args)[i], stmp, stmp_len, 0); in umsg_parse_helper()