Lines Matching refs:args
58 U_CFUNC void umsg_format_helper(UMessageFormat *fmt, int arg_count, zval **args, UChar **formatted,… in umsg_format_helper() argument
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()
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()
135 #define cleanup_zvals() for(int j=i;j>=0;j--) { zval_ptr_dtor((*args)+i); }
137 U_CFUNC void umsg_parse_helper(UMessageFormat *fmt, int *count, zval ***args, UChar *source, int so… in umsg_parse_helper() argument
146 *args = (zval **)safe_emalloc(*count, sizeof(zval *), 0); in umsg_parse_helper()
156 ALLOC_INIT_ZVAL((*args)[i]); 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()
179 ZVAL_DOUBLE((*args)[i], (double)aInt64); in umsg_parse_helper()
181 ZVAL_LONG((*args)[i], (long)aInt64); in umsg_parse_helper()
192 ZVAL_STRINGL((*args)[i], stmp, stmp_len, 0); in umsg_parse_helper()