* exemplar characters. The locale determines the sorting order
* for both the index characters and the user item names appearing
* under each Index character.
+ * @since_tizen 3.0
* @remarks The created object should be released by the caller with the
* #i18n_alpha_idx_destroy() function.
- * @since_tizen 3.0
*
* @param[in] language The language of the locale
* @param[in] country The country of the locale
* @details If the iteration is before the first Bucket
* (i18n_alpha_idx_get_next_bucket() has not been called),
* or after the last, return an empty string.
- * @remarks The obtained @a label should be released by the caller with the free() function.
* @since_tizen 3.0
+ * @remarks The obtained @a label should be released by the caller with the free() function.
*
* @param[in] index The alphabetic index, which contains buckets
* @param[out] label The name of the label of the current bucket
* @details Returns NULL if:
* - the current iteration position is before the first item in this Bucket,
* or after the last,
-* - the given @a index parameter is invalid.
+ * - the given @a index parameter is invalid.
+ * @since_tizen 3.0
* @remarks The specific error code can be obtained using the get_last_result() method.
* Error codes are described in Exceptions section.
- * @since_tizen 3.0
*
* @param[in] index The alphabetic index, which contains buckets with records
*
* @brief Gets the default label used for abbreviated buckets between other index characters.
* @details For example, consider the labels when Latin and Greek are used:
* X Y Z ... Α Β Γ
- * @remarks The obtained @a label should be released by the caller with the free() function.
* @since_tizen 3.0
+ * @remarks The obtained @a label should be released by the caller with the free() function.
*
* @param[in] index The alphabetic index, which contains buckets with records
* @param[out] label The default label used for abbreviated bucket between other index characters
/**
* @brief Gets the special label used for items that sort after the last normal label,
* and that would not otherwise have an appropriate label.
- * @remarks The obtained @a label should be released by the caller with the free() function.
* @since_tizen 3.0
+ * @remarks The obtained @a label should be released by the caller with the free() function.
*
* @param[in] index The alphabetic index, which contains buckets with records
* @param[out] label The overflow label
/**
* @brief Gets the special label used for items that sort before the first normal label,
* and that would not otherwise have an appropriate label.
- * @remarks The obtained @a label should be released by the caller with the free() function.
* @since_tizen 3.0
+ * @remarks The obtained @a label should be released by the caller with the free() function.
*
* @param[in] index The alphabetic index, which contains buckets with records
* @param[out] label The underflow label
/**
* @brief Gets the number of labels in this index.
- * @remarks Note: may trigger lazy index construction.
* @since_tizen 3.0
+ * @remarks Note: may trigger lazy index construction.
*
* @param[in] index The alphabetic index, which contains buckets with records
* @param[out] bucket_count The number of labels in this index, including any under,
* @details If the Record iteration position is before the first or after the last record,
* sets the string pointed by the @a record_name parameter to NULL and returns
* the #I18N_ERROR_INDEX_OUTOFBOUNDS error code.
- * @remarks The obtained @a record_name should be released by the caller with the free() function.
* @since_tizen 3.0
+ * @remarks The obtained @a record_name should be released by the caller with the free() function.
*
* @param[in] index The alphabetic index, which contains buckets with records
* @param[out] record_name The name of the current index item
/**
* @brief Creates a field position object for the given field.
* @details The only fields currently supported are the fields accepted by the date formatter,
- * see #i18n_udate_format_field_e.
+ * see #i18n_udate_format_field_e.
* @since_tizen 3.0
* @remarks The created object should be released by the caller with the
* i18n_field_position_destroy() function.
* @retval #I18N_ERROR_OUT_OF_MEMORY Out of memory
*/
int i18n_format_get_locale(i18n_format_h format,
- i18n_uloc_data_locale_type_e type, char **language, char **country);
+ i18n_ulocale_data_locale_type_e type, char **language, char **country);
/**
* @}
* @brief Gets the array value and count of the given formattable object.
* @since_tizen 3.0
* @remarks If this object is not of type #I18N_FORMATTABLE_TYPE_ARRAY then the
- * result is undefined.
+ * result is undefined. The obtained array should be released by the
+ * caller with the free() function.
*
- * @param[in] formattable A handle to the formattable object
+ * @param[in] formattable A handle to the formattable object
* @param[out] array A pointer to an array of #i18n_formattable_h handles
* @param[out] count A pointer to an int32_t variable which will be filled
* with the number of array's elements
} i18n_error_code_e;
/**
- * @}
* @}
*/
} i18n_uchar_u_grapheme_cluster_break_e;
/**
- * @}
* @}
*/
} i18n_ucollator_result_e;
/**
- * @}
* @}
*/
} i18n_unormalization_check_result_e;
/**
- * @}
* @}
*/
typedef void *i18n_usearch_h;
/**
- * @}
* @}
*/
} i18n_utimezone_transition_type_e;
/**
- * @}
* @}
*/
#define I18N_UDATE_MINUTE_SECOND "ms"
/**
- * @}
* @}
*/
} i18n_udatepg_date_time_pattern_conflict_e;
/**
- * @}
* @}
*/
} i18n_unumber_format_text_attribute_e;
/**
- * @}
* @}
*/
} i18n_ulocale_layout_type_e;
/**
- * @}
* @}
*/
#define I18N_USTRING_U_FOLD_CASE_EXCLUDE_SPECIAL_I 1
/**
- * @}
* @}
*/
} i18n_timezone_display_type_e;
/**
- * @}
* @}
*/
} i18n_ubreak_iterator_type_e;
/**
- * @}
* @}
*/
};
/**
- * @}
* @}
*/
typedef void *i18n_uenumeration_h;
/**
- * @}
* @}
*/
I18N_USCRIPT_CODE_LIMIT = 159 /**< Count of i18n_uscript_code_e enumerators*/
} i18n_uscript_code_e;
+/**
+ * @}
+ */
+
+/**
+ * @addtogroup CAPI_BASE_UTILS_I18N_FORMAT_MODULE
+ * @{
+ */
+
/**
* @brief Handle to the object of base class for all formats.
* @since_tizen 3.0
*/
typedef void *i18n_format_h;
+/**
+ * @}
+ */
+
+/**
+ * @addtogroup CAPI_BASE_UTILS_I18N_MEASURE_FORMAT_MODULE
+ * @{
+ */
+
/**
* @brief Handle to the object that represents a formatter for measure objects.
* @since_tizen 3.0
I18N_UMEASFMT_WIDTH_COUNT = 4, /**< Count of values in this enumeration */
} i18n_umeasure_format_width_e;
+/**
+ * @}
+ */
+
+/**
+ * @addtogroup CAPI_BASE_UTILS_I18N_FORMATTABLE_MODULE
+ * @{
+ */
+
/**
* @brief Handle to the object of class used for formatting #i18n_format_h and its subclasses.
* @since_tizen 3.0
I18N_FORMATTABLE_TYPE_DATE = 0, /**< Selector indicating an #i18n_udate value */
I18N_FORMATTABLE_TYPE_DOUBLE = 1, /**< Selector indicating a double value */
I18N_FORMATTABLE_TYPE_LONG = 2, /**< Selector indicating a 32-bit integer value */
- I18N_FORMATTABLE_TYPE_STRING = 3, /**< Selector indicating a string */
+ I18N_FORMATTABLE_TYPE_STRING = 3, /**< Selector indicating a string value */
I18N_FORMATTABLE_TYPE_ARRAY = 4, /**< Selector indicating an array of #i18n_formattable_h */
I18N_FORMATTABLE_TYPE_INT64 = 5, /**< Selector indicating a 64-bit integer value */
I18N_FORMATTABLE_TYPE_OBJECT = 6, /**< Selector indicating a generic object value.
was added for completeness and possible future extensions. */
} i18n_formattable_type_e;
+/**
+ * @}
+ */
+
+/**
+ * @addtogroup CAPI_BASE_UTILS_I18N_MEASURE_MODULE
+ * @{
+ */
/**
* @brief Handle to the object that represents an amount of a specified unit.
*/
typedef void *i18n_measure_h;
+/**
+ * @}
+ */
+
+/**
+ * @addtogroup CAPI_BASE_UTILS_I18N_MEASURE_UNIT_MODULE
+ * @{
+ */
+
/**
* @brief Handle to the object that represents a unit such as length, mass, volume, currency, etc.
* @since_tizen 3.0
typedef bool (*i18n_measure_unit_types_cb)(const char *type_id, void *user_data);
/**
- * @brief Enumeration for the flavor of data type contained within an #i18n_formattable_h object.
- * @since_tizen 3.0
+ * @}
+ */
+
+/**
+ * @addtogroup CAPI_BASE_UTILS_I18N_ALPHABETIC_INDEX_MODULE
+ * @{
*/
-typedef enum {
- I18N_ULOC_ACTUAL_LOCALE = 0, /**< This is locale the data actually comes from */
- I18N_ULOC_VALID_LOCALE = 1, /**< This is the most specific locale supported by the ICU */
- I18N_ULOC_REQUESTED_LOCALE = 2, /**< This is the requested locale (deprecated) */
-} i18n_uloc_data_locale_type_e;
/*
* @brief The Alphabetic index handle.
} i18n_alpha_idx_label_type_e;
/**
- * @brief A simple type used by Format module and its submodules to identify fields in formatted output.
+ * @}
+ */
+
+/**
+ * @addtogroup CAPI_BASE_UTILS_I18N_FIELD_POSITION_MODULE
+ * @{
+ */
+
+/**
+ * @brief Handle to the object of class used by the #i18n_format_h and its subclasses to identify fields in a formatted output.
* @since_tizen 3.0
*/
typedef void *i18n_field_position_h;
} i18n_field_position_dont_care_e;
/**
- * @brief A simple type used by Format module and its submodules to identify fields in formatted output.
+ * @}
+ */
+
+/**
+ * @addtogroup CAPI_BASE_UTILS_I18N_FIELD_POSITION_MODULE
+ * @{
+ */
+
+/**
+ * @brief Handle to the object used by the Format and its subtypes to keep track of the current position during parsing.
* @since_tizen 3.0
*/
typedef void *i18n_parse_position_h;
+/**
+ * @}
+ */
+
#ifdef __cplusplus
}
#endif
* exemplar characters. The locale determines the sorting order
* for both the index characters and the user item names appearing
* under each Index character.
+ * @since_tizen 2.3.2
* @remarks The created object should be released by the caller with the
* #i18n_alpha_idx_destroy() function.
- * @since_tizen 2.3.2
*
* @param[in] language The language of the locale
* @param[in] country The country of the locale
* @details If the iteration is before the first Bucket
* (i18n_alpha_idx_get_next_bucket() has not been called),
* or after the last, return an empty string.
- * @remarks The obtained @a label should be released by the caller with the free() function.
* @since_tizen 2.3.2
+ * @remarks The obtained @a label should be released by the caller with the free() function.
*
* @param[in] index The alphabetic index, which contains buckets
* @param[out] label The name of the label of the current bucket
* @details Returns NULL if:
* - the current iteration position is before the first item in this Bucket,
* or after the last,
-* - the given @a index parameter is invalid.
+ * - the given @a index parameter is invalid.
+ * @since_tizen 2.3.2
* @remarks The specific error code can be obtained using the get_last_result() method.
* Error codes are described in Exceptions section.
- * @since_tizen 2.3.2
*
* @param[in] index The alphabetic index, which contains buckets with records
*
* @brief Gets the default label used for abbreviated buckets between other index characters.
* @details For example, consider the labels when Latin and Greek are used:
* X Y Z ... Α Β Γ
- * @remarks The obtained @a label should be released by the caller with the free() function.
* @since_tizen 2.3.2
+ * @remarks The obtained @a label should be released by the caller with the free() function.
*
* @param[in] index The alphabetic index, which contains buckets with records
* @param[out] label The default label used for abbreviated bucket between other index characters
/**
* @brief Gets the special label used for items that sort before the first normal label,
* and that would not otherwise have an appropriate label.
- * @remarks The obtained @a label should be released by the caller with the free() function.
* @since_tizen 2.3.2
+ * @remarks The obtained @a label should be released by the caller with the free() function.
*
* @param[in] index The alphabetic index, which contains buckets with records
* @param[out] label The underflow label
/**
* @brief Gets the number of labels in this index.
- * @remarks Note: may trigger lazy index construction.
* @since_tizen 2.3.2
+ * @remarks Note: may trigger lazy index construction.
*
* @param[in] index The alphabetic index, which contains buckets with records
* @param[out] bucket_count The number of labels in this index, including any under,
* @details If the Record iteration position is before the first or after the last record,
* sets the string pointed by the @a record_name parameter to NULL and returns
* the #I18N_ERROR_INDEX_OUTOFBOUNDS error code.
- * @remarks The obtained @a record_name should be released by the caller with the free() function.
* @since_tizen 2.3.2
+ * @remarks The obtained @a record_name should be released by the caller with the free() function.
*
* @param[in] index The alphabetic index, which contains buckets with records
* @param[out] record_name The name of the current index item
/**
* @brief Creates a field position object for the given field.
* @details The only fields currently supported are the fields accepted by the date formatter,
- * see #i18n_udate_format_field_e.
+ * see #i18n_udate_format_field_e.
* @since_tizen 2.3.2
* @remarks The created object should be released by the caller with the
* i18n_field_position_destroy() function.
* @retval #I18N_ERROR_OUT_OF_MEMORY Out of memory
*/
int i18n_format_get_locale(i18n_format_h format,
- i18n_uloc_data_locale_type_e type, char **language, char **country);
+ i18n_ulocale_data_locale_type_e type, char **language, char **country);
/**
* @}
* @brief Gets the array value and count of the given formattable object.
* @since_tizen 2.3.2
* @remarks If this object is not of type #I18N_FORMATTABLE_TYPE_ARRAY then the
- * result is undefined.
+ * result is undefined. The obtained array should be released by the
+ * caller with the free() function.
*
- * @param[in] formattable A handle to the formattable object
+ * @param[in] formattable A handle to the formattable object
* @param[out] array A pointer to an array of #i18n_formattable_h handles
* @param[out] count A pointer to an int32_t variable which will be filled
* with the number of array's elements
* @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter
* @retval #I18N_ERROR_OUT_OF_MEMORY Out of memory
*/
-int i18n_measure_unit_get_subtype(i18n_measur_unit_h measure_unit, char **subtype);
+int i18n_measure_unit_get_subtype(i18n_measure_unit_h measure_unit, char **subtype);
/**
* @brief Gets the available units.
* @details The function creates the array with the results.
* If there are more units available than the given @a max_count
- * then the returned list is truncated to the first @a max_count units
+ * then the returned array is truncated to the first @a max_count units
* and the returned error code is #I18N_ERROR_BUFFER_OVERFLOW.
*
* @since_tizen 2.3.2
* @brief Gets the available units for a specific type.
* @details The function creates the array with the results.
* If there are more units available than the given @a max_count
- * then the returned list is truncated to the first @a max_count units
+ * then the returned array is truncated to the first @a max_count units
* and the returned error code is #I18N_ERROR_BUFFER_OVERFLOW.
*
* @since_tizen 2.3.2
I18N_ERROR_ILLEGAL_CHAR_FOUND = TIZEN_ERROR_UTILITY_ICU | 0x10, /**< Character conversion: Illegal input sequence/combination of input units. @if MOBILE (Since 2.3.1) @endif*/
I18N_ERROR_INVALID_TABLE_FORMAT = TIZEN_ERROR_UTILITY_ICU | 0x11, /**< Conversion table file found, but corrupted. @if MOBILE (Since 2.3.1) @endif*/
I18N_ERROR_INVALID_TABLE_FILE = TIZEN_ERROR_UTILITY_ICU | 0x12, /**< Conversion table file not found. @if MOBILE (Since 2.3.1) @endif*/
- I18N_ERROR_ILLECAL_ESCAPE_SEQUENCE = TIZEN_ERROR_UTILITY_ICU | 0x13, /**< ISO-2022 illlegal escape sequence. @if MOBILE (Since 2.3.1) @endif*/
+ I18N_ERROR_ILLECAL_ESCAPE_SEQUENCE = TIZEN_ERROR_UTILITY_ICU | 0x13, /**< ISO-2022 illegal escape sequence. @if MOBILE (Since 2.3.1) @endif*/
I18N_ERROR_UNSUPPORTED_ESCAPE_SEQUENCE = TIZEN_ERROR_UTILITY_ICU | 0x14, /**< ISO-2022 unsupported escape sequence. @if MOBILE (Since 2.3.1) @endif*/
I18N_ERROR_NO_SPACE_AVAILABLE = TIZEN_ERROR_UTILITY_ICU | 0x15, /**< No space available for in-buffer expansion for Arabic shaping. @if MOBILE (Since 2.3.1) @endif*/
I18N_ERROR_CE_NOT_FOUND = TIZEN_ERROR_UTILITY_ICU | 0x16, /**< Currently used only while setting variable top, but can be used generally. @if MOBILE (Since 2.3.1) @endif*/
} i18n_error_code_e;
/**
- * @}
* @}
*/
} i18n_uchar_u_grapheme_cluster_break_e;
/**
- * @}
* @}
*/
} i18n_ucollator_result_e;
/**
- * @}
* @}
*/
} i18n_unormalization_check_result_e;
/**
- * @}
* @}
*/
typedef void *i18n_usearch_h;
/**
- * @}
* @}
*/
} i18n_utimezone_transition_type_e;
/**
- * @}
* @}
*/
#define I18N_UDATE_MINUTE_SECOND "ms"
/**
- * @}
* @}
*/
} i18n_udatepg_date_time_pattern_conflict_e;
/**
- * @}
* @}
*/
} i18n_unumber_format_text_attribute_e;
/**
- * @}
* @}
*/
} i18n_ulocale_layout_type_e;
/**
- * @}
* @}
*/
#define I18N_USTRING_U_FOLD_CASE_EXCLUDE_SPECIAL_I 1
/**
- * @}
* @}
*/
} i18n_timezone_display_type_e;
/**
- * @}
* @}
*/
} i18n_ubreak_iterator_type_e;
/**
- * @}
* @}
*/
};
/**
- * @}
* @}
*/
typedef void *i18n_uenumeration_h;
/**
- * @}
* @}
*/
I18N_USCRIPT_CODE_LIMIT = 159 /**< Count of i18n_uscript_code_e enumerators*/
} i18n_uscript_code_e;
+/**
+ * @}
+ */
+
+/**
+ * @addtogroup CAPI_BASE_UTILS_I18N_FORMAT_MODULE
+ * @{
+ */
+
/**
* @brief Handle to the object of base class for all formats.
* @since_tizen 2.3.2
*/
typedef void *i18n_format_h;
+/**
+ * @}
+ */
+
+/**
+ * @addtogroup CAPI_BASE_UTILS_I18N_MEASURE_FORMAT_MODULE
+ * @{
+ */
+
/**
* @brief Handle to the object that represents a formatter for measure objects.
* @since_tizen 2.3.2
I18N_UMEASFMT_WIDTH_COUNT = 4, /**< Count of values in this enumeration */
} i18n_umeasure_format_width_e;
+/**
+ * @}
+ */
+
+/**
+ * @addtogroup CAPI_BASE_UTILS_I18N_FORMATTABLE_MODULE
+ * @{
+ */
+
/**
* @brief Handle to the object of class used for formatting #i18n_format_h and its subclasses.
* @since_tizen 2.3.2
was added for completeness and possible future extensions. */
} i18n_formattable_type_e;
+/**
+ * @}
+ */
+
+/**
+ * @addtogroup CAPI_BASE_UTILS_I18N_MEASURE_MODULE
+ * @{
+ */
+
/**
* @brief Handle to the object that represents an amount of a specified unit.
* @since_tizen 2.3.2
*/
typedef void *i18n_measure_h;
+/**
+ * @}
+ */
+
+/**
+ * @addtogroup CAPI_BASE_UTILS_I18N_MEASURE_UNIT_MODULE
+ * @{
+ */
+
/**
* @brief Handle to the object that represents a unit such as length, mass, volume, currency, etc.
* @since_tizen 2.3.2
typedef bool (*i18n_measure_unit_types_cb)(const char *type_id, void *user_data);
/**
- * @brief Enumeration for the flavor of data type contained within an #i18n_formattable_h object.
- * @since_tizen 2.3.2
+ * @}
+ */
+
+/**
+ * @addtogroup CAPI_BASE_UTILS_I18N_ALPHABETIC_INDEX_MODULE
+ * @{
*/
-typedef enum {
- I18N_ULOC_ACTUAL_LOCALE = 0, /**< This is locale the data actually comes from */
- I18N_ULOC_VALID_LOCALE = 1, /**< This is the most specific locale supported by the ICU */
- I18N_ULOC_REQUESTED_LOCALE = 2, /**< This is the requested locale (deprecated) */
-} i18n_uloc_data_locale_type_e;
/*
* @brief The Alphabetic index handle.
} i18n_alpha_idx_label_type_e;
/**
- * @brief A simple class used by Format and its subclasses to identify fields in formatted output
+ * @}
+ */
+
+/**
+ * @addtogroup CAPI_BASE_UTILS_I18N_FIELD_POSITION_MODULE
+ * @{
+ */
+
+/**
+ * @brief Handle to the object of class used by the #i18n_format_h and its subclasses to identify fields in a formatted output.
* @since_tizen 2.3.2
*/
typedef void *i18n_field_position_h;
} i18n_field_position_dont_care_e;
/**
- * @brief A simple class used by Format and its subclasses to identify fields in formatted output.
+ * @}
+ */
+
+/**
+ * @addtogroup CAPI_BASE_UTILS_I18N_FIELD_POSITION_MODULE
+ * @{
+ */
+
+/**
+ * @brief Handle to the object used by the Format and its subtypes to keep track of the current position during parsing.
* @since_tizen 2.3.2
*/
typedef void *i18n_parse_position_h;
+/**
+ * @}
+ */
+
#ifdef __cplusplus
}
#endif
return _i18n_error_mapping(status);
}
-int i18n_format_get_locale(i18n_format_h format, i18n_uloc_data_locale_type_e type,
+int i18n_format_get_locale(i18n_format_h format, i18n_ulocale_data_locale_type_e type,
char **language, char **country)
{
retv_if(format == NULL, I18N_ERROR_INVALID_PARAMETER);
- retv_if(type < I18N_ULOC_ACTUAL_LOCALE || type > I18N_ULOC_REQUESTED_LOCALE, I18N_ERROR_INVALID_PARAMETER);
+ retv_if(type < I18N_ULOCALE_DATA_LOCALE_TYPE_ACTUAL_LOCALE || type > I18N_ULOCALE_DATA_LOCALE_TYPE_VALID_LOCALE, I18N_ERROR_INVALID_PARAMETER);
retv_if(language == NULL, I18N_ERROR_INVALID_PARAMETER);
retv_if(country == NULL, I18N_ERROR_INVALID_PARAMETER);
return I18N_ERROR_NONE;
}
-int i18n_formattable_create_with_double(double d, i18n_formattable_h *formattable)
+int i18n_formattable_create_with_double(double value, i18n_formattable_h *formattable)
{
retv_if(formattable == NULL, I18N_ERROR_INVALID_PARAMETER);
- *formattable = new Formattable(d);
+ *formattable = new Formattable(value);
retv_if(*formattable == NULL, I18N_ERROR_OUT_OF_MEMORY);
return I18N_ERROR_NONE;
}
-int i18n_formattable_create_with_long(int32_t l, i18n_formattable_h *formattable)
+int i18n_formattable_create_with_long(int32_t value, i18n_formattable_h *formattable)
{
retv_if(formattable == NULL, I18N_ERROR_INVALID_PARAMETER);
- *formattable = new Formattable(l);
+ *formattable = new Formattable(value);
retv_if(*formattable == NULL, I18N_ERROR_OUT_OF_MEMORY);
return I18N_ERROR_NONE;
}
-int i18n_formattable_create_with_int64(int64_t ll, i18n_formattable_h *formattable)
+int i18n_formattable_create_with_int64(int64_t value, i18n_formattable_h *formattable)
{
retv_if(formattable == NULL, I18N_ERROR_INVALID_PARAMETER);
- *formattable = new Formattable(ll);
+ *formattable = new Formattable(value);
retv_if(*formattable == NULL, I18N_ERROR_OUT_OF_MEMORY);
return I18N_ERROR_NONE;
retv_if(other == NULL, I18N_ERROR_INVALID_PARAMETER);
retv_if(not_equal == NULL, I18N_ERROR_INVALID_PARAMETER);
- *not_equal = (bool) (((Formattable *) formattable) != ((Formattable *) other));
+ *not_equal = (bool) (*((Formattable *) formattable) != *((Formattable *) other));
return I18N_ERROR_NONE;
}
retv_if(other == NULL, I18N_ERROR_INVALID_PARAMETER);
retv_if(equal == NULL, I18N_ERROR_INVALID_PARAMETER);
- *equal = (bool) (((Formattable *) formattable) == ((Formattable *) other));
+ *equal = (bool) (*((Formattable *) formattable) == *((Formattable *) other));
return I18N_ERROR_NONE;
}
int32_t count;
UErrorCode status = U_ZERO_ERROR;
+
((Formattable *) formattable)->getArray(count, status);
retv_if(status == U_INVALID_FORMAT_ERROR, I18N_ERROR_INVALID_FORMAT);
retv_if(index >= count, I18N_ERROR_INDEX_OUTOFBOUNDS);
- *element = (i18n_formattable_h) &((Formattable *) formattable)[index];
+ *element = (i18n_formattable_h) &((*((Formattable *) formattable))[index]);
return _i18n_error_mapping(status);
}
return I18N_ERROR_NONE;
}
-int i18n_formattable_set_double(i18n_formattable_h formattable, double d)
+int i18n_formattable_set_double(i18n_formattable_h formattable, double value)
{
retv_if(formattable == NULL, I18N_ERROR_INVALID_PARAMETER);
- ((Formattable *) formattable)->setDouble(d);
+ ((Formattable *) formattable)->setDouble(value);
return I18N_ERROR_NONE;
}
-int i18n_formattable_set_int64(i18n_formattable_h formattable, int64_t ll)
+int i18n_formattable_set_int64(i18n_formattable_h formattable, int64_t value)
{
retv_if(formattable == NULL, I18N_ERROR_INVALID_PARAMETER);
- ((Formattable *) formattable)->setInt64(ll);
+ ((Formattable *) formattable)->setInt64(value);
return I18N_ERROR_NONE;
}
-int i18n_formattable_set_long(i18n_formattable_h formattable, int32_t l)
+int i18n_formattable_set_long(i18n_formattable_h formattable, int32_t value)
{
retv_if(formattable == NULL, I18N_ERROR_INVALID_PARAMETER);
- ((Formattable *) formattable)->setLong(l);
+ ((Formattable *) formattable)->setLong(value);
return I18N_ERROR_NONE;
}