Lines Matching refs:UFormattable
9 * File UFORMATTABLE.H
20 * \brief C API: UFormattable is a thin wrapper for primitive types used for formatting and parsing.
40 * Enum designating the type of a UFormattable instance.
70 typedef void *UFormattable;
73 * Initialize a UFormattable, to type UNUM_LONG, value 0
78 * @return the new UFormattable
82 U_STABLE UFormattable* U_EXPORT2
86 * Cleanup any additional memory allocated by this UFormattable.
92 ufmt_close(UFormattable* fmt);
100 * "Smart pointer" class, closes a UFormattable via ufmt_close().
107 U_DEFINE_LOCAL_OPEN_POINTER(LocalUFormattablePointer, UFormattable, ufmt_close);
115 * @param fmt the UFormattable object
116 * @param status status code - U_ILLEGAL_ARGUMENT_ERROR is returned if the UFormattable contains data not supported by
124 ufmt_getType(const UFormattable* fmt, UErrorCode *status);
128 * @param fmt the UFormattable object
135 ufmt_isNumeric(const UFormattable* fmt);
141 * @param fmt the UFormattable object
148 ufmt_getDate(const UFormattable* fmt, UErrorCode *status);
159 * @param fmt the UFormattable object
166 ufmt_getDouble(UFormattable* fmt, UErrorCode *status);
180 * @param fmt the UFormattable object
187 ufmt_getLong(UFormattable* fmt, UErrorCode *status);
201 * @param fmt the UFormattable object
208 ufmt_getInt64(UFormattable* fmt, UErrorCode *status);
214 * @param fmt the UFormattable object
221 ufmt_getObject(const UFormattable* fmt, UErrorCode *status);
226 * This function is not thread safe and may modify the UFormattable if need be to terminate the string.
227 * The returned pointer is not valid if any other functions are called on this UFormattable, or if the UFormattable is closed.
228 * @param fmt the UFormattable object
231 * @return the null terminated string value - must not be referenced after any other functions are called on this UFormattable.
236 ufmt_getUChars(UFormattable* fmt, int32_t *len, UErrorCode *status);
240 * @param fmt the UFormattable object
247 ufmt_getArrayLength(const UFormattable* fmt, UErrorCode *status);
251 * @param fmt the UFormattable object
254 * @return the nth array value, only valid while the containing UFormattable is valid. NULL if not an array.
258 U_STABLE UFormattable * U_EXPORT2
259 ufmt_getArrayItemByIndex(UFormattable* fmt, int32_t n, UErrorCode *status);
270 * The resulting buffer is owned by the UFormattable and is invalid if any other functions are
271 * called on the UFormattable.
276 * @param fmt the UFormattable object
284 ufmt_getDecNumChars(UFormattable *fmt, int32_t *len, UErrorCode *status);