Lines Matching refs:nfo
71 value = unum_getAttribute(FORMATTER_OBJECT(nfo), attribute); in PHP_FUNCTION()
73 INTL_DATA_ERROR_CODE(nfo) = U_UNSUPPORTED_ERROR; in PHP_FUNCTION()
80 double value_double = unum_getDoubleAttribute(FORMATTER_OBJECT(nfo), attribute); in PHP_FUNCTION()
82 INTL_DATA_ERROR_CODE(nfo) = U_UNSUPPORTED_ERROR; in PHP_FUNCTION()
89 INTL_DATA_ERROR_CODE(nfo) = U_UNSUPPORTED_ERROR; in PHP_FUNCTION()
93 INTL_METHOD_CHECK_STATUS( nfo, "Error getting attribute value" ); in PHP_FUNCTION()
124 …h = unum_getTextAttribute( FORMATTER_OBJECT(nfo), attribute, value, value_buf_size, &INTL_DATA_ERR… in PHP_FUNCTION()
125 if(INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR && length >= value_buf_size) { in PHP_FUNCTION()
127 INTL_DATA_ERROR_CODE(nfo) = U_ZERO_ERROR; in PHP_FUNCTION()
129 …ength = unum_getTextAttribute( FORMATTER_OBJECT(nfo), attribute, value, length, &INTL_DATA_ERROR_C… in PHP_FUNCTION()
130 if(U_FAILURE(INTL_DATA_ERROR_CODE(nfo))) { in PHP_FUNCTION()
135 INTL_METHOD_CHECK_STATUS( nfo, "Error getting attribute value" ); in PHP_FUNCTION()
137 INTL_METHOD_RETVAL_UTF8( nfo, value, length, ( value != value_buf ) ); in PHP_FUNCTION()
186 unum_setAttribute(FORMATTER_OBJECT(nfo), attribute, Z_LVAL_P(value)); in PHP_FUNCTION()
190 unum_setDoubleAttribute(FORMATTER_OBJECT(nfo), attribute, Z_DVAL_P(value)); in PHP_FUNCTION()
193 INTL_DATA_ERROR_CODE(nfo) = U_UNSUPPORTED_ERROR; in PHP_FUNCTION()
197 INTL_METHOD_CHECK_STATUS( nfo, "Error setting attribute value" ); in PHP_FUNCTION()
231 intl_convert_utf8_to_utf16(&svalue, &slength, value, len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
232 INTL_METHOD_CHECK_STATUS( nfo, "Error converting attribute value to UTF-16" ); in PHP_FUNCTION()
235 …unum_setTextAttribute(FORMATTER_OBJECT(nfo), attribute, svalue, slength, &INTL_DATA_ERROR_CODE(nfo… in PHP_FUNCTION()
239 INTL_METHOD_CHECK_STATUS( nfo, "Error setting text attribute" ); in PHP_FUNCTION()
276 …length = unum_getSymbol(FORMATTER_OBJECT(nfo), symbol, value_buf, length, &INTL_DATA_ERROR_CODE(nf… in PHP_FUNCTION()
277 if(INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR && length >= USIZE( value_buf )) { in PHP_FUNCTION()
279 INTL_DATA_ERROR_CODE(nfo) = U_ZERO_ERROR; in PHP_FUNCTION()
281 length = unum_getSymbol(FORMATTER_OBJECT(nfo), symbol, value, length, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
282 if(U_FAILURE(INTL_DATA_ERROR_CODE(nfo))) { in PHP_FUNCTION()
287 INTL_METHOD_CHECK_STATUS( nfo, "Error getting symbol value" ); in PHP_FUNCTION()
289 INTL_METHOD_RETVAL_UTF8( nfo, value, length, ( value_buf != value ) ); in PHP_FUNCTION()
326 intl_convert_utf8_to_utf16(&svalue, &slength, value, value_len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
327 INTL_METHOD_CHECK_STATUS( nfo, "Error converting symbol value to UTF-16" ); in PHP_FUNCTION()
330 unum_setSymbol(FORMATTER_OBJECT(nfo), symbol, svalue, slength, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
334 INTL_METHOD_CHECK_STATUS( nfo, "Error setting symbol value" ); in PHP_FUNCTION()
365 length = unum_toPattern(FORMATTER_OBJECT(nfo), 0, value, length, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
366 if(INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR && length >= USIZE( value_buf )) { in PHP_FUNCTION()
368 INTL_DATA_ERROR_CODE(nfo) = U_ZERO_ERROR; in PHP_FUNCTION()
370 length = unum_toPattern( FORMATTER_OBJECT(nfo), 0, value, length, &INTL_DATA_ERROR_CODE(nfo) ); in PHP_FUNCTION()
371 if(U_FAILURE(INTL_DATA_ERROR_CODE(nfo))) { in PHP_FUNCTION()
376 INTL_METHOD_CHECK_STATUS( nfo, "Error getting formatter pattern" ); in PHP_FUNCTION()
378 INTL_METHOD_RETVAL_UTF8( nfo, value, length, ( value != value_buf ) ); in PHP_FUNCTION()
408 intl_convert_utf8_to_utf16(&svalue, &slength, value, value_len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
409 INTL_METHOD_CHECK_STATUS( nfo, "Error converting pattern to UTF-16" ); in PHP_FUNCTION()
412 unum_applyPattern(FORMATTER_OBJECT(nfo), 0, svalue, slength, NULL, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
416 INTL_METHOD_CHECK_STATUS( nfo, "Error setting pattern value" ); in PHP_FUNCTION()
446 loc = (char *)unum_getLocaleByType(FORMATTER_OBJECT(nfo), type, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
447 INTL_METHOD_CHECK_STATUS( nfo, "Error getting locale" ); in PHP_FUNCTION()