Home | History | Annotate | Download | only in unicode

Lines Matching refs:UFormattable

7 * File UFORMATTABLE.H
18 * \brief C API: UFormattable is a thin wrapper for primitive types used for formatting and parsing.
38 * Enum designating the type of a UFormattable instance.
62 typedef void *UFormattable;
65 * Initialize a UFormattable, to type UNUM_LONG, value 0
70 * @return the new UFormattable
74 U_STABLE UFormattable* U_EXPORT2
78 * Cleanup any additional memory allocated by this UFormattable.
84 ufmt_close(UFormattable* fmt);
92 * "Smart pointer" class, closes a UFormattable via ufmt_close().
99 U_DEFINE_LOCAL_OPEN_POINTER(LocalUFormattablePointer, UFormattable, ufmt_close);
107 * @param fmt the UFormattable object
108 * @param status status code - U_ILLEGAL_ARGUMENT_ERROR is returned if the UFormattable contains data not supported by
116 ufmt_getType(const UFormattable* fmt, UErrorCode *status);
120 * @param fmt the UFormattable object
127 ufmt_isNumeric(const UFormattable* fmt);
133 * @param fmt the UFormattable object
140 ufmt_getDate(const UFormattable* fmt, UErrorCode *status);
151 * @param fmt the UFormattable object
158 ufmt_getDouble(UFormattable* fmt, UErrorCode *status);
172 * @param fmt the UFormattable object
179 ufmt_getLong(UFormattable* fmt, UErrorCode *status);
193 * @param fmt the UFormattable object
200 ufmt_getInt64(UFormattable* fmt, UErrorCode *status);
206 * @param fmt the UFormattable object
213 ufmt_getObject(const UFormattable* fmt, UErrorCode *status);
218 * This function is not thread safe and may modify the UFormattable if need be to terminate the string.
219 * The returned pointer is not valid if any other functions are called on this UFormattable, or if the UFormattable is closed.
220 * @param fmt the UFormattable object
223 * @return the null terminated string value - must not be referenced after any other functions are called on this UFormattable.
228 ufmt_getUChars(UFormattable* fmt, int32_t *len, UErrorCode *status);
232 * @param fmt the UFormattable object
239 ufmt_getArrayLength(const UFormattable* fmt, UErrorCode *status);
243 * @param fmt the UFormattable object
246 * @return the nth array value, only valid while the containing UFormattable is valid. NULL if not an array.
250 U_STABLE UFormattable * U_EXPORT2
251 ufmt_getArrayItemByIndex(UFormattable* fmt, int32_t n, UErrorCode *status);
262 * The resulting buffer is owned by the UFormattable and is invalid if any other functions are
263 * called on the UFormattable.
268 * @param fmt the UFormattable object
276 ufmt_getDecNumChars(UFormattable *fmt, int32_t *len, UErrorCode *status);