From 41a98845406b3797f5d4f30f5ab2c97ec52f4490 Mon Sep 17 00:00:00 2001 From: Jakub Siewierski Date: Mon, 11 Apr 2016 12:57:49 +0200 Subject: [PATCH] Apply coding rules Change-Id: Ia8993428d637a5f017b4a14a6f4461ef731ba696 Signed-off-by: Jakub Siewierski --- src/include/mobile/utils_i18n_private.h | 6 +- src/include/mobile/utils_i18n_timezone.h | 10 +- src/include/mobile/utils_i18n_types.h | 20 ++-- src/include/mobile/utils_i18n_ubrk.h | 36 +++---- src/include/mobile/utils_i18n_ucalendar.h | 84 +++++++-------- src/include/mobile/utils_i18n_uchar.h | 4 +- src/include/mobile/utils_i18n_ucollator.h | 38 +++---- src/include/mobile/utils_i18n_udate.h | 64 ++++++------ src/include/mobile/utils_i18n_udatepg.h | 60 +++++------ src/include/mobile/utils_i18n_uenumeration.h | 14 +-- src/include/mobile/utils_i18n_ulocale.h | 74 +++++++------- src/include/mobile/utils_i18n_unormalization.h | 4 +- src/include/mobile/utils_i18n_unumber.h | 54 +++++----- src/include/mobile/utils_i18n_usearch.h | 12 +-- src/include/mobile/utils_i18n_uset.h | 112 ++++++++++---------- src/include/mobile/utils_i18n_ustring.h | 124 +++++++++++------------ src/include/wearable/utils_i18n_private.h | 6 +- src/include/wearable/utils_i18n_timezone.h | 10 +- src/include/wearable/utils_i18n_types.h | 20 ++-- src/include/wearable/utils_i18n_ubrk.h | 36 +++---- src/include/wearable/utils_i18n_ucalendar.h | 84 +++++++-------- src/include/wearable/utils_i18n_uchar.h | 4 +- src/include/wearable/utils_i18n_ucollator.h | 40 ++++---- src/include/wearable/utils_i18n_udate.h | 64 ++++++------ src/include/wearable/utils_i18n_udatepg.h | 60 +++++------ src/include/wearable/utils_i18n_uenumeration.h | 14 +-- src/include/wearable/utils_i18n_ulocale.h | 74 +++++++------- src/include/wearable/utils_i18n_unormalization.h | 4 +- src/include/wearable/utils_i18n_unumber.h | 54 +++++----- src/include/wearable/utils_i18n_usearch.h | 10 +- src/include/wearable/utils_i18n_uset.h | 112 ++++++++++---------- src/include/wearable/utils_i18n_ustring.h | 120 +++++++++++----------- 32 files changed, 714 insertions(+), 714 deletions(-) diff --git a/src/include/mobile/utils_i18n_private.h b/src/include/mobile/utils_i18n_private.h index b981e4f..70783e9 100755 --- a/src/include/mobile/utils_i18n_private.h +++ b/src/include/mobile/utils_i18n_private.h @@ -73,7 +73,7 @@ extern "C" { } while (0) #define retex_if(expr, val, fmt, arg...) do { \ - if(expr) { \ + if (expr) { \ ERR(fmt, ##arg); \ val; \ goto CATCH; \ @@ -86,8 +86,8 @@ extern "C" { #define ERR_MAPPING(ICU_ERROR, BASE_UTILS_ERROR) BASE_UTILS_ERROR = \ (i18n_error_code_e)_i18n_error_mapping((int)ICU_ERROR) -int _i18n_error_mapping ( int err ); -int _i18n_error_mapping_reverse ( int err ); +int _i18n_error_mapping(int err); +int _i18n_error_mapping_reverse(int err); #ifdef __cplusplus } diff --git a/src/include/mobile/utils_i18n_timezone.h b/src/include/mobile/utils_i18n_timezone.h index b34e617..fb768ae 100755 --- a/src/include/mobile/utils_i18n_timezone.h +++ b/src/include/mobile/utils_i18n_timezone.h @@ -72,7 +72,7 @@ extern "C" { * @see i18n_timezone_create() * @see i18n_timezone_create_gmt() */ -int i18n_timezone_create_unknown ( i18n_timezone_h *timezone ); +int i18n_timezone_create_unknown(i18n_timezone_h *timezone); /** * @brief The GMT (=UTC) time zone has a raw offset of zero and does not use daylight savings time. @@ -85,7 +85,7 @@ int i18n_timezone_create_unknown ( i18n_timezone_h *timezone ); * @retval #I18N_ERROR_NONE Successful * @see i18n_timezone_create_unknown() */ -int i18n_timezone_create_gmt ( i18n_timezone_h *timezone ); +int i18n_timezone_create_gmt(i18n_timezone_h *timezone); /** * @brief Creates an i18n_timezone_h for the given timezone_id. @@ -96,7 +96,7 @@ int i18n_timezone_create_gmt ( i18n_timezone_h *timezone ); * * @retval #I18N_ERROR_NONE Successful */ -int i18n_timezone_create ( i18n_timezone_h *timezone, const char *timezone_id ); +int i18n_timezone_create(i18n_timezone_h *timezone, const char *timezone_id); /** * @brief Destroys an i18n_timezone_h. @@ -214,7 +214,7 @@ int i18n_timezone_get_equivalent_id(const char *timezone_id, int32_t index, char * * @retval #I18N_ERROR_NONE Successful */ -int i18n_timezone_create_default ( i18n_timezone_h *timezone ); +int i18n_timezone_create_default(i18n_timezone_h *timezone); /** * @brief Sets the default time zone (i.e., what's returned by #i18n_timezone_create_default()) to be the specified time zone. @@ -230,7 +230,7 @@ int i18n_timezone_create_default ( i18n_timezone_h *timezone ); * * @retval #I18N_ERROR_NONE Successful */ -int i18n_timezone_set_default( i18n_timezone_h timezone ); +int i18n_timezone_set_default(i18n_timezone_h timezone); /** * @brief Returns the timezone data version currently used by I18N. diff --git a/src/include/mobile/utils_i18n_types.h b/src/include/mobile/utils_i18n_types.h index a96cbed..15af948 100644 --- a/src/include/mobile/utils_i18n_types.h +++ b/src/include/mobile/utils_i18n_types.h @@ -169,20 +169,20 @@ typedef enum { #if !defined(U_WCHAR_IS_UTF16) && !defined(U_WCHAR_IS_UTF32) # ifdef __STDC_ISO_10646__ -# if (U_SIZEOF_WCHAR_T==2) +# if (U_SIZEOF_WCHAR_T == 2) # define U_WCHAR_IS_UTF16 -# elif (U_SIZEOF_WCHAR_T==4) +# elif (U_SIZEOF_WCHAR_T == 4) # define U_WCHAR_IS_UTF32 # endif # elif defined __UCS2__ -# if (U_PF_OS390 <= U_PLATFORM && U_PLATFORM <= U_PF_OS400) && (U_SIZEOF_WCHAR_T==2) +# if (U_PF_OS390 <= U_PLATFORM && U_PLATFORM <= U_PF_OS400) && (U_SIZEOF_WCHAR_T == 2) # define U_WCHAR_IS_UTF16 # endif # elif defined(__UCS4__) || (U_PLATFORM == U_PF_OS400 && defined(__UTF32__)) -# if (U_SIZEOF_WCHAR_T==4) +# if (U_SIZEOF_WCHAR_T == 4) # define U_WCHAR_IS_UTF32 # endif -# elif U_PLATFORM_IS_DARWIN_BASED || (U_SIZEOF_WCHAR_T==4 && U_PLATFORM_IS_LINUX_BASED) +# elif U_PLATFORM_IS_DARWIN_BASED || (U_SIZEOF_WCHAR_T == 4 && U_PLATFORM_IS_LINUX_BASED) # define U_WCHAR_IS_UTF32 # elif U_PLATFORM_HAS_WIN32_API # define U_WCHAR_IS_UTF16 @@ -198,7 +198,7 @@ typedef enum { typedef UCHAR_TYPE i18n_uchar; /* Not #elif U_HAVE_CHAR16_T -- because that is type-incompatible with pre-C++11 callers typedef char16_t i18n_uchar; */ -#elif U_SIZEOF_WCHAR_T==2 +#elif U_SIZEOF_WCHAR_T == 2 typedef wchar_t i18n_uchar; #elif defined(__CHAR16_TYPE__) typedef __CHAR16_TYPE__ i18n_uchar; @@ -1592,7 +1592,7 @@ typedef struct { * @brief Handle to struct representing a range of text containing a specific field. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef i18n_ufield_position_s* i18n_ufield_position_h; +typedef i18n_ufield_position_s *18n_ufield_position_h; /** * @brief Enumeration for the possible date/time format styles. @@ -1690,7 +1690,7 @@ typedef enum { * @since_tizen 2.3.1 */ -typedef enum{ +typedef enum { I18N_UDISPCTX_TYPE_DIALECT_HANDLING, /**beyond the last character in the text being scanned. @@ -202,7 +202,7 @@ int32_t i18n_ubrk_first (i18n_ubreak_iterator_h break_iter); * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ubrk_first() */ -int32_t i18n_ubrk_last (i18n_ubreak_iterator_h break_iter); +int32_t i18n_ubrk_last(i18n_ubreak_iterator_h break_iter); /** * @brief Sets the iterator position to the first boundary preceding the specified @c offset. @@ -217,7 +217,7 @@ int32_t i18n_ubrk_last (i18n_ubreak_iterator_h break_iter); * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ubrk_following() */ -int32_t i18n_ubrk_preceding (i18n_ubreak_iterator_h break_iter, int32_t offset); +int32_t i18n_ubrk_preceding(i18n_ubreak_iterator_h break_iter, int32_t offset); /** * @brief Advances the iterator to the first boundary following the specified @c offset. @@ -232,7 +232,7 @@ int32_t i18n_ubrk_preceding (i18n_ubreak_iterator_h break_iter, int32_t offset); * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ubrk_preceding() */ -int32_t i18n_ubrk_following (i18n_ubreak_iterator_h break_iter, int32_t offset); +int32_t i18n_ubrk_following(i18n_ubreak_iterator_h break_iter, int32_t offset); /** * @brief Gets a locale for which text breaking information is available. @@ -247,7 +247,7 @@ int32_t i18n_ubrk_following (i18n_ubreak_iterator_h break_iter, int32_t offset); * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ubrk_count_available() */ -const char *i18n_ubrk_get_available (int32_t index); +const char *i18n_ubrk_get_available(int32_t index); /** * @brief Determines how many locales have text breaking information available. @@ -260,7 +260,7 @@ const char *i18n_ubrk_get_available (int32_t index); * @exception #I18N_ERROR_NONE Successful * @see i18n_ubrk_get_available() */ -int32_t i18n_ubrk_count_available (void); +int32_t i18n_ubrk_count_available(void); /** * @brief Returns true if the specfied position is a boundary position. @@ -275,7 +275,7 @@ int32_t i18n_ubrk_count_available (void); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_ubrk_is_boundary (i18n_ubreak_iterator_h break_iter, int32_t offset); +i18n_ubool i18n_ubrk_is_boundary(i18n_ubreak_iterator_h break_iter, int32_t offset); /** * @brief Returns the status from the break rule that determined the most recently @@ -293,7 +293,7 @@ i18n_ubool i18n_ubrk_is_boundary (i18n_ubreak_iterator_h break_iter, int32_t off * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ubrk_get_rule_status (i18n_ubreak_iterator_h break_iter); +int32_t i18n_ubrk_get_rule_status(i18n_ubreak_iterator_h break_iter); /** * @brief Gets the statuses from the break rules that determined the most recently @@ -316,7 +316,7 @@ int32_t i18n_ubrk_get_rule_status (i18n_ubreak_iterator_h break_iter); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ubrk_get_rule_status_vec (i18n_ubreak_iterator_h break_iter, int32_t *fill_in_vec, int32_t capacity); +int32_t i18n_ubrk_get_rule_status_vec(i18n_ubreak_iterator_h break_iter, int32_t *fill_in_vec, int32_t capacity); /** * @brief Returns the locale of the break iterator. You can choose between the valid and @@ -331,7 +331,7 @@ int32_t i18n_ubrk_get_rule_status_vec (i18n_ubreak_iterator_h break_iter, int32_ * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -const char *i18n_ubrk_get_locale_by_type (const i18n_ubreak_iterator_h break_iter, i18n_ulocale_data_locale_type_e type); +const char *i18n_ubrk_get_locale_by_type(const i18n_ubreak_iterator_h break_iter, i18n_ulocale_data_locale_type_e type); #ifdef __cplusplus } diff --git a/src/include/mobile/utils_i18n_ucalendar.h b/src/include/mobile/utils_i18n_ucalendar.h index 7de77be..a725a56 100644 --- a/src/include/mobile/utils_i18n_ucalendar.h +++ b/src/include/mobile/utils_i18n_ucalendar.h @@ -129,7 +129,7 @@ extern "C" { * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_set_default_timezone ( const i18n_uchar *zone_id ); +int i18n_ucalendar_set_default_timezone(const i18n_uchar *zone_id); /** * @brief Gets the current date and time. @@ -141,7 +141,7 @@ int i18n_ucalendar_set_default_timezone ( const i18n_uchar *zone_id ); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_get_now ( i18n_udate *date ); +int i18n_ucalendar_get_now(i18n_udate *date); /** * @brief Creates an #i18n_ucalendar_h. @@ -171,7 +171,7 @@ int i18n_ucalendar_get_now ( i18n_udate *date ); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @retval #I18N_ERROR_OUT_OF_MEMORY Out of memory */ -int i18n_ucalendar_create ( const i18n_uchar *zone_id, int32_t len, const char *locale, i18n_ucalendar_type_e type, i18n_ucalendar_h *calendar ); +int i18n_ucalendar_create(const i18n_uchar *zone_id, int32_t len, const char *locale, i18n_ucalendar_type_e type, i18n_ucalendar_h *calendar); /** * @brief Destroys an #i18n_ucalendar_h. @@ -182,7 +182,7 @@ int i18n_ucalendar_create ( const i18n_uchar *zone_id, int32_t len, const char * * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_destroy ( i18n_ucalendar_h calendar ); +int i18n_ucalendar_destroy(i18n_ucalendar_h calendar); /** * @brief Creates a copy of a #i18n_ucalendar_h. @@ -194,7 +194,7 @@ int i18n_ucalendar_destroy ( i18n_ucalendar_h calendar ); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_clone ( const i18n_ucalendar_h cal, i18n_ucalendar_h *identical_to_cal ); +int i18n_ucalendar_clone(const i18n_ucalendar_h cal, i18n_ucalendar_h *identical_to_cal); /** * @brief Gets the display name for a calendar's TimeZone. @@ -213,7 +213,7 @@ int i18n_ucalendar_clone ( const i18n_ucalendar_h cal, i18n_ucalendar_h *identic * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_get_timezone_displayname ( const i18n_ucalendar_h calendar, i18n_ucalendar_displayname_type_e type, const char *locale, i18n_uchar *result, int32_t result_len, int32_t *buf_size_needed ); +int i18n_ucalendar_get_timezone_displayname(const i18n_ucalendar_h calendar, i18n_ucalendar_displayname_type_e type, const char *locale, i18n_uchar *result, int32_t result_len, int32_t *buf_size_needed); /** * @brief Determines if an #i18n_ucalendar_h is currently in daylight savings time. @@ -227,7 +227,7 @@ int i18n_ucalendar_get_timezone_displayname ( const i18n_ucalendar_h calendar, i * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_is_in_daylight_time ( const i18n_ucalendar_h calendar, i18n_ubool *is_in ); +int i18n_ucalendar_is_in_daylight_time(const i18n_ucalendar_h calendar, i18n_ubool *is_in); /** * @brief Sets the value of a field in a #i18n_ucalendar_h. @@ -246,7 +246,7 @@ int i18n_ucalendar_is_in_daylight_time ( const i18n_ucalendar_h calendar, i18n_u * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_set ( i18n_ucalendar_h cal, i18n_ucalendar_date_fields_e field, int32_t val ); +int i18n_ucalendar_set(i18n_ucalendar_h cal, i18n_ucalendar_date_fields_e field, int32_t val); /** * @brief Sets a numeric attribute associated with an #i18n_ucalendar_h. @@ -263,7 +263,7 @@ int i18n_ucalendar_set ( i18n_ucalendar_h cal, i18n_ucalendar_date_fields_e fiel * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_set_attribute ( i18n_ucalendar_h calendar, i18n_ucalendar_attribute_e attr, int32_t val ); +int i18n_ucalendar_set_attribute(i18n_ucalendar_h calendar, i18n_ucalendar_attribute_e attr, int32_t val); /** * @brief Gets a numeric attribute associated with an i18n_ucalendar. @@ -281,7 +281,7 @@ int i18n_ucalendar_set_attribute ( i18n_ucalendar_h calendar, i18n_ucalendar_att * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_get_attribute ( i18n_ucalendar_h calendar, i18n_ucalendar_attribute_e attr, int32_t *val); +int i18n_ucalendar_get_attribute(i18n_ucalendar_h calendar, i18n_ucalendar_attribute_e attr, int32_t *val); /** * @brief Gets a calendar's current time in milliseconds. @@ -296,7 +296,7 @@ int i18n_ucalendar_get_attribute ( i18n_ucalendar_h calendar, i18n_ucalendar_att * @see i18n_ucalendar_set_milliseconds() * @see i18n_ucalendar_set_date_time() */ -int i18n_ucalendar_get_milliseconds( const i18n_ucalendar_h calendar, i18n_udate *date ); +int i18n_ucalendar_get_milliseconds(const i18n_ucalendar_h calendar, i18n_udate *date); /** * @brief Sets a calendar's current time in milliseconds. @@ -311,7 +311,7 @@ int i18n_ucalendar_get_milliseconds( const i18n_ucalendar_h calendar, i18n_udate * @see i18n_ucalendar_get_milliseconds() * @see i18n_ucalendar_set_date_time() */ -int i18n_ucalendar_set_milliseconds ( i18n_ucalendar_h calendar, i18n_udate milliseconds ); +int i18n_ucalendar_set_milliseconds(i18n_ucalendar_h calendar, i18n_udate milliseconds); /** * @brief Sets a calendar's current date. @@ -333,7 +333,7 @@ int i18n_ucalendar_set_milliseconds ( i18n_ucalendar_h calendar, i18n_udate mill * @see i18n_ucalendar_get_milliseconds() * @see i18n_ucalendar_set_milliseconds() */ -int i18n_ucalendar_set_date_time ( i18n_ucalendar_h calendar, int32_t year, int32_t month, int32_t date, int32_t hour, int32_t min, int32_t sec ); +int i18n_ucalendar_set_date_time(i18n_ucalendar_h calendar, int32_t year, int32_t month, int32_t date, int32_t hour, int32_t min, int32_t sec); /** * @brief Returns @c true if two #i18n_ucalendar_h calendars are equivalent. @@ -348,7 +348,7 @@ int i18n_ucalendar_set_date_time ( i18n_ucalendar_h calendar, int32_t year, int3 * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_is_equivalent_to ( const i18n_ucalendar_h calendar1, const i18n_ucalendar_h calendar2, i18n_ubool *equiv ); +int i18n_ucalendar_is_equivalent_to(const i18n_ucalendar_h calendar1, const i18n_ucalendar_h calendar2, i18n_ubool *equiv); /** * @brief Adds a specified signed amount to a particular field in a #i18n_ucalendar_h. @@ -368,7 +368,7 @@ int i18n_ucalendar_is_equivalent_to ( const i18n_ucalendar_h calendar1, const i1 * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_add ( i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field, int32_t amount ); +int i18n_ucalendar_add(i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field, int32_t amount); /** * @brief Gets the current value of a field from an #i18n_ucalendar_h. @@ -385,7 +385,7 @@ int i18n_ucalendar_add ( i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_get ( const i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field, int32_t *val ); +int i18n_ucalendar_get(const i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field, int32_t *val); // Newly Added APIs @@ -418,7 +418,7 @@ int i18n_ucalendar_get ( const i18n_ucalendar_h calendar, i18n_ucalendar_date_fi * * @return The date difference for the specified field. */ -int32_t i18n_ucalendar_get_field_difference ( i18n_ucalendar_h calendar, i18n_udate target, i18n_ucalendar_date_fields_e field, i18n_error_code_e *status ); +int32_t i18n_ucalendar_get_field_difference(i18n_ucalendar_h calendar, i18n_udate target, i18n_ucalendar_date_fields_e field, i18n_error_code_e *status); /** * @brief Creates an enumeration over system time zone IDs with the given filter conditions. @@ -437,7 +437,7 @@ int32_t i18n_ucalendar_get_field_difference ( i18n_ucalendar_h calendar, i18n_ud * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_timezone_id_enumeration_create ( i18n_system_timezone_type_e zone_type, const char *region, const int32_t *raw_offset, i18n_uenumeration_h *enumeration); +int i18n_ucalendar_timezone_id_enumeration_create(i18n_system_timezone_type_e zone_type, const char *region, const int32_t *raw_offset, i18n_uenumeration_h *enumeration); /** * @brief Creates an enumeration over all time zones. @@ -450,7 +450,7 @@ int i18n_ucalendar_timezone_id_enumeration_create ( i18n_system_timezone_type_e * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_timezones_create (i18n_uenumeration_h * enumeration); +int i18n_ucalendar_timezones_create(i18n_uenumeration_h * enumeration); /** * @brief Creates an enumeration over all time zones associated with the given country. @@ -466,7 +466,7 @@ int i18n_ucalendar_timezones_create (i18n_uenumeration_h * enumeration); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_country_timezones_create (const char *country, i18n_uenumeration_h * enumeration); +int i18n_ucalendar_country_timezones_create(const char *country, i18n_uenumeration_h * enumeration); /** * @brief Returns the default time zone. @@ -484,7 +484,7 @@ int i18n_ucalendar_country_timezones_create (const char *country, i18n_uenumerat * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid parameter */ -int32_t i18n_ucalendar_get_default_timezone (i18n_uchar *result, int32_t result_capacity); +int32_t i18n_ucalendar_get_default_timezone(i18n_uchar *result, int32_t result_capacity); /** * @brief Sets the TimeZone used by a #i18n_ucalendar_h. @@ -499,7 +499,7 @@ int32_t i18n_ucalendar_get_default_timezone (i18n_uchar *result, int32_t result_ * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_set_timezone ( i18n_ucalendar_h calendar, const i18n_uchar *zone_id, int32_t length ); +int i18n_ucalendar_set_timezone(i18n_ucalendar_h calendar, const i18n_uchar *zone_id, int32_t length); /** * @brief Gets the ID of the calendar's time zone. @@ -516,7 +516,7 @@ int i18n_ucalendar_set_timezone ( i18n_ucalendar_h calendar, const i18n_uchar *z * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ucalendar_get_timezone_id (const i18n_ucalendar_h calendar, i18n_uchar *result, int32_t result_length); +int32_t i18n_ucalendar_get_timezone_id(const i18n_ucalendar_h calendar, i18n_uchar *result, int32_t result_length); /** * @brief Sets the Gregorian Calendar change date. @@ -537,7 +537,7 @@ int32_t i18n_ucalendar_get_timezone_id (const i18n_ucalendar_h calendar, i18n_uc * * @see i18n_ucalendar_get_gregorian_change() */ -int i18n_ucalendar_set_gregorian_change ( i18n_ucalendar_h calendar, i18n_udate date); +int i18n_ucalendar_set_gregorian_change(i18n_ucalendar_h calendar, i18n_udate date); /** * @brief Gets the Gregorian Calendar change date. @@ -558,7 +558,7 @@ int i18n_ucalendar_set_gregorian_change ( i18n_ucalendar_h calendar, i18n_udate * * @see i18n_ucalendar_set_gregorian_change() */ -int i18n_ucalendar_get_gregorian_change (const i18n_ucalendar_h calendar, i18n_udate *date); +int i18n_ucalendar_get_gregorian_change(const i18n_ucalendar_h calendar, i18n_udate *date); /** * @brief Gets a locale for which calendars are available. @@ -575,7 +575,7 @@ int i18n_ucalendar_get_gregorian_change (const i18n_ucalendar_h calendar, i18n_u * @exception #I18N_ERROR_INVALID_PARAMETER Invalid parameter * @see i18n_ucalendar_count_available() */ -const char * i18n_ucalendar_get_available (int32_t locale_index); +const char * i18n_ucalendar_get_available(int32_t locale_index); /** * @brief Determines how many locales have calendars available. @@ -588,7 +588,7 @@ const char * i18n_ucalendar_get_available (int32_t locale_index); * @exception #I18N_ERROR_NONE Successful * @see i18n_ucalendar_get_available() */ -int32_t i18n_ucalendar_count_available (void); +int32_t i18n_ucalendar_count_available(void); /** * @brief Sets a calendar's current date. @@ -611,7 +611,7 @@ int32_t i18n_ucalendar_count_available (void); * @see i18n_ucalendar_set_milliseconds() * @see i18n_ucalendar_set_date_time() */ -int i18n_ucalendar_set_date (i18n_ucalendar_h calendar, int32_t year, int32_t month, int32_t date); +int i18n_ucalendar_set_date(i18n_ucalendar_h calendar, int32_t year, int32_t month, int32_t date); /** * @brief Adds a specified signed amount to a particular field in a #i18n_ucalendar_h. @@ -646,7 +646,7 @@ int i18n_ucalendar_set_date (i18n_ucalendar_h calendar, int32_t year, int32_t mo * @remarks #I18N_UCALENDAR_ZONE_OFFSET and #I18N_UCALENDAR_DST_OFFSET are not supported by this function. * @see i18n_ucalendar_add() */ -int i18n_ucalendar_roll (i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field, int32_t amount); +int i18n_ucalendar_roll(i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field, int32_t amount); /** * @brief Determines if a field in a #i18n_ucalendar_h is set. @@ -667,7 +667,7 @@ int i18n_ucalendar_roll (i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e * @see i18n_ucalendar_clear() * */ -i18n_ubool i18n_ucalendar_is_set (const i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field); +i18n_ubool i18n_ucalendar_is_set(const i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field); /** * @brief Clears a field in a #i18n_ucalendar_h. @@ -687,7 +687,7 @@ i18n_ubool i18n_ucalendar_is_set (const i18n_ucalendar_h calendar, i18n_ucalenda * @see i18n_ucalendar_clear() * */ -int i18n_ucalendar_clear_field (i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field); +int i18n_ucalendar_clear_field(i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field); /** * @brief Clears all fields in a #i18n_ucalendar_h. @@ -704,7 +704,7 @@ int i18n_ucalendar_clear_field (i18n_ucalendar_h calendar, i18n_ucalendar_date_f * @see i18n_ucalendar_clear_field() * */ -int i18n_ucalendar_clear (i18n_ucalendar_h calendar); +int i18n_ucalendar_clear(i18n_ucalendar_h calendar); /** * @brief Determines a limit for a field in an #i18n_ucalendar_h. @@ -731,7 +731,7 @@ int i18n_ucalendar_clear (i18n_ucalendar_h calendar); * * @return The requested value. */ -int32_t i18n_ucalendar_get_limit (const i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field, i18n_ucalendar_limit_type_e type); +int32_t i18n_ucalendar_get_limit(const i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field, i18n_ucalendar_limit_type_e type); /** * @brief Gets the locale for this @c calendar object. @@ -748,7 +748,7 @@ int32_t i18n_ucalendar_get_limit (const i18n_ucalendar_h calendar, i18n_ucalenda * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -const char *i18n_ucalendar_get_locale_by_type (const i18n_ucalendar_h calendar, i18n_ulocale_data_locale_type_e type); +const char *i18n_ucalendar_get_locale_by_type(const i18n_ucalendar_h calendar, i18n_ulocale_data_locale_type_e type); /** * @brief Returns the timezone data version currently used by ICU. @@ -759,7 +759,7 @@ const char *i18n_ucalendar_get_locale_by_type (const i18n_ucalendar_h calendar, * @return The version string, such as "2007f". * @exception #I18N_ERROR_NONE Successful */ -const char *i18n_ucalendar_get_tz_data_version (void); +const char *i18n_ucalendar_get_tz_data_version(void); /** * @brief Returns the canonical system timezone ID or the normalized custom time zone ID for the given time zone ID. @@ -778,7 +778,7 @@ const char *i18n_ucalendar_get_tz_data_version (void); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ucalendar_get_canonical_timezone_id (const i18n_uchar *id, int32_t length, i18n_uchar *result, int32_t result_capacity, i18n_ubool *is_system_id); +int32_t i18n_ucalendar_get_canonical_timezone_id(const i18n_uchar *id, int32_t length, i18n_uchar *result, int32_t result_capacity, i18n_ubool *is_system_id); /** * @brief Gets the resource keyword value string designating the calendar type for the #i18n_ucalendar_h. @@ -793,7 +793,7 @@ int32_t i18n_ucalendar_get_canonical_timezone_id (const i18n_uchar *id, int32_t * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -const char *i18n_ucalendar_get_type (const i18n_ucalendar_h calendar); +const char *i18n_ucalendar_get_type(const i18n_ucalendar_h calendar); /** * @brief Given a key and a locale, returns an array of string values in a preferred order that would make a difference. @@ -814,7 +814,7 @@ const char *i18n_ucalendar_get_type (const i18n_ucalendar_h calendar); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_get_keyword_values_for_locale (const char *key, const char *locale, i18n_ubool commonly_used, i18n_uenumeration_h *enumeration); +int i18n_ucalendar_get_keyword_values_for_locale(const char *key, const char *locale, i18n_ubool commonly_used, i18n_uenumeration_h *enumeration); /** * @brief Returns whether the given day of the week is a weekday, a weekend day, @@ -837,7 +837,7 @@ int i18n_ucalendar_get_keyword_values_for_locale (const char *key, const char *l * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_get_day_of_week_type (const i18n_ucalendar_h calendar, i18n_ucalendar_days_of_week_e day_of_week, i18n_ucalendar_weekday_type_e *weekday); +int i18n_ucalendar_get_day_of_week_type(const i18n_ucalendar_h calendar, i18n_ucalendar_days_of_week_e day_of_week, i18n_ucalendar_weekday_type_e *weekday); /** * @brief Returns the time during the day at which the weekend begins or ends in this calendar system. @@ -859,7 +859,7 @@ int i18n_ucalendar_get_day_of_week_type (const i18n_ucalendar_h calendar, i18n_u * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ucalendar_get_weekend_transition (const i18n_ucalendar_h calendar, i18n_ucalendar_days_of_week_e day_of_week); +int32_t i18n_ucalendar_get_weekend_transition(const i18n_ucalendar_h calendar, i18n_ucalendar_days_of_week_e day_of_week); /** * @brief Returns @c true if the given #i18n_udate is in the weekend in this calendar system. @@ -875,7 +875,7 @@ int32_t i18n_ucalendar_get_weekend_transition (const i18n_ucalendar_h calendar, * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_ucalendar_is_weekend (i18n_ucalendar_h calendar, i18n_udate date); +i18n_ubool i18n_ucalendar_is_weekend(i18n_ucalendar_h calendar, i18n_udate date); /** * @brief Get the #i18n_udate for the next/previous time zone transition relative @@ -896,7 +896,7 @@ i18n_ubool i18n_ucalendar_is_weekend (i18n_ucalendar_h calendar, i18n_udate date * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_ucalendar_get_timezone_transition_date (const i18n_ucalendar_h calendar, i18n_utimezone_transition_type_e type, i18n_udate *transition); +i18n_ubool i18n_ucalendar_get_timezone_transition_date(const i18n_ucalendar_h calendar, i18n_utimezone_transition_type_e type, i18n_udate *transition); /** * @} diff --git a/src/include/mobile/utils_i18n_uchar.h b/src/include/mobile/utils_i18n_uchar.h index 4194c05..4dc6e1e 100644 --- a/src/include/mobile/utils_i18n_uchar.h +++ b/src/include/mobile/utils_i18n_uchar.h @@ -149,7 +149,7 @@ extern "C" { * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uchar_get_int_property_value ( i18n_uchar32 c, i18n_uchar_uproperty_e which, int32_t *property_val ); +int i18n_uchar_get_int_property_value(i18n_uchar32 c, i18n_uchar_uproperty_e which, int32_t *property_val); /** * @brief Gets the Unicode allocation block that contains the character. @@ -161,7 +161,7 @@ int i18n_uchar_get_int_property_value ( i18n_uchar32 c, i18n_uchar_uproperty_e w * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uchar_get_ublock_code ( i18n_uchar32 c, i18n_uchar_ublock_code_e *block_val ); +int i18n_uchar_get_ublock_code(i18n_uchar32 c, i18n_uchar_ublock_code_e *block_val); #ifdef __cplusplus } diff --git a/src/include/mobile/utils_i18n_ucollator.h b/src/include/mobile/utils_i18n_ucollator.h index 4a40674..5959403 100755 --- a/src/include/mobile/utils_i18n_ucollator.h +++ b/src/include/mobile/utils_i18n_ucollator.h @@ -83,25 +83,25 @@ extern "C" { int ret = I18N_ERROR_NONE; int buf_01_len = 0, buf_02_len = 0; - for ( i = 0; i < sizeof( src ) / sizeof( src[0] ); i++ ) { - dlog_print(DLOG_INFO, LOG_TAG, "%s\n", src[i] ); + for (i = 0; i < sizeof(src) / sizeof(src[0]); i++) { + dlog_print(DLOG_INFO, LOG_TAG, "%s\n", src[i]); } // cat banana airplane // creates a collator - ret = i18n_ucollator_create( "en_US", &coll ); + ret = i18n_ucollator_create("en_US", &coll); // compares and sorts in ascending order - if ( ret == I18N_ERROR_NONE ) { + if (ret == I18N_ERROR_NONE) { i18n_ucollator_set_strength( coll, I18N_UCOLLATOR_TERTIARY ); - for ( i = 0; i < 2; i++ ) { - for ( j = 0; j < 2 - i; j++ ) { - i18n_ustring_copy_ua( buf_01, src[j] ); - i18n_ustring_copy_ua( buf_02, src[j+1] ); - i18n_ustring_get_length( buf_01, &buf_01_len ); - i18n_ustring_get_length( buf_02, &buf_02_len ); + for (i = 0; i < 2; i++) { + for (j = 0; j < 2 - i; j++) { + i18n_ustring_copy_ua(buf_01, src[j]); + i18n_ustring_copy_ua(buf_02, src[j+1]); + i18n_ustring_get_length(buf_01, &buf_01_len); + i18n_ustring_get_length(buf_02, &buf_02_len); // compares buf_01 with buf_02 - i18n_ucollator_str_collator( coll, buf_01, buf_01_len, buf_02, buf_02_len, &result ); - if ( result == I18N_UCOLLATOR_GREATER ) { + i18n_ucollator_str_collator(coll, buf_01, buf_01_len, buf_02, buf_02_len, &result); + if (result == I18N_UCOLLATOR_GREATER) { tmp = src[j]; src[j] = src[j+1]; src[j+1] = tmp; @@ -112,7 +112,7 @@ extern "C" { // destroys the collator i18n_ucollator_destroy( coll ); // deallocate memory for collator - for ( i = 0; i < sizeof( src ) / sizeof( src[0] ); i++ ) { + for (i = 0; i < sizeof(src) / sizeof(src[0]); i++) { dlog_print(DLOG_INFO, LOG_TAG, "%s\n", src[i] ); } // ariplane banana cat * @endcode @@ -146,7 +146,7 @@ extern "C" { * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ucollator_destroy() */ -int i18n_ucollator_create ( const char *locale, i18n_ucollator_h *collator ); +int i18n_ucollator_create(const char *locale, i18n_ucollator_h *collator); /** * @brief Closes a i18n_ucollator_h. @@ -159,7 +159,7 @@ int i18n_ucollator_create ( const char *locale, i18n_ucollator_h *collator ); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ucollator_create() */ -int i18n_ucollator_destroy ( i18n_ucollator_h collator ); +int i18n_ucollator_destroy(i18n_ucollator_h collator); /** * @brief Compares two strings. @@ -178,7 +178,7 @@ int i18n_ucollator_destroy ( i18n_ucollator_h collator ); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ucollator_equal() */ -int i18n_ucollator_str_collator ( const i18n_ucollator_h collator, const i18n_uchar *src, int32_t src_len, const i18n_uchar *target, int32_t target_len, i18n_ucollator_result_e *result ); +int i18n_ucollator_str_collator(const i18n_ucollator_h collator, const i18n_uchar *src, int32_t src_len, const i18n_uchar *target, int32_t target_len, i18n_ucollator_result_e *result); /** * @brief Compares two strings for equality. @@ -196,7 +196,7 @@ int i18n_ucollator_str_collator ( const i18n_ucollator_h collator, const i18n_uc * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ucollator_str_collator() */ -int i18n_ucollator_equal ( const i18n_ucollator_h collator, const i18n_uchar *src, int32_t src_len, const i18n_uchar *target, int32_t target_len, i18n_ubool *equal ); +int i18n_ucollator_equal(const i18n_ucollator_h collator, const i18n_uchar *src, int32_t src_len, const i18n_uchar *target, int32_t target_len, i18n_ubool *equal); /** * @brief Sets the collation strength used in a collator. @@ -210,7 +210,7 @@ int i18n_ucollator_equal ( const i18n_ucollator_h collator, const i18n_uchar *sr * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucollator_set_strength ( i18n_ucollator_h collator, i18n_ucollator_strength_e strength ); +int i18n_ucollator_set_strength(i18n_ucollator_h collator, i18n_ucollator_strength_e strength); /** * @brief Sets a universal attribute setter. @@ -223,7 +223,7 @@ int i18n_ucollator_set_strength ( i18n_ucollator_h collator, i18n_ucollator_stre * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucollator_set_attribute ( i18n_ucollator_h collator, i18n_ucollator_attribute_e attr, i18n_ucollator_attribute_value_e val ); +int i18n_ucollator_set_attribute(i18n_ucollator_h collator, i18n_ucollator_attribute_e attr, i18n_ucollator_attribute_value_e val); #ifdef __cplusplus } diff --git a/src/include/mobile/utils_i18n_udate.h b/src/include/mobile/utils_i18n_udate.h index d6504bb..440dfe6 100644 --- a/src/include/mobile/utils_i18n_udate.h +++ b/src/include/mobile/utils_i18n_udate.h @@ -107,21 +107,21 @@ // creates new i18n_udate_format_h to format dates and times ret = i18n_udate_create(I18N_UDATE_FULL , I18N_UDATE_FULL , locale, utf16_timezone_KR, -1, bestPattern, -1, &formatter_KR); - if ( ret != I18N_ERROR_NONE ) { + if (ret != I18N_ERROR_NONE) { dlog_print(DLOG_INFO, LOG_TAG, "i18n_udate_create failed !!! \n"); } if (!formatter_KR) { dlog_print(DLOG_INFO, LOG_TAG, "formatter is NULL\n"); } ret = i18n_udate_create(I18N_UDATE_FULL , I18N_UDATE_FULL , locale, utf16_timezone_LA, -1, bestPattern, -1, &formatter_LA); - if ( ret != I18N_ERROR_NONE ) { + if (ret != I18N_ERROR_NONE) { dlog_print(DLOG_INFO, LOG_TAG, "i18n_udate_create failed !!! \n"); } if (!formatter_LA) { dlog_print(DLOG_INFO, LOG_TAG, "formatter is NULL\n"); } ret = i18n_udate_create(I18N_UDATE_PATTERN , I18N_UDATE_PATTERN , locale, utf16_timezone_SaoPaulo, -1, bestPattern, -1, &formatter_SaoPaulo); - if ( ret != I18N_ERROR_NONE ) { + if (ret != I18N_ERROR_NONE) { dlog_print(DLOG_INFO, LOG_TAG, "i18n_udate_create failed !!! \n"); } if (!formatter_LA) { @@ -195,7 +195,7 @@ extern "C" { * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udate_create ( i18n_udate_format_style_e time_style, i18n_udate_format_style_e date_style, const char *locale, const i18n_uchar *tz_id, int32_t tz_id_len, const i18n_uchar *pattern, int pattern_len, i18n_udate_format_h *format ); +int i18n_udate_create(i18n_udate_format_style_e time_style, i18n_udate_format_style_e date_style, const char *locale, const i18n_uchar *tz_id, int32_t tz_id_len, const i18n_uchar *pattern, int pattern_len, i18n_udate_format_h *format); /** * @brief Destroys an #i18n_udate_format_h. @@ -207,7 +207,7 @@ int i18n_udate_create ( i18n_udate_format_style_e time_style, i18n_udate_format_ * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udate_destroy ( i18n_udate_format_h format ); +int i18n_udate_destroy(i18n_udate_format_h format); /** * @brief Formats a date using an #i18n_udate_format_h. @@ -231,7 +231,7 @@ int i18n_udate_destroy ( i18n_udate_format_h format ); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udate_format_date ( const i18n_udate_format_h format, i18n_udate date_to_format, i18n_uchar *result, int32_t result_len, i18n_ufield_position_h pos, int32_t *buf_size_needed ); +int i18n_udate_format_date(const i18n_udate_format_h format, i18n_udate date_to_format, i18n_uchar *result, int32_t result_len, i18n_ufield_position_h pos, int32_t *buf_size_needed); // Newly Added APIs @@ -250,7 +250,7 @@ int i18n_udate_format_date ( const i18n_udate_format_h format, i18n_udate date_t * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udate_to_calendar_date_field ( i18n_udate_format_field_e field, i18n_ucalendar_date_fields_e *date_field_type ); +int i18n_udate_to_calendar_date_field(i18n_udate_format_field_e field, i18n_ucalendar_date_fields_e *date_field_type); /** * @brief Creates a copy of an #i18n_udate_format_h. @@ -264,7 +264,7 @@ int i18n_udate_to_calendar_date_field ( i18n_udate_format_field_e field, i18n_uc * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udate_clone ( const i18n_udate_format_h format, i18n_udate_format_h *format_clone ); +int i18n_udate_clone(const i18n_udate_format_h format, i18n_udate_format_h *format_clone); /** * @brief Parses a string into an date/time using an #i18n_udate_format_h. @@ -290,7 +290,7 @@ int i18n_udate_clone ( const i18n_udate_format_h format, i18n_udate_format_h *fo * * @see i18n_udate_format_date() */ -int i18n_udate_parse ( const i18n_udate_format_h format, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos, i18n_udate *parsed_date ); +int i18n_udate_parse(const i18n_udate_format_h format, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos, i18n_udate *parsed_date); /** * @brief Parses a string into an date/time using an #i18n_udate_format_h. @@ -314,8 +314,8 @@ int i18n_udate_parse ( const i18n_udate_format_h format, const i18n_uchar *text, * * @see i18n_udate_format_date() */ -int i18n_udate_parse_calendar (const i18n_udate_format_h format, i18n_ucalendar_h *calendar, const i18n_uchar *text, - int32_t text_length, int32_t *parse_pos ); +int i18n_udate_parse_calendar(const i18n_udate_format_h format, i18n_ucalendar_h *calendar, const i18n_uchar *text, + int32_t text_length, int32_t *parse_pos); /** * @brief Determines if an #i18n_udate_format_h will perform lenient parsing. @@ -333,7 +333,7 @@ int i18n_udate_parse_calendar (const i18n_udate_format_h format, i18n_ucalendar_ * * @see i18n_udate_set_lenient() */ -i18n_ubool i18n_udate_is_lenient ( const i18n_udate_format_h format ); +i18n_ubool i18n_udate_is_lenient(const i18n_udate_format_h format); /** * @brief Specifies whether an #i18n_udate_format_h will perform lenient parsing. @@ -350,7 +350,7 @@ i18n_ubool i18n_udate_is_lenient ( const i18n_udate_format_h format ); * * @see i18n_udate_is_lenient() */ -int i18n_udate_set_lenient ( i18n_udate_format_h format, i18n_ubool is_lenient ); +int i18n_udate_set_lenient(i18n_udate_format_h format, i18n_ubool is_lenient); /** * @brief Gets the #i18n_ucalendar_h associated with an #i18n_udate_format_h. @@ -366,7 +366,7 @@ int i18n_udate_set_lenient ( i18n_udate_format_h format, i18n_ubool is_lenient ) * * @see i18n_udate_set_calendar() */ -int i18n_udate_get_calendar ( const i18n_udate_format_h format, i18n_ucalendar_h *calendar); +int i18n_udate_get_calendar(const i18n_udate_format_h format, i18n_ucalendar_h *calendar); /** * @brief Sets the #i18n_ucalendar_h associated with an #i18n_udate_format_h. @@ -382,7 +382,7 @@ int i18n_udate_get_calendar ( const i18n_udate_format_h format, i18n_ucalendar_h * * @see i18n_udate_get_calendar() */ -int i18n_udate_set_calendar ( i18n_udate_format_h format, const i18n_ucalendar_h calendar_to_set ); +int i18n_udate_set_calendar(i18n_udate_format_h format, const i18n_ucalendar_h calendar_to_set); /** * @brief Gets the #i18n_unumber_format_h associated with an #i18n_udate_format_h. @@ -398,7 +398,7 @@ int i18n_udate_set_calendar ( i18n_udate_format_h format, const i18n_ucalendar_h * * @see i18n_udate_set_number_format() */ -int i18n_udate_get_number_format ( const i18n_udate_format_h format, i18n_unumber_format_h *number_format ); +int i18n_udate_get_number_format(const i18n_udate_format_h format, i18n_unumber_format_h *number_format); /** * @brief Sets the #i18n_unumber_format_h associated with an #i18n_udate_format_h. @@ -414,7 +414,7 @@ int i18n_udate_get_number_format ( const i18n_udate_format_h format, i18n_unumbe * * @see i18n_udate_get_number_format() */ -int i18n_udate_set_number_format ( i18n_udate_format_h format, const i18n_unumber_format_h number_format_to_set ); +int i18n_udate_set_number_format(i18n_udate_format_h format, const i18n_unumber_format_h number_format_to_set); /** * @brief Gets a locale for which date/time formatting patterns are available. @@ -430,7 +430,7 @@ int i18n_udate_set_number_format ( i18n_udate_format_h format, const i18n_unumbe * @see i18n_udate_count_available() */ -const char *i18n_udate_get_available ( int32_t locale_index ); +const char *i18n_udate_get_available(int32_t locale_index); /** * @brief Determines how many locales have date/time formatting patterns available. @@ -444,7 +444,7 @@ const char *i18n_udate_get_available ( int32_t locale_index ); * * @see i18n_udate_get_available() */ -int32_t i18n_udate_count_available ( void ); +int32_t i18n_udate_count_available(void); /** * @brief Gets the year relative to which all 2-digit years are interpreted. @@ -461,7 +461,7 @@ int32_t i18n_udate_count_available ( void ); * * @see i18n_udate_set_2digit_year_start() */ -int i18n_udate_get_2digit_year_start ( const i18n_udate_format_h format, i18n_udate *year ); +int i18n_udate_get_2digit_year_start(const i18n_udate_format_h format, i18n_udate *year); /** * @brief Sets the year relative to which all 2-digit years will be interpreted. @@ -478,7 +478,7 @@ int i18n_udate_get_2digit_year_start ( const i18n_udate_format_h format, i18n_ud * * @see i18n_udate_get_2digit_year_start() */ -int i18n_udate_set_2digit_year_start ( i18n_udate_format_h format, i18n_udate date ); +int i18n_udate_set_2digit_year_start(i18n_udate_format_h format, i18n_udate date); /** * @brief Extracts the pattern from an #i18n_udate_format_h. @@ -499,8 +499,8 @@ int i18n_udate_set_2digit_year_start ( i18n_udate_format_h format, i18n_udate da * * @see i18n_udate_apply_pattern() */ -int32_t i18n_udate_to_pattern ( const i18n_udate_format_h format, i18n_ubool localized, i18n_uchar *result, - int32_t result_length ); +int32_t i18n_udate_to_pattern(const i18n_udate_format_h format, i18n_ubool localized, i18n_uchar *result, + int32_t result_length); /** * @brief Sets the pattern used by an #i18n_udate_format_h. @@ -518,8 +518,8 @@ int32_t i18n_udate_to_pattern ( const i18n_udate_format_h format, i18n_ubool loc * * @see i18n_udate_to_pattern() */ -int i18n_udate_apply_pattern ( i18n_udate_format_h format, i18n_ubool localized, const i18n_uchar *pattern, - int32_t pattern_length ); +int i18n_udate_apply_pattern(i18n_udate_format_h format, i18n_ubool localized, const i18n_uchar *pattern, + int32_t pattern_length); /** * @brief Gets the symbols associated with an #i18n_udate_format_h. @@ -543,8 +543,8 @@ int i18n_udate_apply_pattern ( i18n_udate_format_h format, i18n_ubool localized, * @see i18n_udate_count_symbols() * @see #i18n_udate_set_symbols() */ -int32_t i18n_udate_get_symbols ( const i18n_udate_format_h format, i18n_udate_format_symbol_type_e type, int32_t symbol_index, - i18n_uchar *result, int32_t result_length ); +int32_t i18n_udate_get_symbols(const i18n_udate_format_h format, i18n_udate_format_symbol_type_e type, int32_t symbol_index, + i18n_uchar *result, int32_t result_length); /** * @brief Counts the number of particular symbols for an #i18n_udate_format_h. @@ -564,7 +564,7 @@ int32_t i18n_udate_get_symbols ( const i18n_udate_format_h format, i18n_udate_fo * @see i18n_udate_get_symbols() * @see #i18n_udate_set_symbols() */ -int32_t i18n_udate_count_symbols ( const i18n_udate_format_h format, i18n_udate_format_symbol_type_e type ); +int32_t i18n_udate_count_symbols(const i18n_udate_format_h format, i18n_udate_format_symbol_type_e type); /** * @brief Sets the symbols associated with an #i18n_udate_format_h. @@ -587,8 +587,8 @@ int32_t i18n_udate_count_symbols ( const i18n_udate_format_h format, i18n_udate_ * @see i18n_udate_count_symbols() * @see #i18n_udate_get_symbols() */ -int i18n_udate_set_symbols ( i18n_udate_format_h format, i18n_udate_format_symbol_type_e type, int32_t symbol_index, - i18n_uchar *value, int32_t value_length ); +int i18n_udate_set_symbols(i18n_udate_format_h format, i18n_udate_format_symbol_type_e type, int32_t symbol_index, + i18n_uchar *value, int32_t value_length); /** * @brief Gets the locale for this date format object. @@ -605,7 +605,7 @@ int i18n_udate_set_symbols ( i18n_udate_format_h format, i18n_udate_format_symbo * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -const char * i18n_udate_get_locale_by_type ( const i18n_udate_format_h format, i18n_ulocale_data_locale_type_e type ); +const char * i18n_udate_get_locale_by_type(const i18n_udate_format_h format, i18n_ulocale_data_locale_type_e type); /** * @brief Sets a particular #i18n_udisplay_context_e value in the formatter, such as #I18N_UDISPLAY_CONTEXT_CAPITALIZATION_FOR_STANDALONE. @@ -620,7 +620,7 @@ const char * i18n_udate_get_locale_by_type ( const i18n_udate_format_h format, i * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udate_set_context ( i18n_udate_format_h format, i18n_udisplay_context_e value ); +int i18n_udate_set_context(i18n_udate_format_h format, i18n_udisplay_context_e value); /** diff --git a/src/include/mobile/utils_i18n_udatepg.h b/src/include/mobile/utils_i18n_udatepg.h index d46317d..8308288 100755 --- a/src/include/mobile/utils_i18n_udatepg.h +++ b/src/include/mobile/utils_i18n_udatepg.h @@ -106,21 +106,21 @@ // creates new i18n_udate_format to format dates and times ret = i18n_udate_create(I18N_UDATE_FULL , I18N_UDATE_FULL , locale, utf16_timezone_KR, -1, bestPattern, -1, &formatter_KR); - if ( ret != I18N_ERROR_NONE ) { + if (ret != I18N_ERROR_NONE) { dlog_print(DLOG_INFO, LOG_TAG, "i18n_udate_create failed !!! \n"); } if (!formatter_KR) { dlog_print(DLOG_INFO, LOG_TAG, "formatter is NULL\n"); } ret = i18n_udate_create(I18N_UDATE_FULL , I18N_UDATE_FULL , locale, utf16_timezone_LA, -1, bestPattern, -1, &formatter_LA); - if ( ret != I18N_ERROR_NONE ) { + if (ret != I18N_ERROR_NONE) { dlog_print(DLOG_INFO, LOG_TAG, "i18n_udate_create failed !!! \n"); } if (!formatter_LA) { dlog_print(DLOG_INFO, LOG_TAG, "formatter is NULL\n"); } ret = i18n_udate_create(I18N_UDATE_PATTERN , I18N_UDATE_PATTERN , locale, utf16_timezone_SaoPaulo, -1, bestPattern, -1, &formatter_SaoPaulo); - if ( ret != I18N_ERROR_NONE ) { + if (ret != I18N_ERROR_NONE) { dlog_print(DLOG_INFO, LOG_TAG, "i18n_udate_create failed !!! \n"); } if (!formatter_LA) { @@ -178,7 +178,7 @@ extern "C" { * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udatepg_create ( const char *locale, i18n_udatepg_h *dtpg ); +int i18n_udatepg_create(const char *locale, i18n_udatepg_h *dtpg); /** * @brief Destroys a generator. @@ -189,7 +189,7 @@ int i18n_udatepg_create ( const char *locale, i18n_udatepg_h *dtpg ); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udatepg_destroy ( i18n_udatepg_h dtpg ); +int i18n_udatepg_destroy(i18n_udatepg_h dtpg); /** * @brief Gets the best pattern matching the input skeleton. @@ -213,7 +213,7 @@ int i18n_udatepg_destroy ( i18n_udatepg_h dtpg ); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @retval #I18N_ERROR_BUFFER_OVERFLOW A result would not fit in the supplied buffer */ -int i18n_udatepg_get_best_pattern ( i18n_udatepg_h dtpg, const i18n_uchar *skeleton, int32_t len, i18n_uchar *best_pattern, int32_t capacity, int32_t *best_pattern_len ); +int i18n_udatepg_get_best_pattern(i18n_udatepg_h dtpg, const i18n_uchar *skeleton, int32_t len, i18n_uchar *best_pattern, int32_t capacity, int32_t *best_pattern_len); // Newly Added APIs @@ -229,7 +229,7 @@ int i18n_udatepg_get_best_pattern ( i18n_udatepg_h dtpg, const i18n_uchar *skele * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udatepg_create_empty (i18n_udatepg_h *dtpg); +int i18n_udatepg_create_empty(i18n_udatepg_h *dtpg); /** * @brief Creates a copy of a generator. @@ -242,7 +242,7 @@ int i18n_udatepg_create_empty (i18n_udatepg_h *dtpg); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udatepg_clone ( const i18n_udatepg_h dtpg, i18n_udatepg_h * dtpg_clone); +int i18n_udatepg_clone(const i18n_udatepg_h dtpg, i18n_udatepg_h * dtpg_clone); /** * @brief Gets the best pattern matching the input @a skeleton. @@ -273,8 +273,8 @@ int i18n_udatepg_clone ( const i18n_udatepg_h dtpg, i18n_udatepg_h * dtpg_clone) * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_udatepg_get_best_pattern_with_options ( i18n_udatepg_h dtpg, const i18n_uchar *skeleton, int32_t length, - i18n_udatepg_date_time_pattern_match_options_e options, i18n_uchar *best_pattern, int32_t capacity ); +int32_t i18n_udatepg_get_best_pattern_with_options(i18n_udatepg_h dtpg, const i18n_uchar *skeleton, int32_t length, + i18n_udatepg_date_time_pattern_match_options_e options, i18n_uchar *best_pattern, int32_t capacity); /** * @brief Gets a unique skeleton from a given pattern. For example, both "MMM-dd" and "dd/MMM" produce the skeleton "MMMdd". @@ -298,7 +298,7 @@ int32_t i18n_udatepg_get_best_pattern_with_options ( i18n_udatepg_h dtpg, const * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_udatepg_get_skeleton ( i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t length, i18n_uchar *skeleton, int32_t capacity ); +int32_t i18n_udatepg_get_skeleton(i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t length, i18n_uchar *skeleton, int32_t capacity); /** * @brief Gets a unique base skeleton from a given pattern. @@ -325,7 +325,7 @@ int32_t i18n_udatepg_get_skeleton ( i18n_udatepg_h dtpg, const i18n_uchar *patte * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_udatepg_get_base_skeleton ( i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t length, i18n_uchar *base_skeleton, int32_t capacity ); +int32_t i18n_udatepg_get_base_skeleton(i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t length, i18n_uchar *base_skeleton, int32_t capacity); /** * @brief Adds a pattern to the generator. @@ -353,7 +353,7 @@ int32_t i18n_udatepg_get_base_skeleton ( i18n_udatepg_h dtpg, const i18n_uchar * * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_udatepg_add_pattern ( i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t pattern_length, i18n_ubool override, i18n_uchar *conflicting_pattern, int32_t capacity, i18n_udatepg_date_time_pattern_conflict_e * conflict_status ); +int32_t i18n_udatepg_add_pattern(i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t pattern_length, i18n_ubool override, i18n_uchar *conflicting_pattern, int32_t capacity, i18n_udatepg_date_time_pattern_conflict_e * conflict_status); /** * @brief An append_item_format is a pattern used to append a field if there is no good match. @@ -379,7 +379,7 @@ int32_t i18n_udatepg_add_pattern ( i18n_udatepg_h dtpg, const i18n_uchar *patte * * @see i18n_udatepg_get_append_item_format() */ -int i18n_udatepg_set_append_item_format ( i18n_udatepg_h dtpg, i18n_udatepg_date_time_pattern_field_e field, const i18n_uchar *value, int32_t length ); +int i18n_udatepg_set_append_item_format(i18n_udatepg_h dtpg, i18n_udatepg_date_time_pattern_field_e field, const i18n_uchar *value, int32_t length); /** * @brief Getter corresponding to i18n_udatepg_set_append_item_format(). @@ -399,7 +399,7 @@ int i18n_udatepg_set_append_item_format ( i18n_udatepg_h dtpg, i18n_udatepg_date * * @see i18n_udatepg_set_append_item_format() */ -const i18n_uchar *i18n_udatepg_get_append_item_format ( const i18n_udatepg_h dtpg, i18n_udatepg_date_time_pattern_field_e field, int32_t *pattern_length ); +const i18n_uchar *i18n_udatepg_get_append_item_format(const i18n_udatepg_h dtpg, i18n_udatepg_date_time_pattern_field_e field, int32_t *pattern_length); /** * @brief Sets the name of field, e.g. "era" in English for ERA. @@ -418,8 +418,8 @@ const i18n_uchar *i18n_udatepg_get_append_item_format ( const i18n_udatepg_h dtp * * @see i18n_udatepg_get_append_item_name() */ -int i18n_udatepg_set_append_item_name ( i18n_udatepg_h dtpg, i18n_udatepg_date_time_pattern_field_e field, const i18n_uchar *value, - int32_t length ); +int i18n_udatepg_set_append_item_name(i18n_udatepg_h dtpg, i18n_udatepg_date_time_pattern_field_e field, const i18n_uchar *value, + int32_t length); /** * @brief Getter corresponding to i18n_udatepg_set_append_item_name(). @@ -439,8 +439,8 @@ int i18n_udatepg_set_append_item_name ( i18n_udatepg_h dtpg, i18n_udatepg_date_t * * @see i18n_udatepg_set_append_item_name() */ -const i18n_uchar *i18n_udatepg_get_append_item_name ( const i18n_udatepg_h dtpg, i18n_udatepg_date_time_pattern_field_e field, - int32_t *pattern_length ); +const i18n_uchar *i18n_udatepg_get_append_item_name(const i18n_udatepg_h dtpg, i18n_udatepg_date_time_pattern_field_e field, + int32_t *pattern_length); /** * @brief The date time format is a message format pattern used to compose date and time patterns. @@ -464,7 +464,7 @@ const i18n_uchar *i18n_udatepg_get_append_item_name ( const i18n_udatepg_h dtpg, * * @see i18n_udatepg_get_date_time_format() */ -int i18n_udatepg_set_date_time_format ( const i18n_udatepg_h dtpg, const i18n_uchar *date_time_format, int32_t length ); +int i18n_udatepg_set_date_time_format(const i18n_udatepg_h dtpg, const i18n_uchar *date_time_format, int32_t length); /** * @brief Getter corresponding to i18n_udatepg_set_date_time_format(). @@ -482,7 +482,7 @@ int i18n_udatepg_set_date_time_format ( const i18n_udatepg_h dtpg, const i18n_uc * * @see i18n_udatepg_set_date_time_format() */ -const i18n_uchar *i18n_udatepg_get_date_time_format ( const i18n_udatepg_h dtpg, int32_t *pattern_length ); +const i18n_uchar *i18n_udatepg_get_date_time_format(const i18n_udatepg_h dtpg, int32_t *pattern_length); /** * @brief The decimal value is used in formatting fractions of seconds. @@ -502,7 +502,7 @@ const i18n_uchar *i18n_udatepg_get_date_time_format ( const i18n_udatepg_h dtpg, * * @see i18n_udatepg_get_decimal() */ -int i18n_udatepg_set_decimal ( i18n_udatepg_h dtpg, const i18n_uchar *decimal, int32_t length ); +int i18n_udatepg_set_decimal(i18n_udatepg_h dtpg, const i18n_uchar *decimal, int32_t length); /** * @brief Getter corresponding to i18n_udatepg_set_decimal(). @@ -520,7 +520,7 @@ int i18n_udatepg_set_decimal ( i18n_udatepg_h dtpg, const i18n_uchar *decimal, i * * @see i18n_udatepg_set_decimal() */ -const i18n_uchar *i18n_udatepg_get_decimal ( const i18n_udatepg_h dtpg, int32_t *pattern_length ); +const i18n_uchar *i18n_udatepg_get_decimal(const i18n_udatepg_h dtpg, int32_t *pattern_length); /** * @brief Adjusts the field types (width and subtype) of a @a pattern to match what is in a @a skeleton. @@ -548,8 +548,8 @@ const i18n_uchar *i18n_udatepg_get_decimal ( const i18n_udatepg_h dtpg, int32_t * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_udatepg_replace_field_types ( i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t pattern_length, - const i18n_uchar *skeleton, int32_t skeleton_length, i18n_uchar *dest, int32_t dest_capacity ); +int32_t i18n_udatepg_replace_field_types(i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t pattern_length, + const i18n_uchar *skeleton, int32_t skeleton_length, i18n_uchar *dest, int32_t dest_capacity); /** * @brief Adjusts the field types (width and subtype) of a pattern to match what is in a @a skeleton. @@ -581,9 +581,9 @@ int32_t i18n_udatepg_replace_field_types ( i18n_udatepg_h dtpg, const i18n_uchar * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_udatepg_replace_field_types_with_options ( i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t pattern_length, +int32_t i18n_udatepg_replace_field_types_with_options(i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t pattern_length, const i18n_uchar *skeleton, int32_t skeleton_length, i18n_udatepg_date_time_pattern_match_options_e options, - i18n_uchar *dest, int32_t dest_capacity ); + i18n_uchar *dest, int32_t dest_capacity); /** * @brief Creates an #i18n_uenumeration_h for list of all the skeletons in canonical form. @@ -597,7 +597,7 @@ int32_t i18n_udatepg_replace_field_types_with_options ( i18n_udatepg_h dtpg, con * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udatepg_skeletons_create ( const i18n_udatepg_h dtpg, i18n_uenumeration_h *enumeration ); +int i18n_udatepg_skeletons_create(const i18n_udatepg_h dtpg, i18n_uenumeration_h *enumeration); /** * @brief Creates an #i18n_uenumeration_h for list of all the base skeletons in canonical form. @@ -610,7 +610,7 @@ int i18n_udatepg_skeletons_create ( const i18n_udatepg_h dtpg, i18n_uenumeration * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udatepg_base_skeletons_create ( const i18n_udatepg_h dtpg, i18n_uenumeration_h *enumeration ); +int i18n_udatepg_base_skeletons_create(const i18n_udatepg_h dtpg, i18n_uenumeration_h *enumeration); /** * @brief Gets the pattern corresponding to a given skeleton. @@ -628,7 +628,7 @@ int i18n_udatepg_base_skeletons_create ( const i18n_udatepg_h dtpg, i18n_uenumer * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -const i18n_uchar *i18n_udatepg_get_pattern_for_skeleton ( const i18n_udatepg_h dtpg, const i18n_uchar *skeleton, int32_t skeleton_length, int32_t *pattern_length ); +const i18n_uchar *i18n_udatepg_get_pattern_for_skeleton(const i18n_udatepg_h dtpg, const i18n_uchar *skeleton, int32_t skeleton_length, int32_t *pattern_length); #ifdef __cplusplus diff --git a/src/include/mobile/utils_i18n_uenumeration.h b/src/include/mobile/utils_i18n_uenumeration.h index bbfe620..543945d 100755 --- a/src/include/mobile/utils_i18n_uenumeration.h +++ b/src/include/mobile/utils_i18n_uenumeration.h @@ -61,7 +61,7 @@ extern "C" { * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uenumeration_destroy ( i18n_uenumeration_h enumeration ); +int i18n_uenumeration_destroy(i18n_uenumeration_h enumeration); /** * @brief Returns the number of elements that the iterator traverses. @@ -79,7 +79,7 @@ int i18n_uenumeration_destroy ( i18n_uenumeration_h enumeration ); * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @exception #I18N_ERROR_ENUM_OUT_OF_SYNC The iterator is out of sync */ -int32_t i18n_uenumeration_count ( i18n_uenumeration_h enumeration ); +int32_t i18n_uenumeration_count(i18n_uenumeration_h enumeration); /** * @brief Returns the next element in the iterator's list. @@ -102,7 +102,7 @@ int32_t i18n_uenumeration_count ( i18n_uenumeration_h enumeration ); * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @exception #I18N_ERROR_ENUM_OUT_OF_SYNC The iterator is out of sync */ -const i18n_uchar *i18n_uenumeration_unext ( i18n_uenumeration_h enumeration, int32_t *result_length ); +const i18n_uchar *i18n_uenumeration_unext(i18n_uenumeration_h enumeration, int32_t *result_length); /** * @brief Returns the next element in the iterator's list. @@ -128,7 +128,7 @@ const i18n_uchar *i18n_uenumeration_unext ( i18n_uenumeration_h enumeration, int * @exception #I18N_ERROR_INVARIANT_CONVERSION The underlying native string is i18n_uchar* and conversion to char* with the invariant converter fails. * This error pertains only to current string, so iteration might be able to continue successfully. */ -const char *i18n_uenumeration_next ( i18n_uenumeration_h enumeration, int32_t *result_length ); +const char *i18n_uenumeration_next(i18n_uenumeration_h enumeration, int32_t *result_length); /** * @brief Resets the iterator to the current list of service IDs. @@ -142,7 +142,7 @@ const char *i18n_uenumeration_next ( i18n_uenumeration_h enumeration, int32_t *r * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uenumeration_reset ( i18n_uenumeration_h enumeration ); +int i18n_uenumeration_reset(i18n_uenumeration_h enumeration); /** * @brief Given an array of const i18n_uchar* strings, return an #i18n_uenumeration_h. @@ -161,7 +161,7 @@ int i18n_uenumeration_reset ( i18n_uenumeration_h enumeration ); * * @see i18n_uenumeration_destroy() */ -int i18n_uenumeration_uchar_strings_enumeration_create(const i18n_uchar *const strings[], int32_t count, i18n_uenumeration_h *enumeration ); +int i18n_uenumeration_uchar_strings_enumeration_create(const i18n_uchar *const strings[], int32_t count, i18n_uenumeration_h *enumeration); /** * @brief Given an array of const char* strings (invariant chars only), return an #i18n_uenumeration_h. @@ -180,7 +180,7 @@ int i18n_uenumeration_uchar_strings_enumeration_create(const i18n_uchar *const s * * @see i18n_uenumeration_destroy() */ -int i18n_uenumeration_char_strings_enumeration_create(const char* const strings[], int32_t count, i18n_uenumeration_h *enumeration ); +int i18n_uenumeration_char_strings_enumeration_create(const char* const strings[], int32_t count, i18n_uenumeration_h *enumeration); /** * @} diff --git a/src/include/mobile/utils_i18n_ulocale.h b/src/include/mobile/utils_i18n_ulocale.h index a180152..18af395 100644 --- a/src/include/mobile/utils_i18n_ulocale.h +++ b/src/include/mobile/utils_i18n_ulocale.h @@ -61,21 +61,21 @@ // Gets default locale ret = i18n_ulocale_get_default(&locale); - if ( ret != I18N_ERROR_NONE ) { + if (ret != I18N_ERROR_NONE) { dlog_print(DLOG_ERROR, LOG_TAG, "i18n_ulocale_get_default() failed!!! \n"); } dlog_print(DLOG_INFO, LOG_TAG, "default locale : %s\n", locale); // default locale : en_GB.UTF-8 // Gets the language code for the specified locale ret = i18n_ulocale_get_language(locale, language, language_capacity, &buf_size_language); - if ( ret != I18N_ERROR_NONE ) { + if (ret != I18N_ERROR_NONE) { dlog_print(DLOG_ERROR, LOG_TAG, "i18n_ulocale_get_language() failed!!! \n"); } dlog_print(DLOG_INFO, LOG_TAG, "language code for the locale : %s\n", language); // language code for the locale : en // Gets the full name suitable for display for the specified locale ret = i18n_ulocale_get_display_name(locale, in_locale_id, result_w, 64, &buf_size_display_name); - if ( ret != I18N_ERROR_NONE ) { + if (ret != I18N_ERROR_NONE) { dlog_print(DLOG_ERROR, LOG_TAG, "i18n_ulocale_get_display_name() failed!!! \n"); } i18n_ustring_copy_au(result, result_w); @@ -120,7 +120,7 @@ extern "C" { * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ulocale_get_default ( const char **locale ); +int i18n_ulocale_get_default(const char **locale); /** * @brief Sets I18N's default locale. @@ -138,7 +138,7 @@ int i18n_ulocale_get_default ( const char **locale ); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ulocale_set_default ( const char *locale_id ); +int i18n_ulocale_set_default(const char *locale_id); /** * @brief Gets the language code for the specified locale. @@ -154,7 +154,7 @@ int i18n_ulocale_set_default ( const char *locale_id ); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ulocale_get_language ( const char *locale_id, char *language, int32_t language_capacity, int32_t *buf_size_language ); +int i18n_ulocale_get_language(const char *locale_id, char *language, int32_t language_capacity, int32_t *buf_size_language); /** * @brief Gets the country code for the specified locale. @@ -168,7 +168,7 @@ int i18n_ulocale_get_language ( const char *locale_id, char *language, int32_t l * @return The actual buffer size needed for the country code.\n * If it's greater than @a country_capacity, the returned country code will be truncated. */ -int32_t i18n_ulocale_get_country ( const char *locale_id, char *country, int32_t country_capacity, int *error ); +int32_t i18n_ulocale_get_country(const char *locale_id, char *country, int32_t country_capacity, int *error); /** * @brief Gets the full name suitable for display for the specified locale. @@ -186,7 +186,7 @@ int32_t i18n_ulocale_get_country ( const char *locale_id, char *country, int32_t * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ulocale_get_display_name ( const char *locale_id, const char *in_locale_id, i18n_uchar *result, int32_t max_result_size, int32_t *buf_size_display_name ); +int i18n_ulocale_get_display_name(const char *locale_id, const char *in_locale_id, i18n_uchar *result, int32_t max_result_size, int32_t *buf_size_display_name); /** * @brief Gets the specified locale from a list of all available locales. @@ -204,7 +204,7 @@ int i18n_ulocale_get_display_name ( const char *locale_id, const char *in_locale * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -const char* i18n_ulocale_get_available ( int32_t n ); +const char* i18n_ulocale_get_available(int32_t n); /** * @brief Gets the size of the all available locale list. @@ -215,7 +215,7 @@ const char* i18n_ulocale_get_available ( int32_t n ); * @return The size of the locale list * @exception #I18N_ERROR_NONE Success */ -int32_t i18n_ulocale_count_available ( void ); +int32_t i18n_ulocale_count_available(void); // Newly Added APIs @@ -237,7 +237,7 @@ int32_t i18n_ulocale_count_available ( void ); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_get_script ( const char *locale_id, char *script, int32_t script_capacity ); +int32_t i18n_ulocale_get_script(const char *locale_id, char *script, int32_t script_capacity); /** * @brief Gets the variant code for the specified locale. @@ -257,7 +257,7 @@ int32_t i18n_ulocale_get_script ( const char *locale_id, char *script, int32_t s * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_get_variant ( const char *locale_id, char *variant, int32_t variant_capacity ); +int32_t i18n_ulocale_get_variant(const char *locale_id, char *variant, int32_t variant_capacity); /** * @brief Gets the full name for the specified locale. @@ -279,7 +279,7 @@ int32_t i18n_ulocale_get_variant ( const char *locale_id, char *variant, int32_t * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_BUFFER_OVERFLOW A result would not fit in the supplied buffer */ -int32_t i18n_ulocale_get_name ( const char *locale_id, char *name, int32_t name_capacity ); +int32_t i18n_ulocale_get_name(const char *locale_id, char *name, int32_t name_capacity); /** * @brief Gets the full name for the specified locale. @@ -301,7 +301,7 @@ int32_t i18n_ulocale_get_name ( const char *locale_id, char *name, int32_t name_ * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_BUFFER_OVERFLOW A result would not fit in the supplied buffer */ -int32_t i18n_ulocale_canonicalize ( const char *locale_id, char *name, int32_t name_capacity ); +int32_t i18n_ulocale_canonicalize(const char *locale_id, char *name, int32_t name_capacity); /** * @brief Gets the ISO language code for the specified locale. @@ -315,7 +315,7 @@ int32_t i18n_ulocale_canonicalize ( const char *locale_id, char *name, int32_t n * * @exception #I18N_ERROR_NONE Successful */ -const char * i18n_ulocale_get_iso3_language ( const char *locale_id ); +const char * i18n_ulocale_get_iso3_language(const char *locale_id); /** * @brief Gets the ISO country code for the specified locale. @@ -329,7 +329,7 @@ const char * i18n_ulocale_get_iso3_language ( const char *locale_id ); * * @exception #I18N_ERROR_NONE Successful */ -const char * i18n_ulocale_get_iso3_country ( const char *locale_id ); +const char * i18n_ulocale_get_iso3_country(const char *locale_id); /** * @brief Gets the Win32 LCID value for the specified locale. @@ -344,7 +344,7 @@ const char * i18n_ulocale_get_iso3_country ( const char *locale_id ); * * @exception #I18N_ERROR_NONE Successful */ -uint32_t i18n_ulocale_get_lcid ( const char *locale_id ); +uint32_t i18n_ulocale_get_lcid(const char *locale_id); /** * @brief Gets the language name suitable for display for the specified locale. @@ -366,7 +366,7 @@ uint32_t i18n_ulocale_get_lcid ( const char *locale_id ); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_get_display_language ( const char *locale, const char *display_locale, i18n_uchar *language, int32_t language_capacity ); +int32_t i18n_ulocale_get_display_language(const char *locale, const char *display_locale, i18n_uchar *language, int32_t language_capacity); /** * @brief Gets the script name suitable for display for the specified locale. @@ -387,7 +387,7 @@ int32_t i18n_ulocale_get_display_language ( const char *locale, const char *disp * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_get_display_script ( const char *locale, const char *display_locale, i18n_uchar *script, int32_t script_capacity ); +int32_t i18n_ulocale_get_display_script(const char *locale, const char *display_locale, i18n_uchar *script, int32_t script_capacity); /** * @brief Gets the country name suitable for display for the specified locale. @@ -408,7 +408,7 @@ int32_t i18n_ulocale_get_display_script ( const char *locale, const char *displa * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_get_display_country ( const char *locale, const char *display_locale, i18n_uchar *country, int32_t country_capacity ); +int32_t i18n_ulocale_get_display_country(const char *locale, const char *display_locale, i18n_uchar *country, int32_t country_capacity); /** * @brief Gets the variant name suitable for display for the specified locale. @@ -429,7 +429,7 @@ int32_t i18n_ulocale_get_display_country ( const char *locale, const char *displ * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_get_display_variant ( const char *locale, const char *display_locale, i18n_uchar *variant, int32_t variant_capacity ); +int32_t i18n_ulocale_get_display_variant(const char *locale, const char *display_locale, i18n_uchar *variant, int32_t variant_capacity); /** * @brief Gets the keyword name suitable for display for the specified locale. @@ -481,7 +481,7 @@ int32_t i18n_ulocale_get_display_variant ( const char *locale, const char *displ * @see i18n_uenumeration_next() * @see i18n_uenumeration_destroy() */ -int32_t i18n_ulocale_get_display_keyword ( const char *keyword, const char *display_locale, i18n_uchar *dest, int32_t dest_capacity ); +int32_t i18n_ulocale_get_display_keyword(const char *keyword, const char *display_locale, i18n_uchar *dest, int32_t dest_capacity); /** * @brief Gets the value of the keyword suitable for display for the specified locale. @@ -506,7 +506,7 @@ int32_t i18n_ulocale_get_display_keyword ( const char *keyword, const char *disp * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_get_display_keyword_value ( const char *locale, const char *keyword, const char *display_locale, i18n_uchar *dest, int32_t dest_capacity ); +int32_t i18n_ulocale_get_display_keyword_value(const char *locale, const char *keyword, const char *display_locale, i18n_uchar *dest, int32_t dest_capacity); /** * @brief Gets a list of all available 2-letter language codes defined in ISO 639, @@ -523,7 +523,7 @@ int32_t i18n_ulocale_get_display_keyword_value ( const char *locale, const char * * @exception #I18N_ERROR_NONE Successful */ -const char * const *i18n_ulocale_get_iso_languages ( void ); +const char * const *i18n_ulocale_get_iso_languages(void); /** * @@ -539,7 +539,7 @@ const char * const *i18n_ulocale_get_iso_languages ( void ); * * @exception #I18N_ERROR_NONE Successful */ -const char * const *i18n_ulocale_get_iso_countries ( void ); +const char * const *i18n_ulocale_get_iso_countries(void); /** * @brief Truncates the locale ID string to get the parent locale ID. @@ -566,7 +566,7 @@ const char * const *i18n_ulocale_get_iso_countries ( void ); * in the @a locale_id from index 0 to the index of the last occurrence of * the underscore ("_") symbol. */ -int32_t i18n_ulocale_get_parent ( const char *locale_id, char *parent, int32_t parent_capacity ); +int32_t i18n_ulocale_get_parent(const char *locale_id, char *parent, int32_t parent_capacity); /** * @brief Gets the full name for the specified locale, like i18n_ulocale_get_name(), but without keywords. @@ -591,7 +591,7 @@ int32_t i18n_ulocale_get_parent ( const char *locale_id, char *parent, int32_t p * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_BUFFER_OVERFLOW A result would not fit in the supplied buffer */ -int32_t i18n_ulocale_get_base_name ( const char *locale_id, char *name, int32_t name_capacity ); +int32_t i18n_ulocale_get_base_name(const char *locale_id, char *name, int32_t name_capacity); /** * @brief Gets an enumeration of keywords for the specified locale. @@ -606,7 +606,7 @@ int32_t i18n_ulocale_get_base_name ( const char *locale_id, char *name, int32_t * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ulocale_keywords_create ( const char *locale_id, i18n_uenumeration_h *enumeration ); +int i18n_ulocale_keywords_create(const char *locale_id, i18n_uenumeration_h *enumeration); /** * @brief Gets the value for a keyword. @@ -626,7 +626,7 @@ int i18n_ulocale_keywords_create ( const char *locale_id, i18n_uenumeration_h *e * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_get_keyword_value ( const char *locale_id, const char *keyword_name, char *buffer, int32_t buffer_capacity ); +int32_t i18n_ulocale_get_keyword_value(const char *locale_id, const char *keyword_name, char *buffer, int32_t buffer_capacity); /** * @brief Sets or removes the value of the specified keyword. @@ -704,7 +704,7 @@ int32_t i18n_ulocale_get_keyword_value ( const char *locale_id, const char *keyw * * @see i18n_ulocale_get_keyword_value() */ -int32_t i18n_ulocale_set_keyword_value ( const char *keyword_name, const char *keyword_value, char *buffer, int32_t buffer_capacity ); +int32_t i18n_ulocale_set_keyword_value(const char *keyword_name, const char *keyword_value, char *buffer, int32_t buffer_capacity); /** * @brief Gets the layout character orientation for the specified locale. @@ -718,7 +718,7 @@ int32_t i18n_ulocale_set_keyword_value ( const char *keyword_name, const char *k * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ulocale_get_character_orientation ( const char *locale_id, i18n_ulocale_layout_type_e *layout_type ); +int i18n_ulocale_get_character_orientation(const char *locale_id, i18n_ulocale_layout_type_e *layout_type); /** * @brief Gets the layout line orientation for the specified locale. @@ -732,7 +732,7 @@ int i18n_ulocale_get_character_orientation ( const char *locale_id, i18n_ulocale * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ulocale_get_line_orientation ( const char *locale_id, i18n_ulocale_layout_type_e *layout_type ); +int i18n_ulocale_get_line_orientation(const char *locale_id, i18n_ulocale_layout_type_e *layout_type); /** * @brief Gets the I18N locale ID for the specified Win32 LCID value. @@ -751,7 +751,7 @@ int i18n_ulocale_get_line_orientation ( const char *locale_id, i18n_ulocale_layo * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_get_locale_for_lcid ( uint32_t host_id, char *locale, int32_t locale_capacity ); +int32_t i18n_ulocale_get_locale_for_lcid(uint32_t host_id, char *locale, int32_t locale_capacity); /** * @brief Adds the likely subtags for a provided locale ID, per the algorithm described @@ -785,7 +785,7 @@ int32_t i18n_ulocale_get_locale_for_lcid ( uint32_t host_id, char *locale, int32 * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_add_likely_subtags ( const char *locale_id, char *maximized_locale_id, int32_t maximized_locale_id_capacity ); +int32_t i18n_ulocale_add_likely_subtags(const char *locale_id, char *maximized_locale_id, int32_t maximized_locale_id_capacity); /** * @brief Minimizes the subtags for a provided locale ID, per the algorithm described @@ -818,7 +818,7 @@ int32_t i18n_ulocale_add_likely_subtags ( const char *locale_id, char *maximized * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_minimize_subtags ( const char *locale_id, char *minimized_locale_id, int32_t minimized_locale_id_capacity ); +int32_t i18n_ulocale_minimize_subtags(const char *locale_id, char *minimized_locale_id, int32_t minimized_locale_id_capacity); /** * @brief Returns a locale ID for the specified BCP47 language tag string. @@ -849,7 +849,7 @@ int32_t i18n_ulocale_minimize_subtags ( const char *locale_id, char *minimized_l * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_for_language_tag ( const char *langtag, char *locale_id, int32_t locale_id_capacity, int32_t *parsed_length ); +int32_t i18n_ulocale_for_language_tag(const char *langtag, char *locale_id, int32_t locale_id_capacity, int32_t *parsed_length); /** * @brief Returns a well-formed language tag for this locale ID. @@ -877,7 +877,7 @@ int32_t i18n_ulocale_for_language_tag ( const char *langtag, char *locale_id, in * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_to_language_tag ( const char *locale_id, char *langtag, int32_t langtag_capacity, i18n_ubool strict ); +int32_t i18n_ulocale_to_language_tag(const char *locale_id, char *langtag, int32_t langtag_capacity, i18n_ubool strict); #ifdef __cplusplus } diff --git a/src/include/mobile/utils_i18n_unormalization.h b/src/include/mobile/utils_i18n_unormalization.h index 76ecbc0..15bad5d 100755 --- a/src/include/mobile/utils_i18n_unormalization.h +++ b/src/include/mobile/utils_i18n_unormalization.h @@ -81,7 +81,7 @@ extern "C" { * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unormalization_get_instance (const char *package_name, const char *name, i18n_unormalization_mode_e mode, +int i18n_unormalization_get_instance(const char *package_name, const char *name, i18n_unormalization_mode_e mode, i18n_unormalizer_h *normalizer); /** @@ -100,7 +100,7 @@ int i18n_unormalization_get_instance (const char *package_name, const char *name * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unormalization_normalize (i18n_unormalizer_h normalizer, const i18n_uchar *src, int32_t len, i18n_uchar *dest, int32_t capacity, int32_t *len_deststr); +int i18n_unormalization_normalize(i18n_unormalizer_h normalizer, const i18n_uchar *src, int32_t len, i18n_uchar *dest, int32_t capacity, int32_t *len_deststr); #ifdef __cplusplus } diff --git a/src/include/mobile/utils_i18n_unumber.h b/src/include/mobile/utils_i18n_unumber.h index f1e7cf3..4a4e2ac 100644 --- a/src/include/mobile/utils_i18n_unumber.h +++ b/src/include/mobile/utils_i18n_unumber.h @@ -106,8 +106,8 @@ extern "C" { * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unumber_create ( i18n_unumber_format_style_e style, const i18n_uchar *pattern, int32_t pattern_len, const char *locale, - i18n_uparse_error_s *parse_err, i18n_unumber_format_h *num_format ); +int i18n_unumber_create(i18n_unumber_format_style_e style, const i18n_uchar *pattern, int32_t pattern_len, const char *locale, + i18n_uparse_error_s *parse_err, i18n_unumber_format_h *num_format); /** * @brief Destroys an #i18n_unumber_format_h. @@ -119,7 +119,7 @@ int i18n_unumber_create ( i18n_unumber_format_style_e style, const i18n_uchar *p * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unumber_destroy ( i18n_unumber_format_h fmt ); +int i18n_unumber_destroy(i18n_unumber_format_h fmt); /** * @brief Gets a symbol associated with an #i18n_unumber_format_h. @@ -138,7 +138,7 @@ int i18n_unumber_destroy ( i18n_unumber_format_h fmt ); * @retval #I18N_ERROR_NONE Successful. * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unumber_get_symbol ( const i18n_unumber_format_h fmt, i18n_unumber_format_symbol_e symbol, i18n_uchar *buffer, int32_t size, int32_t *len_symbol ); +int i18n_unumber_get_symbol(const i18n_unumber_format_h fmt, i18n_unumber_format_symbol_e symbol, i18n_uchar *buffer, int32_t size, int32_t *len_symbol); // Newly Added APIs @@ -156,7 +156,7 @@ int i18n_unumber_get_symbol ( const i18n_unumber_format_h fmt, i18n_unumber_form * @retval #I18N_ERROR_NONE Successful. * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unumber_clone (const i18n_unumber_format_h fmt, i18n_unumber_format_h *fmt_clone); +int i18n_unumber_clone(const i18n_unumber_format_h fmt, i18n_unumber_format_h *fmt_clone); /** * @brief Formats an integer using a i18n_unumber_format_h. @@ -177,7 +177,7 @@ int i18n_unumber_clone (const i18n_unumber_format_h fmt, i18n_unumber_format_h * * * @return The total buffer size needed; if greater than result_length, the output was truncated. */ -int32_t i18n_unumber_format (const i18n_unumber_format_h fmt, int32_t number, i18n_uchar *result, int32_t result_length, i18n_ufield_position_s *pos, i18n_error_code_e *status); +int32_t i18n_unumber_format(const i18n_unumber_format_h fmt, int32_t number, i18n_uchar *result, int32_t result_length, i18n_ufield_position_s *pos, i18n_error_code_e *status); /** * @brief Formats an int64 using an #i18n_unumber_format_h. @@ -204,7 +204,7 @@ int32_t i18n_unumber_format (const i18n_unumber_format_h fmt, int32_t number, i1 * @exception #I18N_WARNING_STRING_NOT_TERMINATED If the formatted number fits into @a result but cannot be NULL-terminated (length == result_length) * @exception #I18N_ERROR_BUFFER_OVERFLOW If the formatted number doesn't fit into the @a result buffer */ -int32_t i18n_unumber_format_int64 (const i18n_unumber_format_h fmt, int64_t number, i18n_uchar *result, int32_t result_length, i18n_ufield_position_h pos); +int32_t i18n_unumber_format_int64(const i18n_unumber_format_h fmt, int64_t number, i18n_uchar *result, int32_t result_length, i18n_ufield_position_h pos); /** * @brief Formats a double using an #i18n_unumber_format_h. @@ -232,7 +232,7 @@ int32_t i18n_unumber_format_int64 (const i18n_unumber_format_h fmt, int64_t numb * @exception #I18N_WARNING_STRING_NOT_TERMINATED If the formatted number fits into @a result but cannot be NULL-terminated (length == result_length) * @exception #I18N_ERROR_BUFFER_OVERFLOW If the formatted number doesn't fit into the @a result buffer */ -int32_t i18n_unumber_format_double (const i18n_unumber_format_h fmt, double number, i18n_uchar *result, int32_t result_length, i18n_ufield_position_h pos); +int32_t i18n_unumber_format_double(const i18n_unumber_format_h fmt, double number, i18n_uchar *result, int32_t result_length, i18n_ufield_position_h pos); /** * @brief Formats a decimal number using an #i18n_unumber_format_h. @@ -263,7 +263,7 @@ int32_t i18n_unumber_format_double (const i18n_unumber_format_h fmt, double numb * @exception #I18N_WARNING_STRING_NOT_TERMINATED If the formatted number fits into @a result but cannot be NULL-terminated (length == result_length) * @exception #I18N_ERROR_BUFFER_OVERFLOW If the formatted number doesn't fit into the @a result buffer */ -int32_t i18n_unumber_format_decimal (const i18n_unumber_format_h fmt, const char *number, int32_t length, i18n_uchar *result, int32_t result_length, i18n_ufield_position_h pos); +int32_t i18n_unumber_format_decimal(const i18n_unumber_format_h fmt, const char *number, int32_t length, i18n_uchar *result, int32_t result_length, i18n_ufield_position_h pos); /** * @brief Formats a double currency amount using an #i18n_unumber_format_h. @@ -293,7 +293,7 @@ int32_t i18n_unumber_format_decimal (const i18n_unumber_format_h fmt, const char * @exception #I18N_WARNING_STRING_NOT_TERMINATED If the formatted number fits into @a result but cannot be NULL-terminated (length == result_length) * @exception #I18N_ERROR_BUFFER_OVERFLOW If the formatted number doesn't fit into the @a result buffer */ -int32_t i18n_unumber_format_double_currency (const i18n_unumber_format_h fmt, double number, i18n_uchar *currency, i18n_uchar *result, int32_t result_length, i18n_ufield_position_h pos); +int32_t i18n_unumber_format_double_currency(const i18n_unumber_format_h fmt, double number, i18n_uchar *currency, i18n_uchar *result, int32_t result_length, i18n_ufield_position_h pos); /** * @brief Parses a string into an integer using an #i18n_unumber_format_h. @@ -313,7 +313,7 @@ int32_t i18n_unumber_format_double_currency (const i18n_unumber_format_h fmt, do * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_unumber_parse (const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos); +int32_t i18n_unumber_parse(const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos); /** * @brief Parses a string into an int64 using an #i18n_unumber_format_h. @@ -333,7 +333,7 @@ int32_t i18n_unumber_parse (const i18n_unumber_format_h fmt, const i18n_uchar *t * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int64_t i18n_unumber_parse_int64 (const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos); +int64_t i18n_unumber_parse_int64(const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos); /** * @brief Parses a string into a double using an #i18n_unumber_format_h. @@ -353,7 +353,7 @@ int64_t i18n_unumber_parse_int64 (const i18n_unumber_format_h fmt, const i18n_uc * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -double i18n_unumber_parse_double (const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos); +double i18n_unumber_parse_double(const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos); /** * @brief Parses a number from a string into an unformatted numeric string using an #i18n_unumber_format_h. @@ -379,7 +379,7 @@ double i18n_unumber_parse_double (const i18n_unumber_format_h fmt, const i18n_uc * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_unumber_parse_decimal (const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos, char *out_buf, int32_t out_buf_length); +int32_t i18n_unumber_parse_decimal(const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos, char *out_buf, int32_t out_buf_length); /** * @brief Parses a string into a double and a currency using an #i18n_unumber_format_h. @@ -403,7 +403,7 @@ int32_t i18n_unumber_parse_decimal (const i18n_unumber_format_h fmt, const i18n_ * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -double i18n_unumber_parse_double_currency (const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos, i18n_uchar *currency); +double i18n_unumber_parse_double_currency(const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos, i18n_uchar *currency); /** * @brief Sets the pattern used by an #i18n_unumber_format_h. @@ -422,7 +422,7 @@ double i18n_unumber_parse_double_currency (const i18n_unumber_format_h fmt, cons * @retval #I18N_ERROR_NONE Successful. * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unumber_apply_pattern (i18n_unumber_format_h format, i18n_ubool localized, const i18n_uchar *pattern, int32_t pattern_length, i18n_uparse_error_s* parse_error); +int i18n_unumber_apply_pattern(i18n_unumber_format_h format, i18n_ubool localized, const i18n_uchar *pattern, int32_t pattern_length, i18n_uparse_error_s* parse_error); /** * @brief Gets a locale for which decimal formatting patterns are available. @@ -438,7 +438,7 @@ int i18n_unumber_apply_pattern (i18n_unumber_format_h format, i18n_ubool localiz * * @exception #I18N_ERROR_NONE Successful */ -const char *i18n_unumber_get_available (int32_t locale_index); +const char *i18n_unumber_get_available(int32_t locale_index); /** * @brief Determines how many locales have decimal formatting patterns available. @@ -452,7 +452,7 @@ const char *i18n_unumber_get_available (int32_t locale_index); * * @exception #I18N_ERROR_NONE Successful */ -int32_t i18n_unumber_count_available (void); +int32_t i18n_unumber_count_available(void); /** * @brief Gets a numeric attribute associated with an #i18n_unumber_format_h. @@ -474,7 +474,7 @@ int32_t i18n_unumber_count_available (void); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_unumber_get_attribute (const i18n_unumber_format_h fmt, i18n_unumber_format_attribute_e attr); +int32_t i18n_unumber_get_attribute(const i18n_unumber_format_h fmt, i18n_unumber_format_attribute_e attr); /** * @brief Sets a numeric attribute associated with an #i18n_unumber_format_h. @@ -499,7 +499,7 @@ int32_t i18n_unumber_get_attribute (const i18n_unumber_format_h fmt, i18n_unumbe * @retval #I18N_ERROR_NONE Successful. * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unumber_set_attribute (i18n_unumber_format_h fmt, i18n_unumber_format_attribute_e attr, int32_t new_value); +int i18n_unumber_set_attribute(i18n_unumber_format_h fmt, i18n_unumber_format_attribute_e attr, int32_t new_value); /** * @brief Gets a numeric attribute associated with an #i18n_unumber_format_h. @@ -517,7 +517,7 @@ int i18n_unumber_set_attribute (i18n_unumber_format_h fmt, i18n_unumber_format_a * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -double i18n_unumber_get_double_attribute (const i18n_unumber_format_h fmt, i18n_unumber_format_attribute_e attr); +double i18n_unumber_get_double_attribute(const i18n_unumber_format_h fmt, i18n_unumber_format_attribute_e attr); /** * @brief Sets a numeric attribute associated with an #i18n_unumber_format_h. @@ -534,7 +534,7 @@ double i18n_unumber_get_double_attribute (const i18n_unumber_format_h fmt, i18n_ * @retval #I18N_ERROR_NONE Successful. * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unumber_set_double_attribute (i18n_unumber_format_h fmt, i18n_unumber_format_attribute_e attr, double new_value); +int i18n_unumber_set_double_attribute(i18n_unumber_format_h fmt, i18n_unumber_format_attribute_e attr, double new_value); /** * @brief Gets a text attribute associated with an #i18n_unumber_format_h. @@ -557,7 +557,7 @@ int i18n_unumber_set_double_attribute (i18n_unumber_format_h fmt, i18n_unumber_f * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_unumber_get_text_attribute (const i18n_unumber_format_h fmt, i18n_unumber_format_text_attribute_e tag, i18n_uchar *result, int32_t result_length); +int32_t i18n_unumber_get_text_attribute(const i18n_unumber_format_h fmt, i18n_unumber_format_text_attribute_e tag, i18n_uchar *result, int32_t result_length); /** * @brief Sets a text attribute associated with an #i18n_unumber_format_h. @@ -577,7 +577,7 @@ int32_t i18n_unumber_get_text_attribute (const i18n_unumber_format_h fmt, i18n_u * @retval #I18N_ERROR_NONE Successful. * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unumber_set_text_attribute (const i18n_unumber_format_h fmt, i18n_unumber_format_text_attribute_e tag, const i18n_uchar *new_value, int32_t new_value_length); +int i18n_unumber_set_text_attribute(const i18n_unumber_format_h fmt, i18n_unumber_format_text_attribute_e tag, const i18n_uchar *new_value, int32_t new_value_length); /** * @brief Extracts the pattern from an #i18n_unumber_format_h. @@ -597,7 +597,7 @@ int i18n_unumber_set_text_attribute (const i18n_unumber_format_h fmt, i18n_unumb * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_unumber_to_pattern (const i18n_unumber_format_h fmt, i18n_ubool is_pattern_localized, i18n_uchar *result, int32_t result_length); +int32_t i18n_unumber_to_pattern(const i18n_unumber_format_h fmt, i18n_ubool is_pattern_localized, i18n_uchar *result, int32_t result_length); /** * @brief Sets a symbol associated with an #i18n_unumber_format_h. @@ -615,7 +615,7 @@ int32_t i18n_unumber_to_pattern (const i18n_unumber_format_h fmt, i18n_ubool is_ * @retval #I18N_ERROR_NONE Successful. * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unumber_set_symbol (i18n_unumber_format_h fmt, i18n_unumber_format_symbol_e symbol, const i18n_uchar *value, int32_t length); +int i18n_unumber_set_symbol(i18n_unumber_format_h fmt, i18n_unumber_format_symbol_e symbol, const i18n_uchar *value, int32_t length); /** * @brief Gets the locale for this number format object. @@ -632,7 +632,7 @@ int i18n_unumber_set_symbol (i18n_unumber_format_h fmt, i18n_unumber_format_symb * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -const char *i18n_unumber_get_locale_by_type (const i18n_unumber_format_h fmt, i18n_ulocale_data_locale_type_e type); +const char *i18n_unumber_get_locale_by_type(const i18n_unumber_format_h fmt, i18n_ulocale_data_locale_type_e type); #ifdef __cplusplus diff --git a/src/include/mobile/utils_i18n_usearch.h b/src/include/mobile/utils_i18n_usearch.h index a770cf6..9478569 100755 --- a/src/include/mobile/utils_i18n_usearch.h +++ b/src/include/mobile/utils_i18n_usearch.h @@ -103,7 +103,7 @@ extern "C" { * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_usearch_create ( const i18n_uchar *pattern, int32_t pattern_len, const i18n_uchar *text, int32_t text_len, const char *locale, i18n_ubreak_iterator_s *break_iter, i18n_usearch_h *search_iter ); +int i18n_usearch_create(const i18n_uchar *pattern, int32_t pattern_len, const i18n_uchar *text, int32_t text_len, const char *locale, i18n_ubreak_iterator_s *break_iter, i18n_usearch_h *search_iter); /** * @brief Creates an #i18n_usearch_h using the argument locale language rule set. @@ -126,7 +126,7 @@ int i18n_usearch_create ( const i18n_uchar *pattern, int32_t pattern_len, const * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_usearch_create_new ( const i18n_uchar *pattern, int32_t pattern_len, const i18n_uchar *text, +int i18n_usearch_create_new(const i18n_uchar *pattern, int32_t pattern_len, const i18n_uchar *text, int32_t text_len, const char *locale, i18n_ubreak_iterator_h break_iter, i18n_usearch_h *search_iter); /** @@ -139,7 +139,7 @@ int i18n_usearch_create_new ( const i18n_uchar *pattern, int32_t pattern_len, co * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_usearch_destroy ( i18n_usearch_h search_iter ); +int i18n_usearch_destroy(i18n_usearch_h search_iter); /** * @brief Returns the text that matches by the most recent call to i18n_usearch_first(), or so on. @@ -161,7 +161,7 @@ int i18n_usearch_destroy ( i18n_usearch_h search_iter ); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @retval #I18N_ERROR_BUFFER_OVERFLOW A result would not fit in the supplied buffer */ -int i18n_usearch_get_matched_text ( const i18n_usearch_h search_iter, i18n_uchar *result, int32_t result_capacity, int32_t *len_matched_text ); +int i18n_usearch_get_matched_text(const i18n_usearch_h search_iter, i18n_uchar *result, int32_t result_capacity, int32_t *len_matched_text); /** * @brief Gets the collator used for the language rules. @@ -176,7 +176,7 @@ int i18n_usearch_get_matched_text ( const i18n_usearch_h search_iter, i18n_uchar * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_usearch_get_collator ( const i18n_usearch_h search_iter, i18n_ucollator_h *collator ); +int i18n_usearch_get_collator(const i18n_usearch_h search_iter, i18n_ucollator_h *collator); /** * @brief Returns the first index at which the string text matches the search pattern. @@ -193,7 +193,7 @@ int i18n_usearch_get_collator ( const i18n_usearch_h search_iter, i18n_ucollator * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_usearch_first ( i18n_usearch_h search_iter, int32_t *index_first ); +int i18n_usearch_first(i18n_usearch_h search_iter, int32_t *index_first); #ifdef __cplusplus } diff --git a/src/include/mobile/utils_i18n_uset.h b/src/include/mobile/utils_i18n_uset.h index 6cf528e..8e40c1f 100755 --- a/src/include/mobile/utils_i18n_uset.h +++ b/src/include/mobile/utils_i18n_uset.h @@ -63,7 +63,7 @@ extern "C" { * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_uset_destroy() */ -int i18n_uset_create_empty (i18n_uset_h *set); +int i18n_uset_create_empty(i18n_uset_h *set); /** * @brief Creates an #i18n_uset_h object that contains the range of characters @@ -81,7 +81,7 @@ int i18n_uset_create_empty (i18n_uset_h *set); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_uset_destroy() */ -int i18n_uset_create (i18n_uchar32 start, i18n_uchar32 end, i18n_uset_h *set); +int i18n_uset_create(i18n_uchar32 start, i18n_uchar32 end, i18n_uset_h *set); /** * @brief Creates a set based on a given pattern. @@ -98,7 +98,7 @@ int i18n_uset_create (i18n_uchar32 start, i18n_uchar32 end, i18n_uset_h *set); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_uset_destroy() */ -int i18n_uset_create_pattern (const i18n_uchar *pattern, int32_t pattern_length, i18n_uset_h *set); +int i18n_uset_create_pattern(const i18n_uchar *pattern, int32_t pattern_length, i18n_uset_h *set); /** * @brief Creates a set based on a given pattern. @@ -117,7 +117,7 @@ int i18n_uset_create_pattern (const i18n_uchar *pattern, int32_t pattern_length, * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_uset_destroy() */ -int i18n_uset_create_pattern_options (const i18n_uchar *pattern, int32_t pattern_length, uint32_t options, i18n_uset_h *set); +int i18n_uset_create_pattern_options(const i18n_uchar *pattern, int32_t pattern_length, uint32_t options, i18n_uset_h *set); /** * @brief Disposes of the storage used by a #i18n_uset_h object. @@ -130,7 +130,7 @@ int i18n_uset_create_pattern_options (const i18n_uchar *pattern, int32_t pattern * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_destroy (i18n_uset_h set); +int i18n_uset_destroy(i18n_uset_h set); /** * @brief Returns a copy of this object. @@ -146,7 +146,7 @@ int i18n_uset_destroy (i18n_uset_h set); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_uset_clone_as_thawed() */ -int i18n_uset_clone (const i18n_uset_h set, i18n_uset_h *set_clone); +int i18n_uset_clone(const i18n_uset_h set, i18n_uset_h *set_clone); /** * @brief Determines whether the set has been frozen (made immutable) or not. @@ -164,7 +164,7 @@ int i18n_uset_clone (const i18n_uset_h set, i18n_uset_h *set_clone); * @see i18n_uset_freeze() * @see i18n_uset_clone_as_thawed() */ -i18n_ubool i18n_uset_is_frozen (const i18n_uset_h set); +i18n_ubool i18n_uset_is_frozen(const i18n_uset_h set); /** * @brief Freezes the set (make it immutable). @@ -185,7 +185,7 @@ i18n_ubool i18n_uset_is_frozen (const i18n_uset_h set); * @see i18n_uset_is_frozen() * @see i18n_uset_clone_as_thawed() */ -int i18n_uset_freeze (i18n_uset_h set); +int i18n_uset_freeze(i18n_uset_h set); /** * @brief Clones the set and make the clone mutable. @@ -202,7 +202,7 @@ int i18n_uset_freeze (i18n_uset_h set); * @see i18n_uset_is_frozen() * @see i18n_uset_clone() */ -int i18n_uset_clone_as_thawed (const i18n_uset_h set, i18n_uset_h *set_copy); +int i18n_uset_clone_as_thawed(const i18n_uset_h set, i18n_uset_h *set_copy); /** * @brief Causes the #i18n_uset_h object to represent the range start - end. @@ -218,7 +218,7 @@ int i18n_uset_clone_as_thawed (const i18n_uset_h set, i18n_uset_h *set_copy); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_set (i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); +int i18n_uset_set(i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); /** * @brief Modifies the set to represent the set specified by the given @@ -248,7 +248,7 @@ int i18n_uset_set (i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_uset_apply_pattern (i18n_uset_h set, const i18n_uchar *pattern, int32_t pattern_length, uint32_t options); +int32_t i18n_uset_apply_pattern(i18n_uset_h set, const i18n_uchar *pattern, int32_t pattern_length, uint32_t options); /** * @brief Modifies the set to contain those code points which have the given value @@ -271,7 +271,7 @@ int32_t i18n_uset_apply_pattern (i18n_uset_h set, const i18n_uchar *pattern, int * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_apply_int_property_value (i18n_uset_h set, i18n_uchar_uproperty_e prop, int32_t value); +int i18n_uset_apply_int_property_value(i18n_uset_h set, i18n_uchar_uproperty_e prop, int32_t value); /** * @brief Modifies the set to contain those code points which have the @@ -305,7 +305,7 @@ int i18n_uset_apply_int_property_value (i18n_uset_h set, i18n_uchar_uproperty_e * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_apply_property_alias (i18n_uset_h set, const i18n_uchar *prop, int32_t prop_length, const i18n_uchar *value, int32_t value_length); +int i18n_uset_apply_property_alias(i18n_uset_h set, const i18n_uchar *prop, int32_t prop_length, const i18n_uchar *value, int32_t value_length); /** * @brief Return true if the given position, in the given pattern, appears @@ -324,7 +324,7 @@ int i18n_uset_apply_property_alias (i18n_uset_h set, const i18n_uchar *prop, int * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_resembles_pattern (const i18n_uchar *pattern, int32_t pattern_length, int32_t pos); +i18n_ubool i18n_uset_resembles_pattern(const i18n_uchar *pattern, int32_t pattern_length, int32_t pos); /** * @brief Returns a string representation of the given @a set. @@ -347,7 +347,7 @@ i18n_ubool i18n_uset_resembles_pattern (const i18n_uchar *pattern, int32_t patte * * @see i18n_uset_pattern_create() */ -int32_t i18n_uset_to_pattern (const i18n_uset_h set, i18n_uchar *result, int32_t result_capacity, i18n_ubool escape_unprintable); +int32_t i18n_uset_to_pattern(const i18n_uset_h set, i18n_uchar *result, int32_t result_capacity, i18n_ubool escape_unprintable); /** * @brief Adds the given character to the given #i18n_uset_h. @@ -364,7 +364,7 @@ int32_t i18n_uset_to_pattern (const i18n_uset_h set, i18n_uchar *result, int32_t * * @see i18n_uset_contains() */ -int i18n_uset_add (i18n_uset_h set, i18n_uchar32 character); +int i18n_uset_add(i18n_uset_h set, i18n_uchar32 character); /** @@ -383,7 +383,7 @@ int i18n_uset_add (i18n_uset_h set, i18n_uchar32 character); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_add_all (i18n_uset_h set, const i18n_uset_h additional_set); +int i18n_uset_add_all(i18n_uset_h set, const i18n_uset_h additional_set); /** * @brief Adds the given range of characters to the given #i18n_uset_h. After this call, @@ -400,7 +400,7 @@ int i18n_uset_add_all (i18n_uset_h set, const i18n_uset_h additional_set); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_uset_contains() */ -int i18n_uset_add_range (i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); +int i18n_uset_add_range(i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); /** * @brief Adds the given string to the given #i18n_uset_h. @@ -417,7 +417,7 @@ int i18n_uset_add_range (i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_uset_contains_string() */ -int i18n_uset_add_string (i18n_uset_h set, const i18n_uchar *str, int32_t str_len); +int i18n_uset_add_string(i18n_uset_h set, const i18n_uchar *str, int32_t str_len); /** * @brief Adds each of the characters in this string to the set. Thus "ch" => {"c", "h"} @@ -433,7 +433,7 @@ int i18n_uset_add_string (i18n_uset_h set, const i18n_uchar *str, int32_t str_le * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_add_all_code_points (i18n_uset_h set, const i18n_uchar *str, int32_t str_len); +int i18n_uset_add_all_code_points(i18n_uset_h set, const i18n_uchar *str, int32_t str_len); /** * @brief Removes the given @a character from the given #i18n_uset_h. @@ -450,7 +450,7 @@ int i18n_uset_add_all_code_points (i18n_uset_h set, const i18n_uchar *str, int32 * * @see i18n_uset_contains() */ -int i18n_uset_remove (i18n_uset_h set, i18n_uchar32 character); +int i18n_uset_remove(i18n_uset_h set, i18n_uchar32 character); /** * @brief Removes the given range of characters from the given #i18n_uset_h. @@ -467,7 +467,7 @@ int i18n_uset_remove (i18n_uset_h set, i18n_uchar32 character); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_uset_contains() */ -int i18n_uset_remove_range (i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); +int i18n_uset_remove_range(i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); /** * @brief Removes the given string to the given #i18n_uset_h. @@ -484,7 +484,7 @@ int i18n_uset_remove_range (i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 en * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_uset_contains_string() */ -int i18n_uset_remove_string (i18n_uset_h set, const i18n_uchar *str, int32_t str_len); +int i18n_uset_remove_string(i18n_uset_h set, const i18n_uchar *str, int32_t str_len); /** * @brief Removes from this set all of its elements that are contained in the specified set. @@ -501,7 +501,7 @@ int i18n_uset_remove_string (i18n_uset_h set, const i18n_uchar *str, int32_t str * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_remove_all (i18n_uset_h set, const i18n_uset_h remove_set); +int i18n_uset_remove_all(i18n_uset_h set, const i18n_uset_h remove_set); /** * @brief Retains only the elements in this set that are contained in the specified range. @@ -520,7 +520,7 @@ int i18n_uset_remove_all (i18n_uset_h set, const i18n_uset_h remove_set); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_retain (i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); +int i18n_uset_retain(i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); /** * @brief Retains only the elements in this set that are contained in the @@ -539,7 +539,7 @@ int i18n_uset_retain (i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_retain_all (i18n_uset_h set, const i18n_uset_h retain); +int i18n_uset_retain_all(i18n_uset_h set, const i18n_uset_h retain); /** * @brief Reallocates this objects internal structures to take up the least @@ -553,7 +553,7 @@ int i18n_uset_retain_all (i18n_uset_h set, const i18n_uset_h retain); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_compact (i18n_uset_h set); +int i18n_uset_compact(i18n_uset_h set); /** * @brief Inverts this set. This operation modifies this set so that @@ -569,7 +569,7 @@ int i18n_uset_compact (i18n_uset_h set); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_complement (i18n_uset_h set); +int i18n_uset_complement(i18n_uset_h set); /** * @brief Complements in this set all elements contained in the specified set. @@ -586,7 +586,7 @@ int i18n_uset_complement (i18n_uset_h set); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_complement_all (i18n_uset_h set, const i18n_uset_h complement); +int i18n_uset_complement_all(i18n_uset_h set, const i18n_uset_h complement); /** * @brief Removes all of the elements from this set. @@ -600,7 +600,7 @@ int i18n_uset_complement_all (i18n_uset_h set, const i18n_uset_h complement); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_clear (i18n_uset_h set); +int i18n_uset_clear(i18n_uset_h set); /** * @brief Closes this set over the given attribute. @@ -633,7 +633,7 @@ int i18n_uset_clear (i18n_uset_h set); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ustring_fold_case() */ -int i18n_uset_destroy_over (i18n_uset_h set, int32_t attributes); +int i18n_uset_destroy_over(i18n_uset_h set, int32_t attributes); /** * @brief Removes all strings from this set. @@ -645,7 +645,7 @@ int i18n_uset_destroy_over (i18n_uset_h set, int32_t attributes); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_remove_all_strings (i18n_uset_h set); +int i18n_uset_remove_all_strings(i18n_uset_h set); /** * @brief Returns true if the given #i18n_uset_h contains no characters and no @@ -661,7 +661,7 @@ int i18n_uset_remove_all_strings (i18n_uset_h set); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_is_empty (const i18n_uset_h set); +i18n_ubool i18n_uset_is_empty(const i18n_uset_h set); /** * @brief Returns @c true if the given #i18n_uset_h contains the given @a character. @@ -678,7 +678,7 @@ i18n_ubool i18n_uset_is_empty (const i18n_uset_h set); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_contains (const i18n_uset_h set, i18n_uchar32 character); +i18n_ubool i18n_uset_contains(const i18n_uset_h set, i18n_uchar32 character); /** * @brief Returns true if the given #i18n_uset_h contains all characters c @@ -696,7 +696,7 @@ i18n_ubool i18n_uset_contains (const i18n_uset_h set, i18n_uchar32 character); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_contains_range (const i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); +i18n_ubool i18n_uset_contains_range(const i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); /** * @brief Returns true if the given #i18n_uset_h contains the given string. @@ -713,7 +713,7 @@ i18n_ubool i18n_uset_contains_range (const i18n_uset_h set, i18n_uchar32 start, * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_contains_string (const i18n_uset_h set, const i18n_uchar *str, int32_t str_len); +i18n_ubool i18n_uset_contains_string(const i18n_uset_h set, const i18n_uchar *str, int32_t str_len); /** * @brief Returns the index of the given @a character within this @a set, where @@ -732,7 +732,7 @@ i18n_ubool i18n_uset_contains_string (const i18n_uset_h set, const i18n_uchar *s * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_uset_index_of (const i18n_uset_h set, i18n_uchar32 character); +int32_t i18n_uset_index_of(const i18n_uset_h set, i18n_uchar32 character); /** * @brief Returns the character at the given index within this set, where @@ -751,7 +751,7 @@ int32_t i18n_uset_index_of (const i18n_uset_h set, i18n_uchar32 character); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar32 i18n_uset_char_at (const i18n_uset_h set, int32_t char_index); +i18n_uchar32 i18n_uset_char_at(const i18n_uset_h set, int32_t char_index); /** * @brief Returns the number of characters and strings contained in the given #i18n_uset_h. @@ -767,7 +767,7 @@ i18n_uchar32 i18n_uset_char_at (const i18n_uset_h set, int32_t char_index); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_uset_size (const i18n_uset_h set); +int32_t i18n_uset_size(const i18n_uset_h set); /** * @brief Returns the number of items in this set. @@ -784,7 +784,7 @@ int32_t i18n_uset_size (const i18n_uset_h set); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_uset_get_item_count (const i18n_uset_h set); +int32_t i18n_uset_get_item_count(const i18n_uset_h set); /** * @brief Returns an item of this set. @@ -809,7 +809,7 @@ int32_t i18n_uset_get_item_count (const i18n_uset_h set); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_uset_get_item (const i18n_uset_h set, int32_t item_index, i18n_uchar32 *start, i18n_uchar32 *end, i18n_uchar *str, int32_t str_capacity); +int32_t i18n_uset_get_item(const i18n_uset_h set, int32_t item_index, i18n_uchar32 *start, i18n_uchar32 *end, i18n_uchar *str, int32_t str_capacity); /** * @brief Returns true if set1 contains all the characters and strings of set2. It answers the question, 'Is set1 a superset of set2?' @@ -825,7 +825,7 @@ int32_t i18n_uset_get_item (const i18n_uset_h set, int32_t item_index, i18n_ucha * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_contains_all (const i18n_uset_h set1, const i18n_uset_h set2); +i18n_ubool i18n_uset_contains_all(const i18n_uset_h set1, const i18n_uset_h set2); /** * @brief Returns true if this set contains all the characters of the given string. @@ -844,7 +844,7 @@ i18n_ubool i18n_uset_contains_all (const i18n_uset_h set1, const i18n_uset_h set * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_contains_all_code_points (const i18n_uset_h set, const i18n_uchar *str, int32_t str_len); +i18n_ubool i18n_uset_contains_all_code_points(const i18n_uset_h set, const i18n_uchar *str, int32_t str_len); /** * @brief Returns true if set1 contains none of the characters and strings of set2. @@ -861,7 +861,7 @@ i18n_ubool i18n_uset_contains_all_code_points (const i18n_uset_h set, const i18n * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_contains_none (const i18n_uset_h set1, const i18n_uset_h set2); +i18n_ubool i18n_uset_contains_none(const i18n_uset_h set1, const i18n_uset_h set2); /** * @brief Returns true if set1 contains some of the characters and strings of set2. @@ -878,7 +878,7 @@ i18n_ubool i18n_uset_contains_none (const i18n_uset_h set1, const i18n_uset_h se * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_contains_some (const i18n_uset_h set1, const i18n_uset_h set2); +i18n_ubool i18n_uset_contains_some(const i18n_uset_h set1, const i18n_uset_h set2); /** * @brief Returns the length of the initial substring of the input string which @@ -907,7 +907,7 @@ i18n_ubool i18n_uset_contains_some (const i18n_uset_h set1, const i18n_uset_h se * * @see #i18n_uset_span_condition_e */ -int32_t i18n_uset_span (const i18n_uset_h set, const i18n_uchar *str, int32_t length, i18n_uset_span_condition_e span_condition); +int32_t i18n_uset_span(const i18n_uset_h set, const i18n_uchar *str, int32_t length, i18n_uset_span_condition_e span_condition); /** * @brief Returns the start of the trailing substring of the input string which @@ -935,7 +935,7 @@ int32_t i18n_uset_span (const i18n_uset_h set, const i18n_uchar *str, int32_t le * * @see #i18n_uset_span_condition_e */ -int32_t i18n_uset_span_back (const i18n_uset_h set, const i18n_uchar *str, int32_t length, i18n_uset_span_condition_e span_condition); +int32_t i18n_uset_span_back(const i18n_uset_h set, const i18n_uchar *str, int32_t length, i18n_uset_span_condition_e span_condition); /** * @brief Returns the length of the initial substring of the input string which @@ -964,7 +964,7 @@ int32_t i18n_uset_span_back (const i18n_uset_h set, const i18n_uchar *str, int32 * * @see #i18n_uset_span_condition_e */ -int32_t i18n_uset_span_utf8 (const i18n_uset_h set, const char *str, int32_t length, i18n_uset_span_condition_e span_condition); +int32_t i18n_uset_span_utf8(const i18n_uset_h set, const char *str, int32_t length, i18n_uset_span_condition_e span_condition); /** * @brief Returns the start of the trailing substring of the input string which @@ -992,7 +992,7 @@ int32_t i18n_uset_span_utf8 (const i18n_uset_h set, const char *str, int32_t len * * @see #i18n_uset_span_condition_e */ -int32_t i18n_uset_span_back_utf8 (const i18n_uset_h set, const char *str, int32_t length, i18n_uset_span_condition_e span_condition); +int32_t i18n_uset_span_back_utf8(const i18n_uset_h set, const char *str, int32_t length, i18n_uset_span_condition_e span_condition); /** * @brief Returns true if set1 contains all of the characters and strings @@ -1009,7 +1009,7 @@ int32_t i18n_uset_span_back_utf8 (const i18n_uset_h set, const char *str, int32_ * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_equals (const i18n_uset_h set1, const i18n_uset_h set2); +i18n_ubool i18n_uset_equals(const i18n_uset_h set1, const i18n_uset_h set2); /********************************************************************* * Serialized set API @@ -1070,7 +1070,7 @@ i18n_ubool i18n_uset_equals (const i18n_uset_h set1, const i18n_uset_h set2); * @exception #I18N_ERROR_INDEX_OUTOFBOUNDS If n+2*m > 0x7FFF * @exception #I18N_ERROR_BUFFER_OVERFLOW If n+2*m+(m != 0 ? 2 : 1) > dest_capacity. */ -int32_t i18n_uset_serialize (const i18n_uset_h set, uint16_t *dest, int32_t dest_capacity); +int32_t i18n_uset_serialize(const i18n_uset_h set, uint16_t *dest, int32_t dest_capacity); /** * @brief Given a serialized array, fill in the given serialized set object. @@ -1089,7 +1089,7 @@ int32_t i18n_uset_serialize (const i18n_uset_h set, uint16_t *dest, int32_t dest * * @see #i18n_userialized_set_s */ -i18n_ubool i18n_uset_get_serialized_set (const uint16_t *src, int32_t src_length, i18n_userialized_set_s* fill_set); +i18n_ubool i18n_uset_get_serialized_set(const uint16_t *src, int32_t src_length, i18n_userialized_set_s* fill_set); /** * @brief Sets the #i18n_userialized_set_s to contain the given @a character (and nothing else). @@ -1104,7 +1104,7 @@ i18n_ubool i18n_uset_get_serialized_set (const uint16_t *src, int32_t src_length * * @see #i18n_userialized_set_s */ -int i18n_uset_set_serialized_to_one (i18n_uchar32 character, i18n_userialized_set_s* fill_set); +int i18n_uset_set_serialized_to_one(i18n_uchar32 character, i18n_userialized_set_s* fill_set); /** * @brief Returns @c true if the given #i18n_userialized_set_s contains the given @a character. @@ -1121,7 +1121,7 @@ int i18n_uset_set_serialized_to_one (i18n_uchar32 character, i18n_userialized_se * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see #i18n_userialized_set_s */ -i18n_ubool i18n_uset_serialized_contains (const i18n_userialized_set_s* set, i18n_uchar32 character); +i18n_ubool i18n_uset_serialized_contains(const i18n_userialized_set_s* set, i18n_uchar32 character); /** * @brief Returns the number of disjoint ranges of characters contained in @@ -1139,7 +1139,7 @@ i18n_ubool i18n_uset_serialized_contains (const i18n_userialized_set_s* set, i18 * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see #i18n_userialized_set_s */ -int32_t i18n_uset_get_serialized_range_count (const i18n_userialized_set_s* set); +int32_t i18n_uset_get_serialized_range_count(const i18n_userialized_set_s* set); /** * @brief Returns a range of characters contained in the given serialized set. @@ -1161,7 +1161,7 @@ int32_t i18n_uset_get_serialized_range_count (const i18n_userialized_set_s* set) * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see #i18n_userialized_set_s */ -i18n_ubool i18n_uset_get_serialized_range (const i18n_userialized_set_s* set, int32_t range_index, i18n_uchar32 *p_start, i18n_uchar32 *p_end); +i18n_ubool i18n_uset_get_serialized_range(const i18n_userialized_set_s* set, int32_t range_index, i18n_uchar32 *p_start, i18n_uchar32 *p_end); /** * @} diff --git a/src/include/mobile/utils_i18n_ustring.h b/src/include/mobile/utils_i18n_ustring.h index dba29a0..71cbf4e 100644 --- a/src/include/mobile/utils_i18n_ustring.h +++ b/src/include/mobile/utils_i18n_ustring.h @@ -83,7 +83,7 @@ extern "C" { * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_get_length ( const i18n_uchar *s ); +int32_t i18n_ustring_get_length(const i18n_uchar *s); /** * @brief Counts Unicode code points in the length #i18n_uchar code units of the string. @@ -101,7 +101,7 @@ int32_t i18n_ustring_get_length ( const i18n_uchar *s ); * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_count_char32 ( const i18n_uchar *s, int32_t length ); +int32_t i18n_ustring_count_char32(const i18n_uchar *s, int32_t length); /** * @brief Checks if the string contains more Unicode code points than a certain number. @@ -122,7 +122,7 @@ int32_t i18n_ustring_count_char32 ( const i18n_uchar *s, int32_t length ); * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_ustring_has_more_char32_than ( const i18n_uchar *s, int32_t length, int32_t number ); +i18n_ubool i18n_ustring_has_more_char32_than(const i18n_uchar *s, int32_t length, int32_t number); /** * @brief Concatenates two ustrings. @@ -139,7 +139,7 @@ i18n_ubool i18n_ustring_has_more_char32_than ( const i18n_uchar *s, int32_t leng * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_cat ( i18n_uchar *dest, const i18n_uchar *src ); +i18n_uchar* i18n_ustring_cat(i18n_uchar *dest, const i18n_uchar *src); /** * @brief Concatenate two ustrings. @@ -157,7 +157,7 @@ i18n_uchar* i18n_ustring_cat ( i18n_uchar *dest, const i18n_uchar *src ); * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_cat_n ( i18n_uchar *dest, const i18n_uchar *src, int32_t n ); +i18n_uchar* i18n_ustring_cat_n(i18n_uchar *dest, const i18n_uchar *src, int32_t n); /** * @brief Finds the first occurrence of a substring in a string. @@ -182,7 +182,7 @@ i18n_uchar* i18n_ustring_cat_n ( i18n_uchar *dest, const i18n_uchar *src, int32_ * @see i18n_ustring_find_first() * @see i18n_ustring_find_last() */ -i18n_uchar* i18n_ustring_string ( const i18n_uchar *s, const i18n_uchar *sub_string ); +i18n_uchar* i18n_ustring_string(const i18n_uchar *s, const i18n_uchar *sub_string); /** * @brief Finds the first occurrence of a substring in a string. @@ -208,7 +208,7 @@ i18n_uchar* i18n_ustring_string ( const i18n_uchar *s, const i18n_uchar *sub_str * @see i18n_ustring_string() * @see i18n_ustring_find_last() */ -i18n_uchar* i18n_ustring_find_first ( const i18n_uchar *s, int32_t length, const i18n_uchar *sub_string, int32_t sub_length ); +i18n_uchar* i18n_ustring_find_first(const i18n_uchar *s, int32_t length, const i18n_uchar *sub_string, int32_t sub_length); /** * @brief Finds the first occurrence of a BMP code point in a string. @@ -229,7 +229,7 @@ i18n_uchar* i18n_ustring_find_first ( const i18n_uchar *s, int32_t length, const * @see i18n_ustring_string() * @see i18n_ustring_find_first() */ -i18n_uchar* i18n_ustring_char ( const i18n_uchar *s, i18n_uchar c ); +i18n_uchar* i18n_ustring_char(const i18n_uchar *s, i18n_uchar c); /** * @brief Finds the first occurrence of a code point in a string. @@ -250,7 +250,7 @@ i18n_uchar* i18n_ustring_char ( const i18n_uchar *s, i18n_uchar c ); * @see i18n_ustring_string() * @see i18n_ustring_find_first() */ -i18n_uchar* i18n_ustring_char32 ( const i18n_uchar *s, i18n_uchar32 c ); +i18n_uchar* i18n_ustring_char32(const i18n_uchar *s, i18n_uchar32 c); /** * @brief Finds the last occurrence of a substring in a string. @@ -273,7 +273,7 @@ i18n_uchar* i18n_ustring_char32 ( const i18n_uchar *s, i18n_uchar32 c ); * @see i18n_ustring_find_first() * @see i18n_ustring_find_last() */ -i18n_uchar* i18n_ustring_r_string ( const i18n_uchar *s, const i18n_uchar *sub_string ); +i18n_uchar* i18n_ustring_r_string(const i18n_uchar *s, const i18n_uchar *sub_string); /** * @brief Finds the last occurrence of a substring in a string. @@ -297,7 +297,7 @@ i18n_uchar* i18n_ustring_r_string ( const i18n_uchar *s, const i18n_uchar *sub_s * @see i18n_ustring_string() * @see i18n_ustring_find_first() */ -i18n_uchar* i18n_ustring_find_last( const i18n_uchar *s, int32_t length, const i18n_uchar *sub_string, int32_t sub_length ); +i18n_uchar* i18n_ustring_find_last(const i18n_uchar *s, int32_t length, const i18n_uchar *sub_string, int32_t sub_length); /** * @brief Finds the last occurrence of a BMP code point in a string. @@ -318,7 +318,7 @@ i18n_uchar* i18n_ustring_find_last( const i18n_uchar *s, int32_t length, const i * @see i18n_ustring_string() * @see i18n_ustring_find_first() */ -i18n_uchar* i18n_ustring_r_char ( const i18n_uchar *s, i18n_uchar c ); +i18n_uchar* i18n_ustring_r_char(const i18n_uchar *s, i18n_uchar c); /** * @brief Finds the last occurrence of a code point in a string. @@ -339,7 +339,7 @@ i18n_uchar* i18n_ustring_r_char ( const i18n_uchar *s, i18n_uchar c ); * @see i18n_ustring_string() * @see i18n_ustring_find_first() */ -i18n_uchar* i18n_ustring_r_char32 ( const i18n_uchar *s, i18n_uchar32 c ); +i18n_uchar* i18n_ustring_r_char32(const i18n_uchar *s, i18n_uchar32 c); /** * @brief Locates the first occurrence in the string of any of the characters in the string matchSet. @@ -356,7 +356,7 @@ i18n_uchar* i18n_ustring_r_char32 ( const i18n_uchar *s, i18n_uchar32 c ); * @return A pointer to the character in @a string that matches one of the * characters in @a match_set, or NULL if no such character is found. */ -i18n_uchar* i18n_ustring_pbrk ( const i18n_uchar *string, const i18n_uchar *match_set ); +i18n_uchar* i18n_ustring_pbrk(const i18n_uchar *string, const i18n_uchar *match_set); /** * @brief Returns the number of consecutive characters in string, beginning with the first, that do not occur somewhere in match_set. @@ -373,7 +373,7 @@ i18n_uchar* i18n_ustring_pbrk ( const i18n_uchar *string, const i18n_uchar *matc * @return The number of initial characters in @a string that do not * occur in @a match_set. */ -int32_t i18n_ustring_cspn ( const i18n_uchar *string, const i18n_uchar *match_set ); +int32_t i18n_ustring_cspn(const i18n_uchar *string, const i18n_uchar *match_set); /** * @brief Returns the number of consecutive characters in string, beginning with the first, that occur somewhere in match_set. @@ -390,7 +390,7 @@ int32_t i18n_ustring_cspn ( const i18n_uchar *string, const i18n_uchar *match_se * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ustring_spn() */ -int32_t i18n_ustring_spn ( const i18n_uchar *string, const i18n_uchar *match_set ); +int32_t i18n_ustring_spn(const i18n_uchar *string, const i18n_uchar *match_set); /** * @brief The string tokenizer API allows an application to break a string into tokens. @@ -408,7 +408,7 @@ int32_t i18n_ustring_spn ( const i18n_uchar *string, const i18n_uchar *match_set * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_tokenizer_r ( i18n_uchar *src, const i18n_uchar *delim, i18n_uchar **save_state ); +i18n_uchar* i18n_ustring_tokenizer_r(i18n_uchar *src, const i18n_uchar *delim, i18n_uchar **save_state); /** * @brief Compares two Unicode strings for bitwise equality (code unit order). @@ -424,7 +424,7 @@ i18n_uchar* i18n_ustring_tokenizer_r ( i18n_uchar *src, const i18n_uchar *delim, * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_compare ( const i18n_uchar *s1, const i18n_uchar *s2 ); +int32_t i18n_ustring_compare(const i18n_uchar *s1, const i18n_uchar *s2); /** * @brief Compare two Unicode strings in code point order. @@ -441,7 +441,7 @@ int32_t i18n_ustring_compare ( const i18n_uchar *s1, const i18n_uchar *s2 ); * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_compare_code_point_order( const i18n_uchar *s1, const i18n_uchar *s2 ); +int32_t i18n_ustring_compare_code_point_order(const i18n_uchar *s1, const i18n_uchar *s2); /** * @brief Compare two Unicode strings (binary order). @@ -463,7 +463,7 @@ int32_t i18n_ustring_compare_code_point_order( const i18n_uchar *s1, const i18n_ * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_compare_binary_order( const i18n_uchar *s1, int32_t length1, const i18n_uchar *s2, int32_t length2, i18n_ubool code_point_order ); +int32_t i18n_ustring_compare_binary_order(const i18n_uchar *s1, int32_t length1, const i18n_uchar *s2, int32_t length2, i18n_ubool code_point_order); /** * @brief Compare two strings case-insensitively using full case folding. @@ -488,7 +488,7 @@ int32_t i18n_ustring_compare_binary_order( const i18n_uchar *s1, int32_t length1 * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_case_compare_with_length( const i18n_uchar *s1, int32_t length1, const i18n_uchar *s2, int32_t length2, uint32_t options, i18n_error_code_e *error_code ); +int32_t i18n_ustring_case_compare_with_length(const i18n_uchar *s1, int32_t length1, const i18n_uchar *s2, int32_t length2, uint32_t options, i18n_error_code_e *error_code); /** * @brief Compare two ustrings for bitwise equality. @@ -506,7 +506,7 @@ int32_t i18n_ustring_case_compare_with_length( const i18n_uchar *s1, int32_t len * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_compare_n( const i18n_uchar *s1, const i18n_uchar *s2, int32_t n ); +int32_t i18n_ustring_compare_n(const i18n_uchar *s1, const i18n_uchar *s2, int32_t n); /** * @brief Compare two Unicode strings in code point order. @@ -524,7 +524,7 @@ int32_t i18n_ustring_compare_n( const i18n_uchar *s1, const i18n_uchar *s2, int3 * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_compare_n_code_point_order( const i18n_uchar *s1, const i18n_uchar *s2, int32_t n ); +int32_t i18n_ustring_compare_n_code_point_order(const i18n_uchar *s1, const i18n_uchar *s2, int32_t n); /** * @brief Compare two strings case-insensitively using full case folding. @@ -542,7 +542,7 @@ int32_t i18n_ustring_compare_n_code_point_order( const i18n_uchar *s1, const i18 * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_case_compare( const i18n_uchar *s1, const i18n_uchar *s2, uint32_t options ); +int32_t i18n_ustring_case_compare(const i18n_uchar *s1, const i18n_uchar *s2, uint32_t options); /** * @brief Compare two strings case-insensitively using full case folding. @@ -561,7 +561,7 @@ int32_t i18n_ustring_case_compare( const i18n_uchar *s1, const i18n_uchar *s2, u * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_case_compare_n( const i18n_uchar *s1, const i18n_uchar *s2, int32_t n, uint32_t options ); +int32_t i18n_ustring_case_compare_n(const i18n_uchar *s1, const i18n_uchar *s2, int32_t n, uint32_t options); /** * @brief Compare two strings case-insensitively using full case folding. @@ -580,7 +580,7 @@ int32_t i18n_ustring_case_compare_n( const i18n_uchar *s1, const i18n_uchar *s2, * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_mem_case_compare( const i18n_uchar *s1, const i18n_uchar *s2, int32_t length, uint32_t options ); +int32_t i18n_ustring_mem_case_compare(const i18n_uchar *s1, const i18n_uchar *s2, int32_t length, uint32_t options); /** * @brief Copies a ustring. Adds a NULL terminator. @@ -595,7 +595,7 @@ int32_t i18n_ustring_mem_case_compare( const i18n_uchar *s1, const i18n_uchar *s * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_copy ( i18n_uchar *dest, const i18n_uchar *src ); +i18n_uchar* i18n_ustring_copy(i18n_uchar *dest, const i18n_uchar *src); /** * @brief Copies a ustring. @@ -613,7 +613,7 @@ i18n_uchar* i18n_ustring_copy ( i18n_uchar *dest, const i18n_uchar *src ); * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_copy_n ( i18n_uchar *dest, const i18n_uchar *src, int32_t n ); +i18n_uchar* i18n_ustring_copy_n(i18n_uchar *dest, const i18n_uchar *src, int32_t n); /** * @brief Copies a byte string encoded in the default codepage to a ustring. @@ -629,7 +629,7 @@ i18n_uchar* i18n_ustring_copy_n ( i18n_uchar *dest, const i18n_uchar *src, int32 * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_copy_ua ( i18n_uchar *dest, const char *src ); +i18n_uchar* i18n_ustring_copy_ua(i18n_uchar *dest, const char *src); /** * @brief Copies a byte string encoded in the default codepage to a ustring. @@ -648,7 +648,7 @@ i18n_uchar* i18n_ustring_copy_ua ( i18n_uchar *dest, const char *src ); * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_copy_ua_n ( i18n_uchar *dest, const char *src, int32_t n ); +i18n_uchar* i18n_ustring_copy_ua_n(i18n_uchar *dest, const char *src, int32_t n); /** * @brief Copies a ustring to a byte string encoded in the default codepage. @@ -664,7 +664,7 @@ i18n_uchar* i18n_ustring_copy_ua_n ( i18n_uchar *dest, const char *src, int32_t * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -char* i18n_ustring_copy_au ( char *dest, const i18n_uchar *src ); +char* i18n_ustring_copy_au(char *dest, const i18n_uchar *src); /** * @brief Copies a ustring to a byte string encoded in the default codepage. @@ -683,7 +683,7 @@ char* i18n_ustring_copy_au ( char *dest, const i18n_uchar *src ); * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -char* i18n_ustring_copy_au_n ( char *dest, const i18n_uchar *src, int32_t n ); +char* i18n_ustring_copy_au_n(char *dest, const i18n_uchar *src, int32_t n); /** * @brief Synonym for memcpy(), but with #i18n_uchar characters only. @@ -699,7 +699,7 @@ char* i18n_ustring_copy_au_n ( char *dest, const i18n_uchar *src, int32_t n ); * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_mem_copy ( i18n_uchar *dest, const i18n_uchar *src, int32_t count ); +i18n_uchar* i18n_ustring_mem_copy(i18n_uchar *dest, const i18n_uchar *src, int32_t count); /** * @brief Synonym for memmove(), but with #i18n_uchar characters only. @@ -715,7 +715,7 @@ i18n_uchar* i18n_ustring_mem_copy ( i18n_uchar *dest, const i18n_uchar *src, int * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_mem_move ( i18n_uchar *dest, const i18n_uchar *src, int32_t count ); +i18n_uchar* i18n_ustring_mem_move(i18n_uchar *dest, const i18n_uchar *src, int32_t count); /** * @brief Initialize count characters of dest to c. @@ -731,7 +731,7 @@ i18n_uchar* i18n_ustring_mem_move ( i18n_uchar *dest, const i18n_uchar *src, int * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_mem_set ( i18n_uchar *dest, const i18n_uchar c, int32_t count ); +i18n_uchar* i18n_ustring_mem_set(i18n_uchar *dest, const i18n_uchar c, int32_t count); /** * @brief Compare the first count #i18n_uchar characters of each buffer. @@ -748,7 +748,7 @@ i18n_uchar* i18n_ustring_mem_set ( i18n_uchar *dest, const i18n_uchar c, int32_t * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_mem_compare ( const i18n_uchar *buf1, const i18n_uchar *buf2, int32_t count ); +int32_t i18n_ustring_mem_compare(const i18n_uchar *buf1, const i18n_uchar *buf2, int32_t count); /** * @brief Compare two Unicode strings in code point order. @@ -766,7 +766,7 @@ int32_t i18n_ustring_mem_compare ( const i18n_uchar *buf1, const i18n_uchar *buf * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_mem_compare_code_point_order ( const i18n_uchar *s1, const i18n_uchar *s2, int32_t count ); +int32_t i18n_ustring_mem_compare_code_point_order(const i18n_uchar *s1, const i18n_uchar *s2, int32_t count); /** * @brief Finds the first occurrence of a BMP code point in a string. @@ -786,7 +786,7 @@ int32_t i18n_ustring_mem_compare_code_point_order ( const i18n_uchar *s1, const * @see i18n_ustring_mem_char32() * @see i18n_ustring_find_first() */ -i18n_uchar* i18n_ustring_mem_char ( const i18n_uchar *s, i18n_uchar c, int32_t count ); +i18n_uchar* i18n_ustring_mem_char(const i18n_uchar *s, i18n_uchar c, int32_t count); /** * @brief Finds the first occurrence of a code point in a string. @@ -803,7 +803,7 @@ i18n_uchar* i18n_ustring_mem_char ( const i18n_uchar *s, i18n_uchar c, int32_t c * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_mem_char32 ( const i18n_uchar *s, i18n_uchar32 c, int32_t count ); +i18n_uchar* i18n_ustring_mem_char32(const i18n_uchar *s, i18n_uchar32 c, int32_t count); /** * @brief Finds the last occurrence of a BMP code point in a string. @@ -823,7 +823,7 @@ i18n_uchar* i18n_ustring_mem_char32 ( const i18n_uchar *s, i18n_uchar32 c, int32 * @see #i18n_ustring_mem_r_char32 * @see #i18n_ustring_find_last */ -i18n_uchar* i18n_ustring_mem_r_char ( const i18n_uchar *s, i18n_uchar c, int32_t count ); +i18n_uchar* i18n_ustring_mem_r_char(const i18n_uchar *s, i18n_uchar c, int32_t count); /** * @brief Finds the last occurrence of a code point in a string. @@ -843,7 +843,7 @@ i18n_uchar* i18n_ustring_mem_r_char ( const i18n_uchar *s, i18n_uchar c, int32_t * @see #i18n_ustring_mem_r_char * @see #i18n_ustring_find_last */ -i18n_uchar* i18n_ustring_mem_r_char32 ( const i18n_uchar *s, i18n_uchar32 c, int32_t count ); +i18n_uchar* i18n_ustring_mem_r_char32(const i18n_uchar *s, i18n_uchar32 c, int32_t count); /** * @brief Unescape a string of characters and write the resulting Unicode characters to the destination buffer. @@ -866,7 +866,7 @@ i18n_uchar* i18n_ustring_mem_r_char32 ( const i18n_uchar *s, i18n_uchar32 c, int * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ustring_unescape_at() */ -int32_t i18n_ustring_unescape ( const char *src, i18n_uchar *dest, int32_t dest_capacity ); +int32_t i18n_ustring_unescape(const char *src, i18n_uchar *dest, int32_t dest_capacity); /** * @brief Unescape a single sequence. @@ -890,7 +890,7 @@ int32_t i18n_ustring_unescape ( const char *src, i18n_uchar *dest, int32_t dest_ * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ustring_unescape() */ -i18n_uchar32 i18n_ustring_unescape_at ( i18n_ustring_unescape_char_at_cb char_at, int32_t *offset, int32_t length, void *context ); +i18n_uchar32 i18n_ustring_unescape_at(i18n_ustring_unescape_char_at_cb char_at, int32_t *offset, int32_t length, void *context); /** * @brief Uppercases the characters in a string. @@ -915,7 +915,7 @@ i18n_uchar32 i18n_ustring_unescape_at ( i18n_ustring_unescape_char_at_cb char_at * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_to_upper ( i18n_uchar *dest, int32_t dest_capacity, const i18n_uchar *src, int32_t src_len, const char *locale, i18n_error_code_e *error_code ); +int32_t i18n_ustring_to_upper(i18n_uchar *dest, int32_t dest_capacity, const i18n_uchar *src, int32_t src_len, const char *locale, i18n_error_code_e *error_code); /** * @brief Lowercase the characters in a string. @@ -938,7 +938,7 @@ int32_t i18n_ustring_to_upper ( i18n_uchar *dest, int32_t dest_capacity, const i * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_to_lower ( i18n_uchar *dest, int32_t dest_capacity, const i18n_uchar *src, int32_t src_len, const char *locale, i18n_error_code_e *error_code ); +int32_t i18n_ustring_to_lower(i18n_uchar *dest, int32_t dest_capacity, const i18n_uchar *src, int32_t src_len, const char *locale, i18n_error_code_e *error_code); /** * @brief Titlecases a string. @@ -977,8 +977,8 @@ int32_t i18n_ustring_to_lower ( i18n_uchar *dest, int32_t dest_capacity, const i * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_to_title ( i18n_uchar *dest, int32_t dest_capacity, const i18n_uchar *src, int32_t src_len, i18n_ubreak_iterator_s *title_iter, - const char *locale, i18n_error_code_e *error_code ); +int32_t i18n_ustring_to_title(i18n_uchar *dest, int32_t dest_capacity, const i18n_uchar *src, int32_t src_len, i18n_ubreak_iterator_s *title_iter, + const char *locale, i18n_error_code_e *error_code); /** * @brief Titlecases a string. @@ -1018,7 +1018,7 @@ int32_t i18n_ustring_to_title ( i18n_uchar *dest, int32_t dest_capacity, const i * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ustring_to_title() */ -int32_t i18n_ustring_to_title_new ( i18n_uchar *dest, int32_t dest_capacity, const i18n_uchar *src, int32_t src_len, i18n_ubreak_iterator_h title_iter, const char *locale); +int32_t i18n_ustring_to_title_new(i18n_uchar *dest, int32_t dest_capacity, const i18n_uchar *src, int32_t src_len, i18n_ubreak_iterator_h title_iter, const char *locale); /** * @brief Case-folds the characters in a string. @@ -1043,7 +1043,7 @@ int32_t i18n_ustring_to_title_new ( i18n_uchar *dest, int32_t dest_capacity, con * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_fold_case ( i18n_uchar *dest, int32_t dest_capacity, const i18n_uchar *src, int32_t src_len, uint32_t options, i18n_error_code_e *error_code ); +int32_t i18n_ustring_fold_case(i18n_uchar *dest, int32_t dest_capacity, const i18n_uchar *src, int32_t src_len, uint32_t options, i18n_error_code_e *error_code); /** * @brief Convert a UTF-16 string to a wchar_t string. @@ -1065,7 +1065,7 @@ int32_t i18n_ustring_fold_case ( i18n_uchar *dest, int32_t dest_capacity, const * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -wchar_t* i18n_ustring_to_WCS ( wchar_t *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, i18n_error_code_e *error_code ); +wchar_t* i18n_ustring_to_WCS(wchar_t *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, i18n_error_code_e *error_code); /** * @brief Convert a wchar_t string to UTF-16. @@ -1087,7 +1087,7 @@ wchar_t* i18n_ustring_to_WCS ( wchar_t *dest, int32_t dest_capacity, int32_t *de * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_from_WCS ( i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const wchar_t *src, int32_t src_len, i18n_error_code_e *error_code ); +i18n_uchar* i18n_ustring_from_WCS(i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const wchar_t *src, int32_t src_len, i18n_error_code_e *error_code); /** * @brief Converts a UTF-16 string to UTF-8. @@ -1113,7 +1113,7 @@ i18n_uchar* i18n_ustring_from_WCS ( i18n_uchar *dest, int32_t dest_capacity, int * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ustring_from_UTF8() */ -char* i18n_ustring_to_UTF8 ( char *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, i18n_error_code_e *error_code ); +char* i18n_ustring_to_UTF8(char *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, i18n_error_code_e *error_code); /** * @brief Converts a UTF-8 string to UTF-16. @@ -1138,7 +1138,7 @@ char* i18n_ustring_to_UTF8 ( char *dest, int32_t dest_capacity, int32_t *dest_le * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_from_UTF8 ( i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const char *src, int32_t src_len, i18n_error_code_e *error_code ); +i18n_uchar* i18n_ustring_from_UTF8(i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const char *src, int32_t src_len, i18n_error_code_e *error_code); /** * @brief Convert a UTF-16 string to UTF-8. @@ -1169,7 +1169,7 @@ i18n_uchar* i18n_ustring_from_UTF8 ( i18n_uchar *dest, int32_t dest_capacity, in * @see i18n_ustring_to_UTF8() * @see i18n_ustring_from_UTF8_with_sub() */ -char* i18n_ustring_to_UTF8_with_sub ( char *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, i18n_uchar32 sub_char, int32_t *num_substitutions, i18n_error_code_e *error_code ); +char* i18n_ustring_to_UTF8_with_sub(char *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, i18n_uchar32 sub_char, int32_t *num_substitutions, i18n_error_code_e *error_code); /** * @brief Convert a UTF-8 string to UTF-16. @@ -1200,8 +1200,8 @@ char* i18n_ustring_to_UTF8_with_sub ( char *dest, int32_t dest_capacity, int32_t * @see i18n_ustring_from_UTF8_lenient() * @see i18n_ustring_to_UTF8_with_sub() */ -i18n_uchar* i18n_ustring_from_UTF8_with_sub ( i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const char *src, int32_t src_len, i18n_uchar32 sub_char, - int32_t *num_substitutions, i18n_error_code_e *error_code ); +i18n_uchar* i18n_ustring_from_UTF8_with_sub(i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const char *src, int32_t src_len, i18n_uchar32 sub_char, + int32_t *num_substitutions, i18n_error_code_e *error_code); /** * @brief Convert a UTF-8 string to UTF-16. @@ -1239,7 +1239,7 @@ i18n_uchar* i18n_ustring_from_UTF8_with_sub ( i18n_uchar *dest, int32_t dest_cap * @see i18n_ustring_to_UTF8_with_sub() * @see i18n_ustring_from_UTF8_with_sub() */ -i18n_uchar* i18n_ustring_from_UTF8_lenient ( i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const char *src, int32_t src_len, i18n_error_code_e *error_code ); +i18n_uchar* i18n_ustring_from_UTF8_lenient(i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const char *src, int32_t src_len, i18n_error_code_e *error_code); /** * @brief Convert a UTF-16 string to UTF-32. @@ -1265,7 +1265,7 @@ i18n_uchar* i18n_ustring_from_UTF8_lenient ( i18n_uchar *dest, int32_t dest_capa * @see i18n_ustring_to_UTF32_with_sub() * @see i18n_ustring_from_UTF32() */ -i18n_uchar32* i18n_ustring_to_UTF32 ( i18n_uchar32 *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, i18n_error_code_e *error_code ); +i18n_uchar32* i18n_ustring_to_UTF32(i18n_uchar32 *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, i18n_error_code_e *error_code); /** * @brief Convert a UTF-32 string to UTF-16. @@ -1291,7 +1291,7 @@ i18n_uchar32* i18n_ustring_to_UTF32 ( i18n_uchar32 *dest, int32_t dest_capacity, * @see i18n_ustring_from_UTF32_with_sub() * @see i18n_ustring_to_UTF32() */ -i18n_uchar* i18n_ustring_from_UTF32 ( i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar32 *src, int32_t src_len, i18n_error_code_e *error_code ); +i18n_uchar* i18n_ustring_from_UTF32(i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar32 *src, int32_t src_len, i18n_error_code_e *error_code); /** * @brief Convert a UTF-16 string to UTF-32. @@ -1321,8 +1321,8 @@ i18n_uchar* i18n_ustring_from_UTF32 ( i18n_uchar *dest, int32_t dest_capacity, i * @see i18n_ustring_to_UTF32() * @see i18n_ustring_from_UTF32_with_sub() */ -i18n_uchar32* i18n_ustring_to_UTF32_with_sub ( i18n_uchar32 *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, - i18n_uchar32 sub_char, int32_t *num_substitutions, i18n_error_code_e *error_code ); +i18n_uchar32* i18n_ustring_to_UTF32_with_sub(i18n_uchar32 *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, + i18n_uchar32 sub_char, int32_t *num_substitutions, i18n_error_code_e *error_code); /** * @brief Convert a UTF-32 string to UTF-16. @@ -1353,7 +1353,7 @@ i18n_uchar32* i18n_ustring_to_UTF32_with_sub ( i18n_uchar32 *dest, int32_t dest_ * @see i18n_ustring_from_UTF32() * @see i18n_ustring_to_UTF32_with_sub() */ -i18n_uchar* i18n_ustring_from_UTF32_with_sub ( i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar32 *src, int32_t src_len, i18n_uchar32 sub_char, int32_t *num_substitutions, i18n_error_code_e *error_code ); +i18n_uchar* i18n_ustring_from_UTF32_with_sub(i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar32 *src, int32_t src_len, i18n_uchar32 sub_char, int32_t *num_substitutions, i18n_error_code_e *error_code); #ifdef __cplusplus } diff --git a/src/include/wearable/utils_i18n_private.h b/src/include/wearable/utils_i18n_private.h index b981e4f..70783e9 100755 --- a/src/include/wearable/utils_i18n_private.h +++ b/src/include/wearable/utils_i18n_private.h @@ -73,7 +73,7 @@ extern "C" { } while (0) #define retex_if(expr, val, fmt, arg...) do { \ - if(expr) { \ + if (expr) { \ ERR(fmt, ##arg); \ val; \ goto CATCH; \ @@ -86,8 +86,8 @@ extern "C" { #define ERR_MAPPING(ICU_ERROR, BASE_UTILS_ERROR) BASE_UTILS_ERROR = \ (i18n_error_code_e)_i18n_error_mapping((int)ICU_ERROR) -int _i18n_error_mapping ( int err ); -int _i18n_error_mapping_reverse ( int err ); +int _i18n_error_mapping(int err); +int _i18n_error_mapping_reverse(int err); #ifdef __cplusplus } diff --git a/src/include/wearable/utils_i18n_timezone.h b/src/include/wearable/utils_i18n_timezone.h index b10955a..a537e37 100755 --- a/src/include/wearable/utils_i18n_timezone.h +++ b/src/include/wearable/utils_i18n_timezone.h @@ -72,7 +72,7 @@ extern "C" { * @see i18n_timezone_create() * @see i18n_timezone_create_gmt() */ -int i18n_timezone_create_unknown ( i18n_timezone_h *timezone ); +int i18n_timezone_create_unknown(i18n_timezone_h *timezone); /** * @brief The GMT (=UTC) time zone has a raw offset of zero and does not use daylight savings time. @@ -85,7 +85,7 @@ int i18n_timezone_create_unknown ( i18n_timezone_h *timezone ); * @retval #I18N_ERROR_NONE Successful * @see i18n_timezone_create_unknown() */ -int i18n_timezone_create_gmt ( i18n_timezone_h *timezone ); +int i18n_timezone_create_gmt(i18n_timezone_h *timezone); /** * @brief Creates an i18n_timezone_h for the given timezone_id. @@ -96,7 +96,7 @@ int i18n_timezone_create_gmt ( i18n_timezone_h *timezone ); * * @retval #I18N_ERROR_NONE Successful */ -int i18n_timezone_create ( i18n_timezone_h *timezone, const char *timezone_id ); +int i18n_timezone_create(i18n_timezone_h *timezone, const char *timezone_id); /** * @brief Destroys an i18n_timezone_h. @@ -214,7 +214,7 @@ int i18n_timezone_get_equivalent_id(const char *timezone_id, int32_t index, char * * @retval #I18N_ERROR_NONE Successful */ -int i18n_timezone_create_default ( i18n_timezone_h *timezone ); +int i18n_timezone_create_default(i18n_timezone_h *timezone); /** * @brief Sets the default time zone (i.e., what's returned by #i18n_timezone_create_default()) to be the specified time zone. @@ -230,7 +230,7 @@ int i18n_timezone_create_default ( i18n_timezone_h *timezone ); * * @retval #I18N_ERROR_NONE Successful */ -int i18n_timezone_set_default( i18n_timezone_h timezone ); +int i18n_timezone_set_default(i18n_timezone_h timezone); /** * @brief Returns the timezone data version currently used by I18N. diff --git a/src/include/wearable/utils_i18n_types.h b/src/include/wearable/utils_i18n_types.h index a96cbed..7fa2b7a 100644 --- a/src/include/wearable/utils_i18n_types.h +++ b/src/include/wearable/utils_i18n_types.h @@ -169,20 +169,20 @@ typedef enum { #if !defined(U_WCHAR_IS_UTF16) && !defined(U_WCHAR_IS_UTF32) # ifdef __STDC_ISO_10646__ -# if (U_SIZEOF_WCHAR_T==2) +# if (U_SIZEOF_WCHAR_T == 2) # define U_WCHAR_IS_UTF16 -# elif (U_SIZEOF_WCHAR_T==4) +# elif (U_SIZEOF_WCHAR_T == 4) # define U_WCHAR_IS_UTF32 # endif # elif defined __UCS2__ -# if (U_PF_OS390 <= U_PLATFORM && U_PLATFORM <= U_PF_OS400) && (U_SIZEOF_WCHAR_T==2) +# if (U_PF_OS390 <= U_PLATFORM && U_PLATFORM <= U_PF_OS400) && (U_SIZEOF_WCHAR_T == 2) # define U_WCHAR_IS_UTF16 # endif # elif defined(__UCS4__) || (U_PLATFORM == U_PF_OS400 && defined(__UTF32__)) -# if (U_SIZEOF_WCHAR_T==4) +# if (U_SIZEOF_WCHAR_T == 4) # define U_WCHAR_IS_UTF32 # endif -# elif U_PLATFORM_IS_DARWIN_BASED || (U_SIZEOF_WCHAR_T==4 && U_PLATFORM_IS_LINUX_BASED) +# elif U_PLATFORM_IS_DARWIN_BASED || (U_SIZEOF_WCHAR_T == 4 && U_PLATFORM_IS_LINUX_BASED) # define U_WCHAR_IS_UTF32 # elif U_PLATFORM_HAS_WIN32_API # define U_WCHAR_IS_UTF16 @@ -198,7 +198,7 @@ typedef enum { typedef UCHAR_TYPE i18n_uchar; /* Not #elif U_HAVE_CHAR16_T -- because that is type-incompatible with pre-C++11 callers typedef char16_t i18n_uchar; */ -#elif U_SIZEOF_WCHAR_T==2 +#elif U_SIZEOF_WCHAR_T == 2 typedef wchar_t i18n_uchar; #elif defined(__CHAR16_TYPE__) typedef __CHAR16_TYPE__ i18n_uchar; @@ -1592,7 +1592,7 @@ typedef struct { * @brief Handle to struct representing a range of text containing a specific field. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef i18n_ufield_position_s* i18n_ufield_position_h; +typedef i18n_ufield_position_s *i18n_ufield_position_h; /** * @brief Enumeration for the possible date/time format styles. @@ -1690,7 +1690,7 @@ typedef enum { * @since_tizen 2.3.1 */ -typedef enum{ +typedef enum { I18N_UDISPCTX_TYPE_DIALECT_HANDLING, /**beyond the last character in the text being scanned. @@ -202,7 +202,7 @@ int32_t i18n_ubrk_first (i18n_ubreak_iterator_h break_iter); * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ubrk_first() */ -int32_t i18n_ubrk_last (i18n_ubreak_iterator_h break_iter); +int32_t i18n_ubrk_last(i18n_ubreak_iterator_h break_iter); /** * @brief Sets the iterator position to the first boundary preceding the specified @c offset. @@ -217,7 +217,7 @@ int32_t i18n_ubrk_last (i18n_ubreak_iterator_h break_iter); * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ubrk_following() */ -int32_t i18n_ubrk_preceding (i18n_ubreak_iterator_h break_iter, int32_t offset); +int32_t i18n_ubrk_preceding(i18n_ubreak_iterator_h break_iter, int32_t offset); /** * @brief Advances the iterator to the first boundary following the specified @c offset. @@ -232,7 +232,7 @@ int32_t i18n_ubrk_preceding (i18n_ubreak_iterator_h break_iter, int32_t offset); * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ubrk_preceding() */ -int32_t i18n_ubrk_following (i18n_ubreak_iterator_h break_iter, int32_t offset); +int32_t i18n_ubrk_following(i18n_ubreak_iterator_h break_iter, int32_t offset); /** * @brief Gets a locale for which text breaking information is available. @@ -247,7 +247,7 @@ int32_t i18n_ubrk_following (i18n_ubreak_iterator_h break_iter, int32_t offset); * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ubrk_count_available() */ -const char *i18n_ubrk_get_available (int32_t index); +const char *i18n_ubrk_get_available(int32_t index); /** * @brief Determines how many locales have text breaking information available. @@ -260,7 +260,7 @@ const char *i18n_ubrk_get_available (int32_t index); * @exception #I18N_ERROR_NONE Successful * @see i18n_ubrk_get_available() */ -int32_t i18n_ubrk_count_available (void); +int32_t i18n_ubrk_count_available(void); /** * @brief Returns true if the specfied position is a boundary position. @@ -275,7 +275,7 @@ int32_t i18n_ubrk_count_available (void); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_ubrk_is_boundary (i18n_ubreak_iterator_h break_iter, int32_t offset); +i18n_ubool i18n_ubrk_is_boundary(i18n_ubreak_iterator_h break_iter, int32_t offset); /** * @brief Returns the status from the break rule that determined the most recently @@ -293,7 +293,7 @@ i18n_ubool i18n_ubrk_is_boundary (i18n_ubreak_iterator_h break_iter, int32_t off * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ubrk_get_rule_status (i18n_ubreak_iterator_h break_iter); +int32_t i18n_ubrk_get_rule_status(i18n_ubreak_iterator_h break_iter); /** * @brief Gets the statuses from the break rules that determined the most recently @@ -316,7 +316,7 @@ int32_t i18n_ubrk_get_rule_status (i18n_ubreak_iterator_h break_iter); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ubrk_get_rule_status_vec (i18n_ubreak_iterator_h break_iter, int32_t *fill_in_vec, int32_t capacity); +int32_t i18n_ubrk_get_rule_status_vec(i18n_ubreak_iterator_h break_iter, int32_t *fill_in_vec, int32_t capacity); /** * @brief Returns the locale of the break iterator. You can choose between the valid and @@ -331,7 +331,7 @@ int32_t i18n_ubrk_get_rule_status_vec (i18n_ubreak_iterator_h break_iter, int32_ * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -const char *i18n_ubrk_get_locale_by_type (const i18n_ubreak_iterator_h break_iter, i18n_ulocale_data_locale_type_e type); +const char *i18n_ubrk_get_locale_by_type(const i18n_ubreak_iterator_h break_iter, i18n_ulocale_data_locale_type_e type); #ifdef __cplusplus } diff --git a/src/include/wearable/utils_i18n_ucalendar.h b/src/include/wearable/utils_i18n_ucalendar.h index 7de77be..a725a56 100644 --- a/src/include/wearable/utils_i18n_ucalendar.h +++ b/src/include/wearable/utils_i18n_ucalendar.h @@ -129,7 +129,7 @@ extern "C" { * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_set_default_timezone ( const i18n_uchar *zone_id ); +int i18n_ucalendar_set_default_timezone(const i18n_uchar *zone_id); /** * @brief Gets the current date and time. @@ -141,7 +141,7 @@ int i18n_ucalendar_set_default_timezone ( const i18n_uchar *zone_id ); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_get_now ( i18n_udate *date ); +int i18n_ucalendar_get_now(i18n_udate *date); /** * @brief Creates an #i18n_ucalendar_h. @@ -171,7 +171,7 @@ int i18n_ucalendar_get_now ( i18n_udate *date ); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @retval #I18N_ERROR_OUT_OF_MEMORY Out of memory */ -int i18n_ucalendar_create ( const i18n_uchar *zone_id, int32_t len, const char *locale, i18n_ucalendar_type_e type, i18n_ucalendar_h *calendar ); +int i18n_ucalendar_create(const i18n_uchar *zone_id, int32_t len, const char *locale, i18n_ucalendar_type_e type, i18n_ucalendar_h *calendar); /** * @brief Destroys an #i18n_ucalendar_h. @@ -182,7 +182,7 @@ int i18n_ucalendar_create ( const i18n_uchar *zone_id, int32_t len, const char * * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_destroy ( i18n_ucalendar_h calendar ); +int i18n_ucalendar_destroy(i18n_ucalendar_h calendar); /** * @brief Creates a copy of a #i18n_ucalendar_h. @@ -194,7 +194,7 @@ int i18n_ucalendar_destroy ( i18n_ucalendar_h calendar ); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_clone ( const i18n_ucalendar_h cal, i18n_ucalendar_h *identical_to_cal ); +int i18n_ucalendar_clone(const i18n_ucalendar_h cal, i18n_ucalendar_h *identical_to_cal); /** * @brief Gets the display name for a calendar's TimeZone. @@ -213,7 +213,7 @@ int i18n_ucalendar_clone ( const i18n_ucalendar_h cal, i18n_ucalendar_h *identic * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_get_timezone_displayname ( const i18n_ucalendar_h calendar, i18n_ucalendar_displayname_type_e type, const char *locale, i18n_uchar *result, int32_t result_len, int32_t *buf_size_needed ); +int i18n_ucalendar_get_timezone_displayname(const i18n_ucalendar_h calendar, i18n_ucalendar_displayname_type_e type, const char *locale, i18n_uchar *result, int32_t result_len, int32_t *buf_size_needed); /** * @brief Determines if an #i18n_ucalendar_h is currently in daylight savings time. @@ -227,7 +227,7 @@ int i18n_ucalendar_get_timezone_displayname ( const i18n_ucalendar_h calendar, i * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_is_in_daylight_time ( const i18n_ucalendar_h calendar, i18n_ubool *is_in ); +int i18n_ucalendar_is_in_daylight_time(const i18n_ucalendar_h calendar, i18n_ubool *is_in); /** * @brief Sets the value of a field in a #i18n_ucalendar_h. @@ -246,7 +246,7 @@ int i18n_ucalendar_is_in_daylight_time ( const i18n_ucalendar_h calendar, i18n_u * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_set ( i18n_ucalendar_h cal, i18n_ucalendar_date_fields_e field, int32_t val ); +int i18n_ucalendar_set(i18n_ucalendar_h cal, i18n_ucalendar_date_fields_e field, int32_t val); /** * @brief Sets a numeric attribute associated with an #i18n_ucalendar_h. @@ -263,7 +263,7 @@ int i18n_ucalendar_set ( i18n_ucalendar_h cal, i18n_ucalendar_date_fields_e fiel * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_set_attribute ( i18n_ucalendar_h calendar, i18n_ucalendar_attribute_e attr, int32_t val ); +int i18n_ucalendar_set_attribute(i18n_ucalendar_h calendar, i18n_ucalendar_attribute_e attr, int32_t val); /** * @brief Gets a numeric attribute associated with an i18n_ucalendar. @@ -281,7 +281,7 @@ int i18n_ucalendar_set_attribute ( i18n_ucalendar_h calendar, i18n_ucalendar_att * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_get_attribute ( i18n_ucalendar_h calendar, i18n_ucalendar_attribute_e attr, int32_t *val); +int i18n_ucalendar_get_attribute(i18n_ucalendar_h calendar, i18n_ucalendar_attribute_e attr, int32_t *val); /** * @brief Gets a calendar's current time in milliseconds. @@ -296,7 +296,7 @@ int i18n_ucalendar_get_attribute ( i18n_ucalendar_h calendar, i18n_ucalendar_att * @see i18n_ucalendar_set_milliseconds() * @see i18n_ucalendar_set_date_time() */ -int i18n_ucalendar_get_milliseconds( const i18n_ucalendar_h calendar, i18n_udate *date ); +int i18n_ucalendar_get_milliseconds(const i18n_ucalendar_h calendar, i18n_udate *date); /** * @brief Sets a calendar's current time in milliseconds. @@ -311,7 +311,7 @@ int i18n_ucalendar_get_milliseconds( const i18n_ucalendar_h calendar, i18n_udate * @see i18n_ucalendar_get_milliseconds() * @see i18n_ucalendar_set_date_time() */ -int i18n_ucalendar_set_milliseconds ( i18n_ucalendar_h calendar, i18n_udate milliseconds ); +int i18n_ucalendar_set_milliseconds(i18n_ucalendar_h calendar, i18n_udate milliseconds); /** * @brief Sets a calendar's current date. @@ -333,7 +333,7 @@ int i18n_ucalendar_set_milliseconds ( i18n_ucalendar_h calendar, i18n_udate mill * @see i18n_ucalendar_get_milliseconds() * @see i18n_ucalendar_set_milliseconds() */ -int i18n_ucalendar_set_date_time ( i18n_ucalendar_h calendar, int32_t year, int32_t month, int32_t date, int32_t hour, int32_t min, int32_t sec ); +int i18n_ucalendar_set_date_time(i18n_ucalendar_h calendar, int32_t year, int32_t month, int32_t date, int32_t hour, int32_t min, int32_t sec); /** * @brief Returns @c true if two #i18n_ucalendar_h calendars are equivalent. @@ -348,7 +348,7 @@ int i18n_ucalendar_set_date_time ( i18n_ucalendar_h calendar, int32_t year, int3 * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_is_equivalent_to ( const i18n_ucalendar_h calendar1, const i18n_ucalendar_h calendar2, i18n_ubool *equiv ); +int i18n_ucalendar_is_equivalent_to(const i18n_ucalendar_h calendar1, const i18n_ucalendar_h calendar2, i18n_ubool *equiv); /** * @brief Adds a specified signed amount to a particular field in a #i18n_ucalendar_h. @@ -368,7 +368,7 @@ int i18n_ucalendar_is_equivalent_to ( const i18n_ucalendar_h calendar1, const i1 * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_add ( i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field, int32_t amount ); +int i18n_ucalendar_add(i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field, int32_t amount); /** * @brief Gets the current value of a field from an #i18n_ucalendar_h. @@ -385,7 +385,7 @@ int i18n_ucalendar_add ( i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_get ( const i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field, int32_t *val ); +int i18n_ucalendar_get(const i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field, int32_t *val); // Newly Added APIs @@ -418,7 +418,7 @@ int i18n_ucalendar_get ( const i18n_ucalendar_h calendar, i18n_ucalendar_date_fi * * @return The date difference for the specified field. */ -int32_t i18n_ucalendar_get_field_difference ( i18n_ucalendar_h calendar, i18n_udate target, i18n_ucalendar_date_fields_e field, i18n_error_code_e *status ); +int32_t i18n_ucalendar_get_field_difference(i18n_ucalendar_h calendar, i18n_udate target, i18n_ucalendar_date_fields_e field, i18n_error_code_e *status); /** * @brief Creates an enumeration over system time zone IDs with the given filter conditions. @@ -437,7 +437,7 @@ int32_t i18n_ucalendar_get_field_difference ( i18n_ucalendar_h calendar, i18n_ud * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_timezone_id_enumeration_create ( i18n_system_timezone_type_e zone_type, const char *region, const int32_t *raw_offset, i18n_uenumeration_h *enumeration); +int i18n_ucalendar_timezone_id_enumeration_create(i18n_system_timezone_type_e zone_type, const char *region, const int32_t *raw_offset, i18n_uenumeration_h *enumeration); /** * @brief Creates an enumeration over all time zones. @@ -450,7 +450,7 @@ int i18n_ucalendar_timezone_id_enumeration_create ( i18n_system_timezone_type_e * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_timezones_create (i18n_uenumeration_h * enumeration); +int i18n_ucalendar_timezones_create(i18n_uenumeration_h * enumeration); /** * @brief Creates an enumeration over all time zones associated with the given country. @@ -466,7 +466,7 @@ int i18n_ucalendar_timezones_create (i18n_uenumeration_h * enumeration); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_country_timezones_create (const char *country, i18n_uenumeration_h * enumeration); +int i18n_ucalendar_country_timezones_create(const char *country, i18n_uenumeration_h * enumeration); /** * @brief Returns the default time zone. @@ -484,7 +484,7 @@ int i18n_ucalendar_country_timezones_create (const char *country, i18n_uenumerat * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid parameter */ -int32_t i18n_ucalendar_get_default_timezone (i18n_uchar *result, int32_t result_capacity); +int32_t i18n_ucalendar_get_default_timezone(i18n_uchar *result, int32_t result_capacity); /** * @brief Sets the TimeZone used by a #i18n_ucalendar_h. @@ -499,7 +499,7 @@ int32_t i18n_ucalendar_get_default_timezone (i18n_uchar *result, int32_t result_ * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_set_timezone ( i18n_ucalendar_h calendar, const i18n_uchar *zone_id, int32_t length ); +int i18n_ucalendar_set_timezone(i18n_ucalendar_h calendar, const i18n_uchar *zone_id, int32_t length); /** * @brief Gets the ID of the calendar's time zone. @@ -516,7 +516,7 @@ int i18n_ucalendar_set_timezone ( i18n_ucalendar_h calendar, const i18n_uchar *z * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ucalendar_get_timezone_id (const i18n_ucalendar_h calendar, i18n_uchar *result, int32_t result_length); +int32_t i18n_ucalendar_get_timezone_id(const i18n_ucalendar_h calendar, i18n_uchar *result, int32_t result_length); /** * @brief Sets the Gregorian Calendar change date. @@ -537,7 +537,7 @@ int32_t i18n_ucalendar_get_timezone_id (const i18n_ucalendar_h calendar, i18n_uc * * @see i18n_ucalendar_get_gregorian_change() */ -int i18n_ucalendar_set_gregorian_change ( i18n_ucalendar_h calendar, i18n_udate date); +int i18n_ucalendar_set_gregorian_change(i18n_ucalendar_h calendar, i18n_udate date); /** * @brief Gets the Gregorian Calendar change date. @@ -558,7 +558,7 @@ int i18n_ucalendar_set_gregorian_change ( i18n_ucalendar_h calendar, i18n_udate * * @see i18n_ucalendar_set_gregorian_change() */ -int i18n_ucalendar_get_gregorian_change (const i18n_ucalendar_h calendar, i18n_udate *date); +int i18n_ucalendar_get_gregorian_change(const i18n_ucalendar_h calendar, i18n_udate *date); /** * @brief Gets a locale for which calendars are available. @@ -575,7 +575,7 @@ int i18n_ucalendar_get_gregorian_change (const i18n_ucalendar_h calendar, i18n_u * @exception #I18N_ERROR_INVALID_PARAMETER Invalid parameter * @see i18n_ucalendar_count_available() */ -const char * i18n_ucalendar_get_available (int32_t locale_index); +const char * i18n_ucalendar_get_available(int32_t locale_index); /** * @brief Determines how many locales have calendars available. @@ -588,7 +588,7 @@ const char * i18n_ucalendar_get_available (int32_t locale_index); * @exception #I18N_ERROR_NONE Successful * @see i18n_ucalendar_get_available() */ -int32_t i18n_ucalendar_count_available (void); +int32_t i18n_ucalendar_count_available(void); /** * @brief Sets a calendar's current date. @@ -611,7 +611,7 @@ int32_t i18n_ucalendar_count_available (void); * @see i18n_ucalendar_set_milliseconds() * @see i18n_ucalendar_set_date_time() */ -int i18n_ucalendar_set_date (i18n_ucalendar_h calendar, int32_t year, int32_t month, int32_t date); +int i18n_ucalendar_set_date(i18n_ucalendar_h calendar, int32_t year, int32_t month, int32_t date); /** * @brief Adds a specified signed amount to a particular field in a #i18n_ucalendar_h. @@ -646,7 +646,7 @@ int i18n_ucalendar_set_date (i18n_ucalendar_h calendar, int32_t year, int32_t mo * @remarks #I18N_UCALENDAR_ZONE_OFFSET and #I18N_UCALENDAR_DST_OFFSET are not supported by this function. * @see i18n_ucalendar_add() */ -int i18n_ucalendar_roll (i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field, int32_t amount); +int i18n_ucalendar_roll(i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field, int32_t amount); /** * @brief Determines if a field in a #i18n_ucalendar_h is set. @@ -667,7 +667,7 @@ int i18n_ucalendar_roll (i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e * @see i18n_ucalendar_clear() * */ -i18n_ubool i18n_ucalendar_is_set (const i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field); +i18n_ubool i18n_ucalendar_is_set(const i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field); /** * @brief Clears a field in a #i18n_ucalendar_h. @@ -687,7 +687,7 @@ i18n_ubool i18n_ucalendar_is_set (const i18n_ucalendar_h calendar, i18n_ucalenda * @see i18n_ucalendar_clear() * */ -int i18n_ucalendar_clear_field (i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field); +int i18n_ucalendar_clear_field(i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field); /** * @brief Clears all fields in a #i18n_ucalendar_h. @@ -704,7 +704,7 @@ int i18n_ucalendar_clear_field (i18n_ucalendar_h calendar, i18n_ucalendar_date_f * @see i18n_ucalendar_clear_field() * */ -int i18n_ucalendar_clear (i18n_ucalendar_h calendar); +int i18n_ucalendar_clear(i18n_ucalendar_h calendar); /** * @brief Determines a limit for a field in an #i18n_ucalendar_h. @@ -731,7 +731,7 @@ int i18n_ucalendar_clear (i18n_ucalendar_h calendar); * * @return The requested value. */ -int32_t i18n_ucalendar_get_limit (const i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field, i18n_ucalendar_limit_type_e type); +int32_t i18n_ucalendar_get_limit(const i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field, i18n_ucalendar_limit_type_e type); /** * @brief Gets the locale for this @c calendar object. @@ -748,7 +748,7 @@ int32_t i18n_ucalendar_get_limit (const i18n_ucalendar_h calendar, i18n_ucalenda * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -const char *i18n_ucalendar_get_locale_by_type (const i18n_ucalendar_h calendar, i18n_ulocale_data_locale_type_e type); +const char *i18n_ucalendar_get_locale_by_type(const i18n_ucalendar_h calendar, i18n_ulocale_data_locale_type_e type); /** * @brief Returns the timezone data version currently used by ICU. @@ -759,7 +759,7 @@ const char *i18n_ucalendar_get_locale_by_type (const i18n_ucalendar_h calendar, * @return The version string, such as "2007f". * @exception #I18N_ERROR_NONE Successful */ -const char *i18n_ucalendar_get_tz_data_version (void); +const char *i18n_ucalendar_get_tz_data_version(void); /** * @brief Returns the canonical system timezone ID or the normalized custom time zone ID for the given time zone ID. @@ -778,7 +778,7 @@ const char *i18n_ucalendar_get_tz_data_version (void); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ucalendar_get_canonical_timezone_id (const i18n_uchar *id, int32_t length, i18n_uchar *result, int32_t result_capacity, i18n_ubool *is_system_id); +int32_t i18n_ucalendar_get_canonical_timezone_id(const i18n_uchar *id, int32_t length, i18n_uchar *result, int32_t result_capacity, i18n_ubool *is_system_id); /** * @brief Gets the resource keyword value string designating the calendar type for the #i18n_ucalendar_h. @@ -793,7 +793,7 @@ int32_t i18n_ucalendar_get_canonical_timezone_id (const i18n_uchar *id, int32_t * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -const char *i18n_ucalendar_get_type (const i18n_ucalendar_h calendar); +const char *i18n_ucalendar_get_type(const i18n_ucalendar_h calendar); /** * @brief Given a key and a locale, returns an array of string values in a preferred order that would make a difference. @@ -814,7 +814,7 @@ const char *i18n_ucalendar_get_type (const i18n_ucalendar_h calendar); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_get_keyword_values_for_locale (const char *key, const char *locale, i18n_ubool commonly_used, i18n_uenumeration_h *enumeration); +int i18n_ucalendar_get_keyword_values_for_locale(const char *key, const char *locale, i18n_ubool commonly_used, i18n_uenumeration_h *enumeration); /** * @brief Returns whether the given day of the week is a weekday, a weekend day, @@ -837,7 +837,7 @@ int i18n_ucalendar_get_keyword_values_for_locale (const char *key, const char *l * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucalendar_get_day_of_week_type (const i18n_ucalendar_h calendar, i18n_ucalendar_days_of_week_e day_of_week, i18n_ucalendar_weekday_type_e *weekday); +int i18n_ucalendar_get_day_of_week_type(const i18n_ucalendar_h calendar, i18n_ucalendar_days_of_week_e day_of_week, i18n_ucalendar_weekday_type_e *weekday); /** * @brief Returns the time during the day at which the weekend begins or ends in this calendar system. @@ -859,7 +859,7 @@ int i18n_ucalendar_get_day_of_week_type (const i18n_ucalendar_h calendar, i18n_u * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ucalendar_get_weekend_transition (const i18n_ucalendar_h calendar, i18n_ucalendar_days_of_week_e day_of_week); +int32_t i18n_ucalendar_get_weekend_transition(const i18n_ucalendar_h calendar, i18n_ucalendar_days_of_week_e day_of_week); /** * @brief Returns @c true if the given #i18n_udate is in the weekend in this calendar system. @@ -875,7 +875,7 @@ int32_t i18n_ucalendar_get_weekend_transition (const i18n_ucalendar_h calendar, * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_ucalendar_is_weekend (i18n_ucalendar_h calendar, i18n_udate date); +i18n_ubool i18n_ucalendar_is_weekend(i18n_ucalendar_h calendar, i18n_udate date); /** * @brief Get the #i18n_udate for the next/previous time zone transition relative @@ -896,7 +896,7 @@ i18n_ubool i18n_ucalendar_is_weekend (i18n_ucalendar_h calendar, i18n_udate date * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_ucalendar_get_timezone_transition_date (const i18n_ucalendar_h calendar, i18n_utimezone_transition_type_e type, i18n_udate *transition); +i18n_ubool i18n_ucalendar_get_timezone_transition_date(const i18n_ucalendar_h calendar, i18n_utimezone_transition_type_e type, i18n_udate *transition); /** * @} diff --git a/src/include/wearable/utils_i18n_uchar.h b/src/include/wearable/utils_i18n_uchar.h index 4194c05..4dc6e1e 100644 --- a/src/include/wearable/utils_i18n_uchar.h +++ b/src/include/wearable/utils_i18n_uchar.h @@ -149,7 +149,7 @@ extern "C" { * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uchar_get_int_property_value ( i18n_uchar32 c, i18n_uchar_uproperty_e which, int32_t *property_val ); +int i18n_uchar_get_int_property_value(i18n_uchar32 c, i18n_uchar_uproperty_e which, int32_t *property_val); /** * @brief Gets the Unicode allocation block that contains the character. @@ -161,7 +161,7 @@ int i18n_uchar_get_int_property_value ( i18n_uchar32 c, i18n_uchar_uproperty_e w * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uchar_get_ublock_code ( i18n_uchar32 c, i18n_uchar_ublock_code_e *block_val ); +int i18n_uchar_get_ublock_code(i18n_uchar32 c, i18n_uchar_ublock_code_e *block_val); #ifdef __cplusplus } diff --git a/src/include/wearable/utils_i18n_ucollator.h b/src/include/wearable/utils_i18n_ucollator.h index 4a40674..d492ffd 100755 --- a/src/include/wearable/utils_i18n_ucollator.h +++ b/src/include/wearable/utils_i18n_ucollator.h @@ -83,25 +83,25 @@ extern "C" { int ret = I18N_ERROR_NONE; int buf_01_len = 0, buf_02_len = 0; - for ( i = 0; i < sizeof( src ) / sizeof( src[0] ); i++ ) { - dlog_print(DLOG_INFO, LOG_TAG, "%s\n", src[i] ); + for (i = 0; i < sizeof(src) / sizeof(src[0]); i++) { + dlog_print(DLOG_INFO, LOG_TAG, "%s\n", src[i]); } // cat banana airplane // creates a collator ret = i18n_ucollator_create( "en_US", &coll ); // compares and sorts in ascending order - if ( ret == I18N_ERROR_NONE ) { - i18n_ucollator_set_strength( coll, I18N_UCOLLATOR_TERTIARY ); - for ( i = 0; i < 2; i++ ) { - for ( j = 0; j < 2 - i; j++ ) { - i18n_ustring_copy_ua( buf_01, src[j] ); - i18n_ustring_copy_ua( buf_02, src[j+1] ); - i18n_ustring_get_length( buf_01, &buf_01_len ); - i18n_ustring_get_length( buf_02, &buf_02_len ); + if (ret == I18N_ERROR_NONE) { + i18n_ucollator_set_strength(coll, I18N_UCOLLATOR_TERTIARY); + for (i = 0; i < 2; i++) { + for (j = 0; j < 2 - i; j++) { + i18n_ustring_copy_ua(buf_01, src[j]); + i18n_ustring_copy_ua(buf_02, src[j+1]); + i18n_ustring_get_length(buf_01, &buf_01_len); + i18n_ustring_get_length(buf_02, &buf_02_len); // compares buf_01 with buf_02 - i18n_ucollator_str_collator( coll, buf_01, buf_01_len, buf_02, buf_02_len, &result ); - if ( result == I18N_UCOLLATOR_GREATER ) { + i18n_ucollator_str_collator(coll, buf_01, buf_01_len, buf_02, buf_02_len, &result); + if (result == I18N_UCOLLATOR_GREATER) { tmp = src[j]; src[j] = src[j+1]; src[j+1] = tmp; @@ -112,8 +112,8 @@ extern "C" { // destroys the collator i18n_ucollator_destroy( coll ); // deallocate memory for collator - for ( i = 0; i < sizeof( src ) / sizeof( src[0] ); i++ ) { - dlog_print(DLOG_INFO, LOG_TAG, "%s\n", src[i] ); + for (i = 0; i < sizeof(src) / sizeof(src[0]); i++) { + dlog_print(DLOG_INFO, LOG_TAG, "%s\n", src[i]); } // ariplane banana cat * @endcode */ @@ -146,7 +146,7 @@ extern "C" { * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ucollator_destroy() */ -int i18n_ucollator_create ( const char *locale, i18n_ucollator_h *collator ); +int i18n_ucollator_create(const char *locale, i18n_ucollator_h *collator); /** * @brief Closes a i18n_ucollator_h. @@ -159,7 +159,7 @@ int i18n_ucollator_create ( const char *locale, i18n_ucollator_h *collator ); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ucollator_create() */ -int i18n_ucollator_destroy ( i18n_ucollator_h collator ); +int i18n_ucollator_destroy(i18n_ucollator_h collator); /** * @brief Compares two strings. @@ -178,7 +178,7 @@ int i18n_ucollator_destroy ( i18n_ucollator_h collator ); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ucollator_equal() */ -int i18n_ucollator_str_collator ( const i18n_ucollator_h collator, const i18n_uchar *src, int32_t src_len, const i18n_uchar *target, int32_t target_len, i18n_ucollator_result_e *result ); +int i18n_ucollator_str_collator(const i18n_ucollator_h collator, const i18n_uchar *src, int32_t src_len, const i18n_uchar *target, int32_t target_len, i18n_ucollator_result_e *result); /** * @brief Compares two strings for equality. @@ -196,7 +196,7 @@ int i18n_ucollator_str_collator ( const i18n_ucollator_h collator, const i18n_uc * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ucollator_str_collator() */ -int i18n_ucollator_equal ( const i18n_ucollator_h collator, const i18n_uchar *src, int32_t src_len, const i18n_uchar *target, int32_t target_len, i18n_ubool *equal ); +int i18n_ucollator_equal(const i18n_ucollator_h collator, const i18n_uchar *src, int32_t src_len, const i18n_uchar *target, int32_t target_len, i18n_ubool *equal); /** * @brief Sets the collation strength used in a collator. @@ -210,7 +210,7 @@ int i18n_ucollator_equal ( const i18n_ucollator_h collator, const i18n_uchar *sr * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucollator_set_strength ( i18n_ucollator_h collator, i18n_ucollator_strength_e strength ); +int i18n_ucollator_set_strength(i18n_ucollator_h collator, i18n_ucollator_strength_e strength); /** * @brief Sets a universal attribute setter. @@ -223,7 +223,7 @@ int i18n_ucollator_set_strength ( i18n_ucollator_h collator, i18n_ucollator_stre * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ucollator_set_attribute ( i18n_ucollator_h collator, i18n_ucollator_attribute_e attr, i18n_ucollator_attribute_value_e val ); +int i18n_ucollator_set_attribute(i18n_ucollator_h collator, i18n_ucollator_attribute_e attr, i18n_ucollator_attribute_value_e val); #ifdef __cplusplus } diff --git a/src/include/wearable/utils_i18n_udate.h b/src/include/wearable/utils_i18n_udate.h index d6504bb..440dfe6 100644 --- a/src/include/wearable/utils_i18n_udate.h +++ b/src/include/wearable/utils_i18n_udate.h @@ -107,21 +107,21 @@ // creates new i18n_udate_format_h to format dates and times ret = i18n_udate_create(I18N_UDATE_FULL , I18N_UDATE_FULL , locale, utf16_timezone_KR, -1, bestPattern, -1, &formatter_KR); - if ( ret != I18N_ERROR_NONE ) { + if (ret != I18N_ERROR_NONE) { dlog_print(DLOG_INFO, LOG_TAG, "i18n_udate_create failed !!! \n"); } if (!formatter_KR) { dlog_print(DLOG_INFO, LOG_TAG, "formatter is NULL\n"); } ret = i18n_udate_create(I18N_UDATE_FULL , I18N_UDATE_FULL , locale, utf16_timezone_LA, -1, bestPattern, -1, &formatter_LA); - if ( ret != I18N_ERROR_NONE ) { + if (ret != I18N_ERROR_NONE) { dlog_print(DLOG_INFO, LOG_TAG, "i18n_udate_create failed !!! \n"); } if (!formatter_LA) { dlog_print(DLOG_INFO, LOG_TAG, "formatter is NULL\n"); } ret = i18n_udate_create(I18N_UDATE_PATTERN , I18N_UDATE_PATTERN , locale, utf16_timezone_SaoPaulo, -1, bestPattern, -1, &formatter_SaoPaulo); - if ( ret != I18N_ERROR_NONE ) { + if (ret != I18N_ERROR_NONE) { dlog_print(DLOG_INFO, LOG_TAG, "i18n_udate_create failed !!! \n"); } if (!formatter_LA) { @@ -195,7 +195,7 @@ extern "C" { * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udate_create ( i18n_udate_format_style_e time_style, i18n_udate_format_style_e date_style, const char *locale, const i18n_uchar *tz_id, int32_t tz_id_len, const i18n_uchar *pattern, int pattern_len, i18n_udate_format_h *format ); +int i18n_udate_create(i18n_udate_format_style_e time_style, i18n_udate_format_style_e date_style, const char *locale, const i18n_uchar *tz_id, int32_t tz_id_len, const i18n_uchar *pattern, int pattern_len, i18n_udate_format_h *format); /** * @brief Destroys an #i18n_udate_format_h. @@ -207,7 +207,7 @@ int i18n_udate_create ( i18n_udate_format_style_e time_style, i18n_udate_format_ * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udate_destroy ( i18n_udate_format_h format ); +int i18n_udate_destroy(i18n_udate_format_h format); /** * @brief Formats a date using an #i18n_udate_format_h. @@ -231,7 +231,7 @@ int i18n_udate_destroy ( i18n_udate_format_h format ); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udate_format_date ( const i18n_udate_format_h format, i18n_udate date_to_format, i18n_uchar *result, int32_t result_len, i18n_ufield_position_h pos, int32_t *buf_size_needed ); +int i18n_udate_format_date(const i18n_udate_format_h format, i18n_udate date_to_format, i18n_uchar *result, int32_t result_len, i18n_ufield_position_h pos, int32_t *buf_size_needed); // Newly Added APIs @@ -250,7 +250,7 @@ int i18n_udate_format_date ( const i18n_udate_format_h format, i18n_udate date_t * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udate_to_calendar_date_field ( i18n_udate_format_field_e field, i18n_ucalendar_date_fields_e *date_field_type ); +int i18n_udate_to_calendar_date_field(i18n_udate_format_field_e field, i18n_ucalendar_date_fields_e *date_field_type); /** * @brief Creates a copy of an #i18n_udate_format_h. @@ -264,7 +264,7 @@ int i18n_udate_to_calendar_date_field ( i18n_udate_format_field_e field, i18n_uc * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udate_clone ( const i18n_udate_format_h format, i18n_udate_format_h *format_clone ); +int i18n_udate_clone(const i18n_udate_format_h format, i18n_udate_format_h *format_clone); /** * @brief Parses a string into an date/time using an #i18n_udate_format_h. @@ -290,7 +290,7 @@ int i18n_udate_clone ( const i18n_udate_format_h format, i18n_udate_format_h *fo * * @see i18n_udate_format_date() */ -int i18n_udate_parse ( const i18n_udate_format_h format, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos, i18n_udate *parsed_date ); +int i18n_udate_parse(const i18n_udate_format_h format, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos, i18n_udate *parsed_date); /** * @brief Parses a string into an date/time using an #i18n_udate_format_h. @@ -314,8 +314,8 @@ int i18n_udate_parse ( const i18n_udate_format_h format, const i18n_uchar *text, * * @see i18n_udate_format_date() */ -int i18n_udate_parse_calendar (const i18n_udate_format_h format, i18n_ucalendar_h *calendar, const i18n_uchar *text, - int32_t text_length, int32_t *parse_pos ); +int i18n_udate_parse_calendar(const i18n_udate_format_h format, i18n_ucalendar_h *calendar, const i18n_uchar *text, + int32_t text_length, int32_t *parse_pos); /** * @brief Determines if an #i18n_udate_format_h will perform lenient parsing. @@ -333,7 +333,7 @@ int i18n_udate_parse_calendar (const i18n_udate_format_h format, i18n_ucalendar_ * * @see i18n_udate_set_lenient() */ -i18n_ubool i18n_udate_is_lenient ( const i18n_udate_format_h format ); +i18n_ubool i18n_udate_is_lenient(const i18n_udate_format_h format); /** * @brief Specifies whether an #i18n_udate_format_h will perform lenient parsing. @@ -350,7 +350,7 @@ i18n_ubool i18n_udate_is_lenient ( const i18n_udate_format_h format ); * * @see i18n_udate_is_lenient() */ -int i18n_udate_set_lenient ( i18n_udate_format_h format, i18n_ubool is_lenient ); +int i18n_udate_set_lenient(i18n_udate_format_h format, i18n_ubool is_lenient); /** * @brief Gets the #i18n_ucalendar_h associated with an #i18n_udate_format_h. @@ -366,7 +366,7 @@ int i18n_udate_set_lenient ( i18n_udate_format_h format, i18n_ubool is_lenient ) * * @see i18n_udate_set_calendar() */ -int i18n_udate_get_calendar ( const i18n_udate_format_h format, i18n_ucalendar_h *calendar); +int i18n_udate_get_calendar(const i18n_udate_format_h format, i18n_ucalendar_h *calendar); /** * @brief Sets the #i18n_ucalendar_h associated with an #i18n_udate_format_h. @@ -382,7 +382,7 @@ int i18n_udate_get_calendar ( const i18n_udate_format_h format, i18n_ucalendar_h * * @see i18n_udate_get_calendar() */ -int i18n_udate_set_calendar ( i18n_udate_format_h format, const i18n_ucalendar_h calendar_to_set ); +int i18n_udate_set_calendar(i18n_udate_format_h format, const i18n_ucalendar_h calendar_to_set); /** * @brief Gets the #i18n_unumber_format_h associated with an #i18n_udate_format_h. @@ -398,7 +398,7 @@ int i18n_udate_set_calendar ( i18n_udate_format_h format, const i18n_ucalendar_h * * @see i18n_udate_set_number_format() */ -int i18n_udate_get_number_format ( const i18n_udate_format_h format, i18n_unumber_format_h *number_format ); +int i18n_udate_get_number_format(const i18n_udate_format_h format, i18n_unumber_format_h *number_format); /** * @brief Sets the #i18n_unumber_format_h associated with an #i18n_udate_format_h. @@ -414,7 +414,7 @@ int i18n_udate_get_number_format ( const i18n_udate_format_h format, i18n_unumbe * * @see i18n_udate_get_number_format() */ -int i18n_udate_set_number_format ( i18n_udate_format_h format, const i18n_unumber_format_h number_format_to_set ); +int i18n_udate_set_number_format(i18n_udate_format_h format, const i18n_unumber_format_h number_format_to_set); /** * @brief Gets a locale for which date/time formatting patterns are available. @@ -430,7 +430,7 @@ int i18n_udate_set_number_format ( i18n_udate_format_h format, const i18n_unumbe * @see i18n_udate_count_available() */ -const char *i18n_udate_get_available ( int32_t locale_index ); +const char *i18n_udate_get_available(int32_t locale_index); /** * @brief Determines how many locales have date/time formatting patterns available. @@ -444,7 +444,7 @@ const char *i18n_udate_get_available ( int32_t locale_index ); * * @see i18n_udate_get_available() */ -int32_t i18n_udate_count_available ( void ); +int32_t i18n_udate_count_available(void); /** * @brief Gets the year relative to which all 2-digit years are interpreted. @@ -461,7 +461,7 @@ int32_t i18n_udate_count_available ( void ); * * @see i18n_udate_set_2digit_year_start() */ -int i18n_udate_get_2digit_year_start ( const i18n_udate_format_h format, i18n_udate *year ); +int i18n_udate_get_2digit_year_start(const i18n_udate_format_h format, i18n_udate *year); /** * @brief Sets the year relative to which all 2-digit years will be interpreted. @@ -478,7 +478,7 @@ int i18n_udate_get_2digit_year_start ( const i18n_udate_format_h format, i18n_ud * * @see i18n_udate_get_2digit_year_start() */ -int i18n_udate_set_2digit_year_start ( i18n_udate_format_h format, i18n_udate date ); +int i18n_udate_set_2digit_year_start(i18n_udate_format_h format, i18n_udate date); /** * @brief Extracts the pattern from an #i18n_udate_format_h. @@ -499,8 +499,8 @@ int i18n_udate_set_2digit_year_start ( i18n_udate_format_h format, i18n_udate da * * @see i18n_udate_apply_pattern() */ -int32_t i18n_udate_to_pattern ( const i18n_udate_format_h format, i18n_ubool localized, i18n_uchar *result, - int32_t result_length ); +int32_t i18n_udate_to_pattern(const i18n_udate_format_h format, i18n_ubool localized, i18n_uchar *result, + int32_t result_length); /** * @brief Sets the pattern used by an #i18n_udate_format_h. @@ -518,8 +518,8 @@ int32_t i18n_udate_to_pattern ( const i18n_udate_format_h format, i18n_ubool loc * * @see i18n_udate_to_pattern() */ -int i18n_udate_apply_pattern ( i18n_udate_format_h format, i18n_ubool localized, const i18n_uchar *pattern, - int32_t pattern_length ); +int i18n_udate_apply_pattern(i18n_udate_format_h format, i18n_ubool localized, const i18n_uchar *pattern, + int32_t pattern_length); /** * @brief Gets the symbols associated with an #i18n_udate_format_h. @@ -543,8 +543,8 @@ int i18n_udate_apply_pattern ( i18n_udate_format_h format, i18n_ubool localized, * @see i18n_udate_count_symbols() * @see #i18n_udate_set_symbols() */ -int32_t i18n_udate_get_symbols ( const i18n_udate_format_h format, i18n_udate_format_symbol_type_e type, int32_t symbol_index, - i18n_uchar *result, int32_t result_length ); +int32_t i18n_udate_get_symbols(const i18n_udate_format_h format, i18n_udate_format_symbol_type_e type, int32_t symbol_index, + i18n_uchar *result, int32_t result_length); /** * @brief Counts the number of particular symbols for an #i18n_udate_format_h. @@ -564,7 +564,7 @@ int32_t i18n_udate_get_symbols ( const i18n_udate_format_h format, i18n_udate_fo * @see i18n_udate_get_symbols() * @see #i18n_udate_set_symbols() */ -int32_t i18n_udate_count_symbols ( const i18n_udate_format_h format, i18n_udate_format_symbol_type_e type ); +int32_t i18n_udate_count_symbols(const i18n_udate_format_h format, i18n_udate_format_symbol_type_e type); /** * @brief Sets the symbols associated with an #i18n_udate_format_h. @@ -587,8 +587,8 @@ int32_t i18n_udate_count_symbols ( const i18n_udate_format_h format, i18n_udate_ * @see i18n_udate_count_symbols() * @see #i18n_udate_get_symbols() */ -int i18n_udate_set_symbols ( i18n_udate_format_h format, i18n_udate_format_symbol_type_e type, int32_t symbol_index, - i18n_uchar *value, int32_t value_length ); +int i18n_udate_set_symbols(i18n_udate_format_h format, i18n_udate_format_symbol_type_e type, int32_t symbol_index, + i18n_uchar *value, int32_t value_length); /** * @brief Gets the locale for this date format object. @@ -605,7 +605,7 @@ int i18n_udate_set_symbols ( i18n_udate_format_h format, i18n_udate_format_symbo * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -const char * i18n_udate_get_locale_by_type ( const i18n_udate_format_h format, i18n_ulocale_data_locale_type_e type ); +const char * i18n_udate_get_locale_by_type(const i18n_udate_format_h format, i18n_ulocale_data_locale_type_e type); /** * @brief Sets a particular #i18n_udisplay_context_e value in the formatter, such as #I18N_UDISPLAY_CONTEXT_CAPITALIZATION_FOR_STANDALONE. @@ -620,7 +620,7 @@ const char * i18n_udate_get_locale_by_type ( const i18n_udate_format_h format, i * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udate_set_context ( i18n_udate_format_h format, i18n_udisplay_context_e value ); +int i18n_udate_set_context(i18n_udate_format_h format, i18n_udisplay_context_e value); /** diff --git a/src/include/wearable/utils_i18n_udatepg.h b/src/include/wearable/utils_i18n_udatepg.h index d46317d..8308288 100755 --- a/src/include/wearable/utils_i18n_udatepg.h +++ b/src/include/wearable/utils_i18n_udatepg.h @@ -106,21 +106,21 @@ // creates new i18n_udate_format to format dates and times ret = i18n_udate_create(I18N_UDATE_FULL , I18N_UDATE_FULL , locale, utf16_timezone_KR, -1, bestPattern, -1, &formatter_KR); - if ( ret != I18N_ERROR_NONE ) { + if (ret != I18N_ERROR_NONE) { dlog_print(DLOG_INFO, LOG_TAG, "i18n_udate_create failed !!! \n"); } if (!formatter_KR) { dlog_print(DLOG_INFO, LOG_TAG, "formatter is NULL\n"); } ret = i18n_udate_create(I18N_UDATE_FULL , I18N_UDATE_FULL , locale, utf16_timezone_LA, -1, bestPattern, -1, &formatter_LA); - if ( ret != I18N_ERROR_NONE ) { + if (ret != I18N_ERROR_NONE) { dlog_print(DLOG_INFO, LOG_TAG, "i18n_udate_create failed !!! \n"); } if (!formatter_LA) { dlog_print(DLOG_INFO, LOG_TAG, "formatter is NULL\n"); } ret = i18n_udate_create(I18N_UDATE_PATTERN , I18N_UDATE_PATTERN , locale, utf16_timezone_SaoPaulo, -1, bestPattern, -1, &formatter_SaoPaulo); - if ( ret != I18N_ERROR_NONE ) { + if (ret != I18N_ERROR_NONE) { dlog_print(DLOG_INFO, LOG_TAG, "i18n_udate_create failed !!! \n"); } if (!formatter_LA) { @@ -178,7 +178,7 @@ extern "C" { * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udatepg_create ( const char *locale, i18n_udatepg_h *dtpg ); +int i18n_udatepg_create(const char *locale, i18n_udatepg_h *dtpg); /** * @brief Destroys a generator. @@ -189,7 +189,7 @@ int i18n_udatepg_create ( const char *locale, i18n_udatepg_h *dtpg ); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udatepg_destroy ( i18n_udatepg_h dtpg ); +int i18n_udatepg_destroy(i18n_udatepg_h dtpg); /** * @brief Gets the best pattern matching the input skeleton. @@ -213,7 +213,7 @@ int i18n_udatepg_destroy ( i18n_udatepg_h dtpg ); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @retval #I18N_ERROR_BUFFER_OVERFLOW A result would not fit in the supplied buffer */ -int i18n_udatepg_get_best_pattern ( i18n_udatepg_h dtpg, const i18n_uchar *skeleton, int32_t len, i18n_uchar *best_pattern, int32_t capacity, int32_t *best_pattern_len ); +int i18n_udatepg_get_best_pattern(i18n_udatepg_h dtpg, const i18n_uchar *skeleton, int32_t len, i18n_uchar *best_pattern, int32_t capacity, int32_t *best_pattern_len); // Newly Added APIs @@ -229,7 +229,7 @@ int i18n_udatepg_get_best_pattern ( i18n_udatepg_h dtpg, const i18n_uchar *skele * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udatepg_create_empty (i18n_udatepg_h *dtpg); +int i18n_udatepg_create_empty(i18n_udatepg_h *dtpg); /** * @brief Creates a copy of a generator. @@ -242,7 +242,7 @@ int i18n_udatepg_create_empty (i18n_udatepg_h *dtpg); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udatepg_clone ( const i18n_udatepg_h dtpg, i18n_udatepg_h * dtpg_clone); +int i18n_udatepg_clone(const i18n_udatepg_h dtpg, i18n_udatepg_h * dtpg_clone); /** * @brief Gets the best pattern matching the input @a skeleton. @@ -273,8 +273,8 @@ int i18n_udatepg_clone ( const i18n_udatepg_h dtpg, i18n_udatepg_h * dtpg_clone) * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_udatepg_get_best_pattern_with_options ( i18n_udatepg_h dtpg, const i18n_uchar *skeleton, int32_t length, - i18n_udatepg_date_time_pattern_match_options_e options, i18n_uchar *best_pattern, int32_t capacity ); +int32_t i18n_udatepg_get_best_pattern_with_options(i18n_udatepg_h dtpg, const i18n_uchar *skeleton, int32_t length, + i18n_udatepg_date_time_pattern_match_options_e options, i18n_uchar *best_pattern, int32_t capacity); /** * @brief Gets a unique skeleton from a given pattern. For example, both "MMM-dd" and "dd/MMM" produce the skeleton "MMMdd". @@ -298,7 +298,7 @@ int32_t i18n_udatepg_get_best_pattern_with_options ( i18n_udatepg_h dtpg, const * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_udatepg_get_skeleton ( i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t length, i18n_uchar *skeleton, int32_t capacity ); +int32_t i18n_udatepg_get_skeleton(i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t length, i18n_uchar *skeleton, int32_t capacity); /** * @brief Gets a unique base skeleton from a given pattern. @@ -325,7 +325,7 @@ int32_t i18n_udatepg_get_skeleton ( i18n_udatepg_h dtpg, const i18n_uchar *patte * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_udatepg_get_base_skeleton ( i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t length, i18n_uchar *base_skeleton, int32_t capacity ); +int32_t i18n_udatepg_get_base_skeleton(i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t length, i18n_uchar *base_skeleton, int32_t capacity); /** * @brief Adds a pattern to the generator. @@ -353,7 +353,7 @@ int32_t i18n_udatepg_get_base_skeleton ( i18n_udatepg_h dtpg, const i18n_uchar * * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_udatepg_add_pattern ( i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t pattern_length, i18n_ubool override, i18n_uchar *conflicting_pattern, int32_t capacity, i18n_udatepg_date_time_pattern_conflict_e * conflict_status ); +int32_t i18n_udatepg_add_pattern(i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t pattern_length, i18n_ubool override, i18n_uchar *conflicting_pattern, int32_t capacity, i18n_udatepg_date_time_pattern_conflict_e * conflict_status); /** * @brief An append_item_format is a pattern used to append a field if there is no good match. @@ -379,7 +379,7 @@ int32_t i18n_udatepg_add_pattern ( i18n_udatepg_h dtpg, const i18n_uchar *patte * * @see i18n_udatepg_get_append_item_format() */ -int i18n_udatepg_set_append_item_format ( i18n_udatepg_h dtpg, i18n_udatepg_date_time_pattern_field_e field, const i18n_uchar *value, int32_t length ); +int i18n_udatepg_set_append_item_format(i18n_udatepg_h dtpg, i18n_udatepg_date_time_pattern_field_e field, const i18n_uchar *value, int32_t length); /** * @brief Getter corresponding to i18n_udatepg_set_append_item_format(). @@ -399,7 +399,7 @@ int i18n_udatepg_set_append_item_format ( i18n_udatepg_h dtpg, i18n_udatepg_date * * @see i18n_udatepg_set_append_item_format() */ -const i18n_uchar *i18n_udatepg_get_append_item_format ( const i18n_udatepg_h dtpg, i18n_udatepg_date_time_pattern_field_e field, int32_t *pattern_length ); +const i18n_uchar *i18n_udatepg_get_append_item_format(const i18n_udatepg_h dtpg, i18n_udatepg_date_time_pattern_field_e field, int32_t *pattern_length); /** * @brief Sets the name of field, e.g. "era" in English for ERA. @@ -418,8 +418,8 @@ const i18n_uchar *i18n_udatepg_get_append_item_format ( const i18n_udatepg_h dtp * * @see i18n_udatepg_get_append_item_name() */ -int i18n_udatepg_set_append_item_name ( i18n_udatepg_h dtpg, i18n_udatepg_date_time_pattern_field_e field, const i18n_uchar *value, - int32_t length ); +int i18n_udatepg_set_append_item_name(i18n_udatepg_h dtpg, i18n_udatepg_date_time_pattern_field_e field, const i18n_uchar *value, + int32_t length); /** * @brief Getter corresponding to i18n_udatepg_set_append_item_name(). @@ -439,8 +439,8 @@ int i18n_udatepg_set_append_item_name ( i18n_udatepg_h dtpg, i18n_udatepg_date_t * * @see i18n_udatepg_set_append_item_name() */ -const i18n_uchar *i18n_udatepg_get_append_item_name ( const i18n_udatepg_h dtpg, i18n_udatepg_date_time_pattern_field_e field, - int32_t *pattern_length ); +const i18n_uchar *i18n_udatepg_get_append_item_name(const i18n_udatepg_h dtpg, i18n_udatepg_date_time_pattern_field_e field, + int32_t *pattern_length); /** * @brief The date time format is a message format pattern used to compose date and time patterns. @@ -464,7 +464,7 @@ const i18n_uchar *i18n_udatepg_get_append_item_name ( const i18n_udatepg_h dtpg, * * @see i18n_udatepg_get_date_time_format() */ -int i18n_udatepg_set_date_time_format ( const i18n_udatepg_h dtpg, const i18n_uchar *date_time_format, int32_t length ); +int i18n_udatepg_set_date_time_format(const i18n_udatepg_h dtpg, const i18n_uchar *date_time_format, int32_t length); /** * @brief Getter corresponding to i18n_udatepg_set_date_time_format(). @@ -482,7 +482,7 @@ int i18n_udatepg_set_date_time_format ( const i18n_udatepg_h dtpg, const i18n_uc * * @see i18n_udatepg_set_date_time_format() */ -const i18n_uchar *i18n_udatepg_get_date_time_format ( const i18n_udatepg_h dtpg, int32_t *pattern_length ); +const i18n_uchar *i18n_udatepg_get_date_time_format(const i18n_udatepg_h dtpg, int32_t *pattern_length); /** * @brief The decimal value is used in formatting fractions of seconds. @@ -502,7 +502,7 @@ const i18n_uchar *i18n_udatepg_get_date_time_format ( const i18n_udatepg_h dtpg, * * @see i18n_udatepg_get_decimal() */ -int i18n_udatepg_set_decimal ( i18n_udatepg_h dtpg, const i18n_uchar *decimal, int32_t length ); +int i18n_udatepg_set_decimal(i18n_udatepg_h dtpg, const i18n_uchar *decimal, int32_t length); /** * @brief Getter corresponding to i18n_udatepg_set_decimal(). @@ -520,7 +520,7 @@ int i18n_udatepg_set_decimal ( i18n_udatepg_h dtpg, const i18n_uchar *decimal, i * * @see i18n_udatepg_set_decimal() */ -const i18n_uchar *i18n_udatepg_get_decimal ( const i18n_udatepg_h dtpg, int32_t *pattern_length ); +const i18n_uchar *i18n_udatepg_get_decimal(const i18n_udatepg_h dtpg, int32_t *pattern_length); /** * @brief Adjusts the field types (width and subtype) of a @a pattern to match what is in a @a skeleton. @@ -548,8 +548,8 @@ const i18n_uchar *i18n_udatepg_get_decimal ( const i18n_udatepg_h dtpg, int32_t * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_udatepg_replace_field_types ( i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t pattern_length, - const i18n_uchar *skeleton, int32_t skeleton_length, i18n_uchar *dest, int32_t dest_capacity ); +int32_t i18n_udatepg_replace_field_types(i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t pattern_length, + const i18n_uchar *skeleton, int32_t skeleton_length, i18n_uchar *dest, int32_t dest_capacity); /** * @brief Adjusts the field types (width and subtype) of a pattern to match what is in a @a skeleton. @@ -581,9 +581,9 @@ int32_t i18n_udatepg_replace_field_types ( i18n_udatepg_h dtpg, const i18n_uchar * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_udatepg_replace_field_types_with_options ( i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t pattern_length, +int32_t i18n_udatepg_replace_field_types_with_options(i18n_udatepg_h dtpg, const i18n_uchar *pattern, int32_t pattern_length, const i18n_uchar *skeleton, int32_t skeleton_length, i18n_udatepg_date_time_pattern_match_options_e options, - i18n_uchar *dest, int32_t dest_capacity ); + i18n_uchar *dest, int32_t dest_capacity); /** * @brief Creates an #i18n_uenumeration_h for list of all the skeletons in canonical form. @@ -597,7 +597,7 @@ int32_t i18n_udatepg_replace_field_types_with_options ( i18n_udatepg_h dtpg, con * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udatepg_skeletons_create ( const i18n_udatepg_h dtpg, i18n_uenumeration_h *enumeration ); +int i18n_udatepg_skeletons_create(const i18n_udatepg_h dtpg, i18n_uenumeration_h *enumeration); /** * @brief Creates an #i18n_uenumeration_h for list of all the base skeletons in canonical form. @@ -610,7 +610,7 @@ int i18n_udatepg_skeletons_create ( const i18n_udatepg_h dtpg, i18n_uenumeration * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_udatepg_base_skeletons_create ( const i18n_udatepg_h dtpg, i18n_uenumeration_h *enumeration ); +int i18n_udatepg_base_skeletons_create(const i18n_udatepg_h dtpg, i18n_uenumeration_h *enumeration); /** * @brief Gets the pattern corresponding to a given skeleton. @@ -628,7 +628,7 @@ int i18n_udatepg_base_skeletons_create ( const i18n_udatepg_h dtpg, i18n_uenumer * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -const i18n_uchar *i18n_udatepg_get_pattern_for_skeleton ( const i18n_udatepg_h dtpg, const i18n_uchar *skeleton, int32_t skeleton_length, int32_t *pattern_length ); +const i18n_uchar *i18n_udatepg_get_pattern_for_skeleton(const i18n_udatepg_h dtpg, const i18n_uchar *skeleton, int32_t skeleton_length, int32_t *pattern_length); #ifdef __cplusplus diff --git a/src/include/wearable/utils_i18n_uenumeration.h b/src/include/wearable/utils_i18n_uenumeration.h index bbfe620..543945d 100755 --- a/src/include/wearable/utils_i18n_uenumeration.h +++ b/src/include/wearable/utils_i18n_uenumeration.h @@ -61,7 +61,7 @@ extern "C" { * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uenumeration_destroy ( i18n_uenumeration_h enumeration ); +int i18n_uenumeration_destroy(i18n_uenumeration_h enumeration); /** * @brief Returns the number of elements that the iterator traverses. @@ -79,7 +79,7 @@ int i18n_uenumeration_destroy ( i18n_uenumeration_h enumeration ); * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @exception #I18N_ERROR_ENUM_OUT_OF_SYNC The iterator is out of sync */ -int32_t i18n_uenumeration_count ( i18n_uenumeration_h enumeration ); +int32_t i18n_uenumeration_count(i18n_uenumeration_h enumeration); /** * @brief Returns the next element in the iterator's list. @@ -102,7 +102,7 @@ int32_t i18n_uenumeration_count ( i18n_uenumeration_h enumeration ); * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @exception #I18N_ERROR_ENUM_OUT_OF_SYNC The iterator is out of sync */ -const i18n_uchar *i18n_uenumeration_unext ( i18n_uenumeration_h enumeration, int32_t *result_length ); +const i18n_uchar *i18n_uenumeration_unext(i18n_uenumeration_h enumeration, int32_t *result_length); /** * @brief Returns the next element in the iterator's list. @@ -128,7 +128,7 @@ const i18n_uchar *i18n_uenumeration_unext ( i18n_uenumeration_h enumeration, int * @exception #I18N_ERROR_INVARIANT_CONVERSION The underlying native string is i18n_uchar* and conversion to char* with the invariant converter fails. * This error pertains only to current string, so iteration might be able to continue successfully. */ -const char *i18n_uenumeration_next ( i18n_uenumeration_h enumeration, int32_t *result_length ); +const char *i18n_uenumeration_next(i18n_uenumeration_h enumeration, int32_t *result_length); /** * @brief Resets the iterator to the current list of service IDs. @@ -142,7 +142,7 @@ const char *i18n_uenumeration_next ( i18n_uenumeration_h enumeration, int32_t *r * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uenumeration_reset ( i18n_uenumeration_h enumeration ); +int i18n_uenumeration_reset(i18n_uenumeration_h enumeration); /** * @brief Given an array of const i18n_uchar* strings, return an #i18n_uenumeration_h. @@ -161,7 +161,7 @@ int i18n_uenumeration_reset ( i18n_uenumeration_h enumeration ); * * @see i18n_uenumeration_destroy() */ -int i18n_uenumeration_uchar_strings_enumeration_create(const i18n_uchar *const strings[], int32_t count, i18n_uenumeration_h *enumeration ); +int i18n_uenumeration_uchar_strings_enumeration_create(const i18n_uchar *const strings[], int32_t count, i18n_uenumeration_h *enumeration); /** * @brief Given an array of const char* strings (invariant chars only), return an #i18n_uenumeration_h. @@ -180,7 +180,7 @@ int i18n_uenumeration_uchar_strings_enumeration_create(const i18n_uchar *const s * * @see i18n_uenumeration_destroy() */ -int i18n_uenumeration_char_strings_enumeration_create(const char* const strings[], int32_t count, i18n_uenumeration_h *enumeration ); +int i18n_uenumeration_char_strings_enumeration_create(const char* const strings[], int32_t count, i18n_uenumeration_h *enumeration); /** * @} diff --git a/src/include/wearable/utils_i18n_ulocale.h b/src/include/wearable/utils_i18n_ulocale.h index a180152..18af395 100644 --- a/src/include/wearable/utils_i18n_ulocale.h +++ b/src/include/wearable/utils_i18n_ulocale.h @@ -61,21 +61,21 @@ // Gets default locale ret = i18n_ulocale_get_default(&locale); - if ( ret != I18N_ERROR_NONE ) { + if (ret != I18N_ERROR_NONE) { dlog_print(DLOG_ERROR, LOG_TAG, "i18n_ulocale_get_default() failed!!! \n"); } dlog_print(DLOG_INFO, LOG_TAG, "default locale : %s\n", locale); // default locale : en_GB.UTF-8 // Gets the language code for the specified locale ret = i18n_ulocale_get_language(locale, language, language_capacity, &buf_size_language); - if ( ret != I18N_ERROR_NONE ) { + if (ret != I18N_ERROR_NONE) { dlog_print(DLOG_ERROR, LOG_TAG, "i18n_ulocale_get_language() failed!!! \n"); } dlog_print(DLOG_INFO, LOG_TAG, "language code for the locale : %s\n", language); // language code for the locale : en // Gets the full name suitable for display for the specified locale ret = i18n_ulocale_get_display_name(locale, in_locale_id, result_w, 64, &buf_size_display_name); - if ( ret != I18N_ERROR_NONE ) { + if (ret != I18N_ERROR_NONE) { dlog_print(DLOG_ERROR, LOG_TAG, "i18n_ulocale_get_display_name() failed!!! \n"); } i18n_ustring_copy_au(result, result_w); @@ -120,7 +120,7 @@ extern "C" { * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ulocale_get_default ( const char **locale ); +int i18n_ulocale_get_default(const char **locale); /** * @brief Sets I18N's default locale. @@ -138,7 +138,7 @@ int i18n_ulocale_get_default ( const char **locale ); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ulocale_set_default ( const char *locale_id ); +int i18n_ulocale_set_default(const char *locale_id); /** * @brief Gets the language code for the specified locale. @@ -154,7 +154,7 @@ int i18n_ulocale_set_default ( const char *locale_id ); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ulocale_get_language ( const char *locale_id, char *language, int32_t language_capacity, int32_t *buf_size_language ); +int i18n_ulocale_get_language(const char *locale_id, char *language, int32_t language_capacity, int32_t *buf_size_language); /** * @brief Gets the country code for the specified locale. @@ -168,7 +168,7 @@ int i18n_ulocale_get_language ( const char *locale_id, char *language, int32_t l * @return The actual buffer size needed for the country code.\n * If it's greater than @a country_capacity, the returned country code will be truncated. */ -int32_t i18n_ulocale_get_country ( const char *locale_id, char *country, int32_t country_capacity, int *error ); +int32_t i18n_ulocale_get_country(const char *locale_id, char *country, int32_t country_capacity, int *error); /** * @brief Gets the full name suitable for display for the specified locale. @@ -186,7 +186,7 @@ int32_t i18n_ulocale_get_country ( const char *locale_id, char *country, int32_t * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ulocale_get_display_name ( const char *locale_id, const char *in_locale_id, i18n_uchar *result, int32_t max_result_size, int32_t *buf_size_display_name ); +int i18n_ulocale_get_display_name(const char *locale_id, const char *in_locale_id, i18n_uchar *result, int32_t max_result_size, int32_t *buf_size_display_name); /** * @brief Gets the specified locale from a list of all available locales. @@ -204,7 +204,7 @@ int i18n_ulocale_get_display_name ( const char *locale_id, const char *in_locale * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -const char* i18n_ulocale_get_available ( int32_t n ); +const char* i18n_ulocale_get_available(int32_t n); /** * @brief Gets the size of the all available locale list. @@ -215,7 +215,7 @@ const char* i18n_ulocale_get_available ( int32_t n ); * @return The size of the locale list * @exception #I18N_ERROR_NONE Success */ -int32_t i18n_ulocale_count_available ( void ); +int32_t i18n_ulocale_count_available(void); // Newly Added APIs @@ -237,7 +237,7 @@ int32_t i18n_ulocale_count_available ( void ); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_get_script ( const char *locale_id, char *script, int32_t script_capacity ); +int32_t i18n_ulocale_get_script(const char *locale_id, char *script, int32_t script_capacity); /** * @brief Gets the variant code for the specified locale. @@ -257,7 +257,7 @@ int32_t i18n_ulocale_get_script ( const char *locale_id, char *script, int32_t s * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_get_variant ( const char *locale_id, char *variant, int32_t variant_capacity ); +int32_t i18n_ulocale_get_variant(const char *locale_id, char *variant, int32_t variant_capacity); /** * @brief Gets the full name for the specified locale. @@ -279,7 +279,7 @@ int32_t i18n_ulocale_get_variant ( const char *locale_id, char *variant, int32_t * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_BUFFER_OVERFLOW A result would not fit in the supplied buffer */ -int32_t i18n_ulocale_get_name ( const char *locale_id, char *name, int32_t name_capacity ); +int32_t i18n_ulocale_get_name(const char *locale_id, char *name, int32_t name_capacity); /** * @brief Gets the full name for the specified locale. @@ -301,7 +301,7 @@ int32_t i18n_ulocale_get_name ( const char *locale_id, char *name, int32_t name_ * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_BUFFER_OVERFLOW A result would not fit in the supplied buffer */ -int32_t i18n_ulocale_canonicalize ( const char *locale_id, char *name, int32_t name_capacity ); +int32_t i18n_ulocale_canonicalize(const char *locale_id, char *name, int32_t name_capacity); /** * @brief Gets the ISO language code for the specified locale. @@ -315,7 +315,7 @@ int32_t i18n_ulocale_canonicalize ( const char *locale_id, char *name, int32_t n * * @exception #I18N_ERROR_NONE Successful */ -const char * i18n_ulocale_get_iso3_language ( const char *locale_id ); +const char * i18n_ulocale_get_iso3_language(const char *locale_id); /** * @brief Gets the ISO country code for the specified locale. @@ -329,7 +329,7 @@ const char * i18n_ulocale_get_iso3_language ( const char *locale_id ); * * @exception #I18N_ERROR_NONE Successful */ -const char * i18n_ulocale_get_iso3_country ( const char *locale_id ); +const char * i18n_ulocale_get_iso3_country(const char *locale_id); /** * @brief Gets the Win32 LCID value for the specified locale. @@ -344,7 +344,7 @@ const char * i18n_ulocale_get_iso3_country ( const char *locale_id ); * * @exception #I18N_ERROR_NONE Successful */ -uint32_t i18n_ulocale_get_lcid ( const char *locale_id ); +uint32_t i18n_ulocale_get_lcid(const char *locale_id); /** * @brief Gets the language name suitable for display for the specified locale. @@ -366,7 +366,7 @@ uint32_t i18n_ulocale_get_lcid ( const char *locale_id ); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_get_display_language ( const char *locale, const char *display_locale, i18n_uchar *language, int32_t language_capacity ); +int32_t i18n_ulocale_get_display_language(const char *locale, const char *display_locale, i18n_uchar *language, int32_t language_capacity); /** * @brief Gets the script name suitable for display for the specified locale. @@ -387,7 +387,7 @@ int32_t i18n_ulocale_get_display_language ( const char *locale, const char *disp * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_get_display_script ( const char *locale, const char *display_locale, i18n_uchar *script, int32_t script_capacity ); +int32_t i18n_ulocale_get_display_script(const char *locale, const char *display_locale, i18n_uchar *script, int32_t script_capacity); /** * @brief Gets the country name suitable for display for the specified locale. @@ -408,7 +408,7 @@ int32_t i18n_ulocale_get_display_script ( const char *locale, const char *displa * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_get_display_country ( const char *locale, const char *display_locale, i18n_uchar *country, int32_t country_capacity ); +int32_t i18n_ulocale_get_display_country(const char *locale, const char *display_locale, i18n_uchar *country, int32_t country_capacity); /** * @brief Gets the variant name suitable for display for the specified locale. @@ -429,7 +429,7 @@ int32_t i18n_ulocale_get_display_country ( const char *locale, const char *displ * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_get_display_variant ( const char *locale, const char *display_locale, i18n_uchar *variant, int32_t variant_capacity ); +int32_t i18n_ulocale_get_display_variant(const char *locale, const char *display_locale, i18n_uchar *variant, int32_t variant_capacity); /** * @brief Gets the keyword name suitable for display for the specified locale. @@ -481,7 +481,7 @@ int32_t i18n_ulocale_get_display_variant ( const char *locale, const char *displ * @see i18n_uenumeration_next() * @see i18n_uenumeration_destroy() */ -int32_t i18n_ulocale_get_display_keyword ( const char *keyword, const char *display_locale, i18n_uchar *dest, int32_t dest_capacity ); +int32_t i18n_ulocale_get_display_keyword(const char *keyword, const char *display_locale, i18n_uchar *dest, int32_t dest_capacity); /** * @brief Gets the value of the keyword suitable for display for the specified locale. @@ -506,7 +506,7 @@ int32_t i18n_ulocale_get_display_keyword ( const char *keyword, const char *disp * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_get_display_keyword_value ( const char *locale, const char *keyword, const char *display_locale, i18n_uchar *dest, int32_t dest_capacity ); +int32_t i18n_ulocale_get_display_keyword_value(const char *locale, const char *keyword, const char *display_locale, i18n_uchar *dest, int32_t dest_capacity); /** * @brief Gets a list of all available 2-letter language codes defined in ISO 639, @@ -523,7 +523,7 @@ int32_t i18n_ulocale_get_display_keyword_value ( const char *locale, const char * * @exception #I18N_ERROR_NONE Successful */ -const char * const *i18n_ulocale_get_iso_languages ( void ); +const char * const *i18n_ulocale_get_iso_languages(void); /** * @@ -539,7 +539,7 @@ const char * const *i18n_ulocale_get_iso_languages ( void ); * * @exception #I18N_ERROR_NONE Successful */ -const char * const *i18n_ulocale_get_iso_countries ( void ); +const char * const *i18n_ulocale_get_iso_countries(void); /** * @brief Truncates the locale ID string to get the parent locale ID. @@ -566,7 +566,7 @@ const char * const *i18n_ulocale_get_iso_countries ( void ); * in the @a locale_id from index 0 to the index of the last occurrence of * the underscore ("_") symbol. */ -int32_t i18n_ulocale_get_parent ( const char *locale_id, char *parent, int32_t parent_capacity ); +int32_t i18n_ulocale_get_parent(const char *locale_id, char *parent, int32_t parent_capacity); /** * @brief Gets the full name for the specified locale, like i18n_ulocale_get_name(), but without keywords. @@ -591,7 +591,7 @@ int32_t i18n_ulocale_get_parent ( const char *locale_id, char *parent, int32_t p * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_BUFFER_OVERFLOW A result would not fit in the supplied buffer */ -int32_t i18n_ulocale_get_base_name ( const char *locale_id, char *name, int32_t name_capacity ); +int32_t i18n_ulocale_get_base_name(const char *locale_id, char *name, int32_t name_capacity); /** * @brief Gets an enumeration of keywords for the specified locale. @@ -606,7 +606,7 @@ int32_t i18n_ulocale_get_base_name ( const char *locale_id, char *name, int32_t * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ulocale_keywords_create ( const char *locale_id, i18n_uenumeration_h *enumeration ); +int i18n_ulocale_keywords_create(const char *locale_id, i18n_uenumeration_h *enumeration); /** * @brief Gets the value for a keyword. @@ -626,7 +626,7 @@ int i18n_ulocale_keywords_create ( const char *locale_id, i18n_uenumeration_h *e * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_get_keyword_value ( const char *locale_id, const char *keyword_name, char *buffer, int32_t buffer_capacity ); +int32_t i18n_ulocale_get_keyword_value(const char *locale_id, const char *keyword_name, char *buffer, int32_t buffer_capacity); /** * @brief Sets or removes the value of the specified keyword. @@ -704,7 +704,7 @@ int32_t i18n_ulocale_get_keyword_value ( const char *locale_id, const char *keyw * * @see i18n_ulocale_get_keyword_value() */ -int32_t i18n_ulocale_set_keyword_value ( const char *keyword_name, const char *keyword_value, char *buffer, int32_t buffer_capacity ); +int32_t i18n_ulocale_set_keyword_value(const char *keyword_name, const char *keyword_value, char *buffer, int32_t buffer_capacity); /** * @brief Gets the layout character orientation for the specified locale. @@ -718,7 +718,7 @@ int32_t i18n_ulocale_set_keyword_value ( const char *keyword_name, const char *k * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ulocale_get_character_orientation ( const char *locale_id, i18n_ulocale_layout_type_e *layout_type ); +int i18n_ulocale_get_character_orientation(const char *locale_id, i18n_ulocale_layout_type_e *layout_type); /** * @brief Gets the layout line orientation for the specified locale. @@ -732,7 +732,7 @@ int i18n_ulocale_get_character_orientation ( const char *locale_id, i18n_ulocale * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_ulocale_get_line_orientation ( const char *locale_id, i18n_ulocale_layout_type_e *layout_type ); +int i18n_ulocale_get_line_orientation(const char *locale_id, i18n_ulocale_layout_type_e *layout_type); /** * @brief Gets the I18N locale ID for the specified Win32 LCID value. @@ -751,7 +751,7 @@ int i18n_ulocale_get_line_orientation ( const char *locale_id, i18n_ulocale_layo * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_get_locale_for_lcid ( uint32_t host_id, char *locale, int32_t locale_capacity ); +int32_t i18n_ulocale_get_locale_for_lcid(uint32_t host_id, char *locale, int32_t locale_capacity); /** * @brief Adds the likely subtags for a provided locale ID, per the algorithm described @@ -785,7 +785,7 @@ int32_t i18n_ulocale_get_locale_for_lcid ( uint32_t host_id, char *locale, int32 * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_add_likely_subtags ( const char *locale_id, char *maximized_locale_id, int32_t maximized_locale_id_capacity ); +int32_t i18n_ulocale_add_likely_subtags(const char *locale_id, char *maximized_locale_id, int32_t maximized_locale_id_capacity); /** * @brief Minimizes the subtags for a provided locale ID, per the algorithm described @@ -818,7 +818,7 @@ int32_t i18n_ulocale_add_likely_subtags ( const char *locale_id, char *maximized * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_minimize_subtags ( const char *locale_id, char *minimized_locale_id, int32_t minimized_locale_id_capacity ); +int32_t i18n_ulocale_minimize_subtags(const char *locale_id, char *minimized_locale_id, int32_t minimized_locale_id_capacity); /** * @brief Returns a locale ID for the specified BCP47 language tag string. @@ -849,7 +849,7 @@ int32_t i18n_ulocale_minimize_subtags ( const char *locale_id, char *minimized_l * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_for_language_tag ( const char *langtag, char *locale_id, int32_t locale_id_capacity, int32_t *parsed_length ); +int32_t i18n_ulocale_for_language_tag(const char *langtag, char *locale_id, int32_t locale_id_capacity, int32_t *parsed_length); /** * @brief Returns a well-formed language tag for this locale ID. @@ -877,7 +877,7 @@ int32_t i18n_ulocale_for_language_tag ( const char *langtag, char *locale_id, in * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ulocale_to_language_tag ( const char *locale_id, char *langtag, int32_t langtag_capacity, i18n_ubool strict ); +int32_t i18n_ulocale_to_language_tag(const char *locale_id, char *langtag, int32_t langtag_capacity, i18n_ubool strict); #ifdef __cplusplus } diff --git a/src/include/wearable/utils_i18n_unormalization.h b/src/include/wearable/utils_i18n_unormalization.h index 76ecbc0..15bad5d 100755 --- a/src/include/wearable/utils_i18n_unormalization.h +++ b/src/include/wearable/utils_i18n_unormalization.h @@ -81,7 +81,7 @@ extern "C" { * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unormalization_get_instance (const char *package_name, const char *name, i18n_unormalization_mode_e mode, +int i18n_unormalization_get_instance(const char *package_name, const char *name, i18n_unormalization_mode_e mode, i18n_unormalizer_h *normalizer); /** @@ -100,7 +100,7 @@ int i18n_unormalization_get_instance (const char *package_name, const char *name * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unormalization_normalize (i18n_unormalizer_h normalizer, const i18n_uchar *src, int32_t len, i18n_uchar *dest, int32_t capacity, int32_t *len_deststr); +int i18n_unormalization_normalize(i18n_unormalizer_h normalizer, const i18n_uchar *src, int32_t len, i18n_uchar *dest, int32_t capacity, int32_t *len_deststr); #ifdef __cplusplus } diff --git a/src/include/wearable/utils_i18n_unumber.h b/src/include/wearable/utils_i18n_unumber.h index f1e7cf3..4a4e2ac 100644 --- a/src/include/wearable/utils_i18n_unumber.h +++ b/src/include/wearable/utils_i18n_unumber.h @@ -106,8 +106,8 @@ extern "C" { * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unumber_create ( i18n_unumber_format_style_e style, const i18n_uchar *pattern, int32_t pattern_len, const char *locale, - i18n_uparse_error_s *parse_err, i18n_unumber_format_h *num_format ); +int i18n_unumber_create(i18n_unumber_format_style_e style, const i18n_uchar *pattern, int32_t pattern_len, const char *locale, + i18n_uparse_error_s *parse_err, i18n_unumber_format_h *num_format); /** * @brief Destroys an #i18n_unumber_format_h. @@ -119,7 +119,7 @@ int i18n_unumber_create ( i18n_unumber_format_style_e style, const i18n_uchar *p * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unumber_destroy ( i18n_unumber_format_h fmt ); +int i18n_unumber_destroy(i18n_unumber_format_h fmt); /** * @brief Gets a symbol associated with an #i18n_unumber_format_h. @@ -138,7 +138,7 @@ int i18n_unumber_destroy ( i18n_unumber_format_h fmt ); * @retval #I18N_ERROR_NONE Successful. * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unumber_get_symbol ( const i18n_unumber_format_h fmt, i18n_unumber_format_symbol_e symbol, i18n_uchar *buffer, int32_t size, int32_t *len_symbol ); +int i18n_unumber_get_symbol(const i18n_unumber_format_h fmt, i18n_unumber_format_symbol_e symbol, i18n_uchar *buffer, int32_t size, int32_t *len_symbol); // Newly Added APIs @@ -156,7 +156,7 @@ int i18n_unumber_get_symbol ( const i18n_unumber_format_h fmt, i18n_unumber_form * @retval #I18N_ERROR_NONE Successful. * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unumber_clone (const i18n_unumber_format_h fmt, i18n_unumber_format_h *fmt_clone); +int i18n_unumber_clone(const i18n_unumber_format_h fmt, i18n_unumber_format_h *fmt_clone); /** * @brief Formats an integer using a i18n_unumber_format_h. @@ -177,7 +177,7 @@ int i18n_unumber_clone (const i18n_unumber_format_h fmt, i18n_unumber_format_h * * * @return The total buffer size needed; if greater than result_length, the output was truncated. */ -int32_t i18n_unumber_format (const i18n_unumber_format_h fmt, int32_t number, i18n_uchar *result, int32_t result_length, i18n_ufield_position_s *pos, i18n_error_code_e *status); +int32_t i18n_unumber_format(const i18n_unumber_format_h fmt, int32_t number, i18n_uchar *result, int32_t result_length, i18n_ufield_position_s *pos, i18n_error_code_e *status); /** * @brief Formats an int64 using an #i18n_unumber_format_h. @@ -204,7 +204,7 @@ int32_t i18n_unumber_format (const i18n_unumber_format_h fmt, int32_t number, i1 * @exception #I18N_WARNING_STRING_NOT_TERMINATED If the formatted number fits into @a result but cannot be NULL-terminated (length == result_length) * @exception #I18N_ERROR_BUFFER_OVERFLOW If the formatted number doesn't fit into the @a result buffer */ -int32_t i18n_unumber_format_int64 (const i18n_unumber_format_h fmt, int64_t number, i18n_uchar *result, int32_t result_length, i18n_ufield_position_h pos); +int32_t i18n_unumber_format_int64(const i18n_unumber_format_h fmt, int64_t number, i18n_uchar *result, int32_t result_length, i18n_ufield_position_h pos); /** * @brief Formats a double using an #i18n_unumber_format_h. @@ -232,7 +232,7 @@ int32_t i18n_unumber_format_int64 (const i18n_unumber_format_h fmt, int64_t numb * @exception #I18N_WARNING_STRING_NOT_TERMINATED If the formatted number fits into @a result but cannot be NULL-terminated (length == result_length) * @exception #I18N_ERROR_BUFFER_OVERFLOW If the formatted number doesn't fit into the @a result buffer */ -int32_t i18n_unumber_format_double (const i18n_unumber_format_h fmt, double number, i18n_uchar *result, int32_t result_length, i18n_ufield_position_h pos); +int32_t i18n_unumber_format_double(const i18n_unumber_format_h fmt, double number, i18n_uchar *result, int32_t result_length, i18n_ufield_position_h pos); /** * @brief Formats a decimal number using an #i18n_unumber_format_h. @@ -263,7 +263,7 @@ int32_t i18n_unumber_format_double (const i18n_unumber_format_h fmt, double numb * @exception #I18N_WARNING_STRING_NOT_TERMINATED If the formatted number fits into @a result but cannot be NULL-terminated (length == result_length) * @exception #I18N_ERROR_BUFFER_OVERFLOW If the formatted number doesn't fit into the @a result buffer */ -int32_t i18n_unumber_format_decimal (const i18n_unumber_format_h fmt, const char *number, int32_t length, i18n_uchar *result, int32_t result_length, i18n_ufield_position_h pos); +int32_t i18n_unumber_format_decimal(const i18n_unumber_format_h fmt, const char *number, int32_t length, i18n_uchar *result, int32_t result_length, i18n_ufield_position_h pos); /** * @brief Formats a double currency amount using an #i18n_unumber_format_h. @@ -293,7 +293,7 @@ int32_t i18n_unumber_format_decimal (const i18n_unumber_format_h fmt, const char * @exception #I18N_WARNING_STRING_NOT_TERMINATED If the formatted number fits into @a result but cannot be NULL-terminated (length == result_length) * @exception #I18N_ERROR_BUFFER_OVERFLOW If the formatted number doesn't fit into the @a result buffer */ -int32_t i18n_unumber_format_double_currency (const i18n_unumber_format_h fmt, double number, i18n_uchar *currency, i18n_uchar *result, int32_t result_length, i18n_ufield_position_h pos); +int32_t i18n_unumber_format_double_currency(const i18n_unumber_format_h fmt, double number, i18n_uchar *currency, i18n_uchar *result, int32_t result_length, i18n_ufield_position_h pos); /** * @brief Parses a string into an integer using an #i18n_unumber_format_h. @@ -313,7 +313,7 @@ int32_t i18n_unumber_format_double_currency (const i18n_unumber_format_h fmt, do * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_unumber_parse (const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos); +int32_t i18n_unumber_parse(const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos); /** * @brief Parses a string into an int64 using an #i18n_unumber_format_h. @@ -333,7 +333,7 @@ int32_t i18n_unumber_parse (const i18n_unumber_format_h fmt, const i18n_uchar *t * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int64_t i18n_unumber_parse_int64 (const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos); +int64_t i18n_unumber_parse_int64(const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos); /** * @brief Parses a string into a double using an #i18n_unumber_format_h. @@ -353,7 +353,7 @@ int64_t i18n_unumber_parse_int64 (const i18n_unumber_format_h fmt, const i18n_uc * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -double i18n_unumber_parse_double (const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos); +double i18n_unumber_parse_double(const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos); /** * @brief Parses a number from a string into an unformatted numeric string using an #i18n_unumber_format_h. @@ -379,7 +379,7 @@ double i18n_unumber_parse_double (const i18n_unumber_format_h fmt, const i18n_uc * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_unumber_parse_decimal (const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos, char *out_buf, int32_t out_buf_length); +int32_t i18n_unumber_parse_decimal(const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos, char *out_buf, int32_t out_buf_length); /** * @brief Parses a string into a double and a currency using an #i18n_unumber_format_h. @@ -403,7 +403,7 @@ int32_t i18n_unumber_parse_decimal (const i18n_unumber_format_h fmt, const i18n_ * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -double i18n_unumber_parse_double_currency (const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos, i18n_uchar *currency); +double i18n_unumber_parse_double_currency(const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos, i18n_uchar *currency); /** * @brief Sets the pattern used by an #i18n_unumber_format_h. @@ -422,7 +422,7 @@ double i18n_unumber_parse_double_currency (const i18n_unumber_format_h fmt, cons * @retval #I18N_ERROR_NONE Successful. * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unumber_apply_pattern (i18n_unumber_format_h format, i18n_ubool localized, const i18n_uchar *pattern, int32_t pattern_length, i18n_uparse_error_s* parse_error); +int i18n_unumber_apply_pattern(i18n_unumber_format_h format, i18n_ubool localized, const i18n_uchar *pattern, int32_t pattern_length, i18n_uparse_error_s* parse_error); /** * @brief Gets a locale for which decimal formatting patterns are available. @@ -438,7 +438,7 @@ int i18n_unumber_apply_pattern (i18n_unumber_format_h format, i18n_ubool localiz * * @exception #I18N_ERROR_NONE Successful */ -const char *i18n_unumber_get_available (int32_t locale_index); +const char *i18n_unumber_get_available(int32_t locale_index); /** * @brief Determines how many locales have decimal formatting patterns available. @@ -452,7 +452,7 @@ const char *i18n_unumber_get_available (int32_t locale_index); * * @exception #I18N_ERROR_NONE Successful */ -int32_t i18n_unumber_count_available (void); +int32_t i18n_unumber_count_available(void); /** * @brief Gets a numeric attribute associated with an #i18n_unumber_format_h. @@ -474,7 +474,7 @@ int32_t i18n_unumber_count_available (void); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_unumber_get_attribute (const i18n_unumber_format_h fmt, i18n_unumber_format_attribute_e attr); +int32_t i18n_unumber_get_attribute(const i18n_unumber_format_h fmt, i18n_unumber_format_attribute_e attr); /** * @brief Sets a numeric attribute associated with an #i18n_unumber_format_h. @@ -499,7 +499,7 @@ int32_t i18n_unumber_get_attribute (const i18n_unumber_format_h fmt, i18n_unumbe * @retval #I18N_ERROR_NONE Successful. * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unumber_set_attribute (i18n_unumber_format_h fmt, i18n_unumber_format_attribute_e attr, int32_t new_value); +int i18n_unumber_set_attribute(i18n_unumber_format_h fmt, i18n_unumber_format_attribute_e attr, int32_t new_value); /** * @brief Gets a numeric attribute associated with an #i18n_unumber_format_h. @@ -517,7 +517,7 @@ int i18n_unumber_set_attribute (i18n_unumber_format_h fmt, i18n_unumber_format_a * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -double i18n_unumber_get_double_attribute (const i18n_unumber_format_h fmt, i18n_unumber_format_attribute_e attr); +double i18n_unumber_get_double_attribute(const i18n_unumber_format_h fmt, i18n_unumber_format_attribute_e attr); /** * @brief Sets a numeric attribute associated with an #i18n_unumber_format_h. @@ -534,7 +534,7 @@ double i18n_unumber_get_double_attribute (const i18n_unumber_format_h fmt, i18n_ * @retval #I18N_ERROR_NONE Successful. * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unumber_set_double_attribute (i18n_unumber_format_h fmt, i18n_unumber_format_attribute_e attr, double new_value); +int i18n_unumber_set_double_attribute(i18n_unumber_format_h fmt, i18n_unumber_format_attribute_e attr, double new_value); /** * @brief Gets a text attribute associated with an #i18n_unumber_format_h. @@ -557,7 +557,7 @@ int i18n_unumber_set_double_attribute (i18n_unumber_format_h fmt, i18n_unumber_f * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_unumber_get_text_attribute (const i18n_unumber_format_h fmt, i18n_unumber_format_text_attribute_e tag, i18n_uchar *result, int32_t result_length); +int32_t i18n_unumber_get_text_attribute(const i18n_unumber_format_h fmt, i18n_unumber_format_text_attribute_e tag, i18n_uchar *result, int32_t result_length); /** * @brief Sets a text attribute associated with an #i18n_unumber_format_h. @@ -577,7 +577,7 @@ int32_t i18n_unumber_get_text_attribute (const i18n_unumber_format_h fmt, i18n_u * @retval #I18N_ERROR_NONE Successful. * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unumber_set_text_attribute (const i18n_unumber_format_h fmt, i18n_unumber_format_text_attribute_e tag, const i18n_uchar *new_value, int32_t new_value_length); +int i18n_unumber_set_text_attribute(const i18n_unumber_format_h fmt, i18n_unumber_format_text_attribute_e tag, const i18n_uchar *new_value, int32_t new_value_length); /** * @brief Extracts the pattern from an #i18n_unumber_format_h. @@ -597,7 +597,7 @@ int i18n_unumber_set_text_attribute (const i18n_unumber_format_h fmt, i18n_unumb * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_unumber_to_pattern (const i18n_unumber_format_h fmt, i18n_ubool is_pattern_localized, i18n_uchar *result, int32_t result_length); +int32_t i18n_unumber_to_pattern(const i18n_unumber_format_h fmt, i18n_ubool is_pattern_localized, i18n_uchar *result, int32_t result_length); /** * @brief Sets a symbol associated with an #i18n_unumber_format_h. @@ -615,7 +615,7 @@ int32_t i18n_unumber_to_pattern (const i18n_unumber_format_h fmt, i18n_ubool is_ * @retval #I18N_ERROR_NONE Successful. * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_unumber_set_symbol (i18n_unumber_format_h fmt, i18n_unumber_format_symbol_e symbol, const i18n_uchar *value, int32_t length); +int i18n_unumber_set_symbol(i18n_unumber_format_h fmt, i18n_unumber_format_symbol_e symbol, const i18n_uchar *value, int32_t length); /** * @brief Gets the locale for this number format object. @@ -632,7 +632,7 @@ int i18n_unumber_set_symbol (i18n_unumber_format_h fmt, i18n_unumber_format_symb * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -const char *i18n_unumber_get_locale_by_type (const i18n_unumber_format_h fmt, i18n_ulocale_data_locale_type_e type); +const char *i18n_unumber_get_locale_by_type(const i18n_unumber_format_h fmt, i18n_ulocale_data_locale_type_e type); #ifdef __cplusplus diff --git a/src/include/wearable/utils_i18n_usearch.h b/src/include/wearable/utils_i18n_usearch.h index 8b1e1b9..95ac13a 100755 --- a/src/include/wearable/utils_i18n_usearch.h +++ b/src/include/wearable/utils_i18n_usearch.h @@ -101,7 +101,7 @@ extern "C" { * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_usearch_create_new ( const i18n_uchar *pattern, int32_t pattern_len, const i18n_uchar *text, +int i18n_usearch_create_new(const i18n_uchar *pattern, int32_t pattern_len, const i18n_uchar *text, int32_t text_len, const char *locale, i18n_ubreak_iterator_h break_iter, i18n_usearch_h *search_iter); /** @@ -114,7 +114,7 @@ int i18n_usearch_create_new ( const i18n_uchar *pattern, int32_t pattern_len, co * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_usearch_destroy ( i18n_usearch_h search_iter ); +int i18n_usearch_destroy(i18n_usearch_h search_iter); /** * @brief Returns the text that matches by the most recent call to i18n_usearch_first(), or so on. @@ -136,7 +136,7 @@ int i18n_usearch_destroy ( i18n_usearch_h search_iter ); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @retval #I18N_ERROR_BUFFER_OVERFLOW A result would not fit in the supplied buffer */ -int i18n_usearch_get_matched_text ( const i18n_usearch_h search_iter, i18n_uchar *result, int32_t result_capacity, int32_t *len_matched_text ); +int i18n_usearch_get_matched_text(const i18n_usearch_h search_iter, i18n_uchar *result, int32_t result_capacity, int32_t *len_matched_text); /** * @brief Gets the collator used for the language rules. @@ -151,7 +151,7 @@ int i18n_usearch_get_matched_text ( const i18n_usearch_h search_iter, i18n_uchar * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_usearch_get_collator ( const i18n_usearch_h search_iter, i18n_ucollator_h *collator ); +int i18n_usearch_get_collator(const i18n_usearch_h search_iter, i18n_ucollator_h *collator); /** * @brief Returns the first index at which the string text matches the search pattern. @@ -168,7 +168,7 @@ int i18n_usearch_get_collator ( const i18n_usearch_h search_iter, i18n_ucollator * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_usearch_first ( i18n_usearch_h search_iter, int32_t *index_first ); +int i18n_usearch_first(i18n_usearch_h search_iter, int32_t *index_first); #ifdef __cplusplus } diff --git a/src/include/wearable/utils_i18n_uset.h b/src/include/wearable/utils_i18n_uset.h index 6cf528e..8e40c1f 100755 --- a/src/include/wearable/utils_i18n_uset.h +++ b/src/include/wearable/utils_i18n_uset.h @@ -63,7 +63,7 @@ extern "C" { * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_uset_destroy() */ -int i18n_uset_create_empty (i18n_uset_h *set); +int i18n_uset_create_empty(i18n_uset_h *set); /** * @brief Creates an #i18n_uset_h object that contains the range of characters @@ -81,7 +81,7 @@ int i18n_uset_create_empty (i18n_uset_h *set); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_uset_destroy() */ -int i18n_uset_create (i18n_uchar32 start, i18n_uchar32 end, i18n_uset_h *set); +int i18n_uset_create(i18n_uchar32 start, i18n_uchar32 end, i18n_uset_h *set); /** * @brief Creates a set based on a given pattern. @@ -98,7 +98,7 @@ int i18n_uset_create (i18n_uchar32 start, i18n_uchar32 end, i18n_uset_h *set); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_uset_destroy() */ -int i18n_uset_create_pattern (const i18n_uchar *pattern, int32_t pattern_length, i18n_uset_h *set); +int i18n_uset_create_pattern(const i18n_uchar *pattern, int32_t pattern_length, i18n_uset_h *set); /** * @brief Creates a set based on a given pattern. @@ -117,7 +117,7 @@ int i18n_uset_create_pattern (const i18n_uchar *pattern, int32_t pattern_length, * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_uset_destroy() */ -int i18n_uset_create_pattern_options (const i18n_uchar *pattern, int32_t pattern_length, uint32_t options, i18n_uset_h *set); +int i18n_uset_create_pattern_options(const i18n_uchar *pattern, int32_t pattern_length, uint32_t options, i18n_uset_h *set); /** * @brief Disposes of the storage used by a #i18n_uset_h object. @@ -130,7 +130,7 @@ int i18n_uset_create_pattern_options (const i18n_uchar *pattern, int32_t pattern * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_destroy (i18n_uset_h set); +int i18n_uset_destroy(i18n_uset_h set); /** * @brief Returns a copy of this object. @@ -146,7 +146,7 @@ int i18n_uset_destroy (i18n_uset_h set); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_uset_clone_as_thawed() */ -int i18n_uset_clone (const i18n_uset_h set, i18n_uset_h *set_clone); +int i18n_uset_clone(const i18n_uset_h set, i18n_uset_h *set_clone); /** * @brief Determines whether the set has been frozen (made immutable) or not. @@ -164,7 +164,7 @@ int i18n_uset_clone (const i18n_uset_h set, i18n_uset_h *set_clone); * @see i18n_uset_freeze() * @see i18n_uset_clone_as_thawed() */ -i18n_ubool i18n_uset_is_frozen (const i18n_uset_h set); +i18n_ubool i18n_uset_is_frozen(const i18n_uset_h set); /** * @brief Freezes the set (make it immutable). @@ -185,7 +185,7 @@ i18n_ubool i18n_uset_is_frozen (const i18n_uset_h set); * @see i18n_uset_is_frozen() * @see i18n_uset_clone_as_thawed() */ -int i18n_uset_freeze (i18n_uset_h set); +int i18n_uset_freeze(i18n_uset_h set); /** * @brief Clones the set and make the clone mutable. @@ -202,7 +202,7 @@ int i18n_uset_freeze (i18n_uset_h set); * @see i18n_uset_is_frozen() * @see i18n_uset_clone() */ -int i18n_uset_clone_as_thawed (const i18n_uset_h set, i18n_uset_h *set_copy); +int i18n_uset_clone_as_thawed(const i18n_uset_h set, i18n_uset_h *set_copy); /** * @brief Causes the #i18n_uset_h object to represent the range start - end. @@ -218,7 +218,7 @@ int i18n_uset_clone_as_thawed (const i18n_uset_h set, i18n_uset_h *set_copy); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_set (i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); +int i18n_uset_set(i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); /** * @brief Modifies the set to represent the set specified by the given @@ -248,7 +248,7 @@ int i18n_uset_set (i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_uset_apply_pattern (i18n_uset_h set, const i18n_uchar *pattern, int32_t pattern_length, uint32_t options); +int32_t i18n_uset_apply_pattern(i18n_uset_h set, const i18n_uchar *pattern, int32_t pattern_length, uint32_t options); /** * @brief Modifies the set to contain those code points which have the given value @@ -271,7 +271,7 @@ int32_t i18n_uset_apply_pattern (i18n_uset_h set, const i18n_uchar *pattern, int * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_apply_int_property_value (i18n_uset_h set, i18n_uchar_uproperty_e prop, int32_t value); +int i18n_uset_apply_int_property_value(i18n_uset_h set, i18n_uchar_uproperty_e prop, int32_t value); /** * @brief Modifies the set to contain those code points which have the @@ -305,7 +305,7 @@ int i18n_uset_apply_int_property_value (i18n_uset_h set, i18n_uchar_uproperty_e * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_apply_property_alias (i18n_uset_h set, const i18n_uchar *prop, int32_t prop_length, const i18n_uchar *value, int32_t value_length); +int i18n_uset_apply_property_alias(i18n_uset_h set, const i18n_uchar *prop, int32_t prop_length, const i18n_uchar *value, int32_t value_length); /** * @brief Return true if the given position, in the given pattern, appears @@ -324,7 +324,7 @@ int i18n_uset_apply_property_alias (i18n_uset_h set, const i18n_uchar *prop, int * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_resembles_pattern (const i18n_uchar *pattern, int32_t pattern_length, int32_t pos); +i18n_ubool i18n_uset_resembles_pattern(const i18n_uchar *pattern, int32_t pattern_length, int32_t pos); /** * @brief Returns a string representation of the given @a set. @@ -347,7 +347,7 @@ i18n_ubool i18n_uset_resembles_pattern (const i18n_uchar *pattern, int32_t patte * * @see i18n_uset_pattern_create() */ -int32_t i18n_uset_to_pattern (const i18n_uset_h set, i18n_uchar *result, int32_t result_capacity, i18n_ubool escape_unprintable); +int32_t i18n_uset_to_pattern(const i18n_uset_h set, i18n_uchar *result, int32_t result_capacity, i18n_ubool escape_unprintable); /** * @brief Adds the given character to the given #i18n_uset_h. @@ -364,7 +364,7 @@ int32_t i18n_uset_to_pattern (const i18n_uset_h set, i18n_uchar *result, int32_t * * @see i18n_uset_contains() */ -int i18n_uset_add (i18n_uset_h set, i18n_uchar32 character); +int i18n_uset_add(i18n_uset_h set, i18n_uchar32 character); /** @@ -383,7 +383,7 @@ int i18n_uset_add (i18n_uset_h set, i18n_uchar32 character); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_add_all (i18n_uset_h set, const i18n_uset_h additional_set); +int i18n_uset_add_all(i18n_uset_h set, const i18n_uset_h additional_set); /** * @brief Adds the given range of characters to the given #i18n_uset_h. After this call, @@ -400,7 +400,7 @@ int i18n_uset_add_all (i18n_uset_h set, const i18n_uset_h additional_set); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_uset_contains() */ -int i18n_uset_add_range (i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); +int i18n_uset_add_range(i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); /** * @brief Adds the given string to the given #i18n_uset_h. @@ -417,7 +417,7 @@ int i18n_uset_add_range (i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_uset_contains_string() */ -int i18n_uset_add_string (i18n_uset_h set, const i18n_uchar *str, int32_t str_len); +int i18n_uset_add_string(i18n_uset_h set, const i18n_uchar *str, int32_t str_len); /** * @brief Adds each of the characters in this string to the set. Thus "ch" => {"c", "h"} @@ -433,7 +433,7 @@ int i18n_uset_add_string (i18n_uset_h set, const i18n_uchar *str, int32_t str_le * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_add_all_code_points (i18n_uset_h set, const i18n_uchar *str, int32_t str_len); +int i18n_uset_add_all_code_points(i18n_uset_h set, const i18n_uchar *str, int32_t str_len); /** * @brief Removes the given @a character from the given #i18n_uset_h. @@ -450,7 +450,7 @@ int i18n_uset_add_all_code_points (i18n_uset_h set, const i18n_uchar *str, int32 * * @see i18n_uset_contains() */ -int i18n_uset_remove (i18n_uset_h set, i18n_uchar32 character); +int i18n_uset_remove(i18n_uset_h set, i18n_uchar32 character); /** * @brief Removes the given range of characters from the given #i18n_uset_h. @@ -467,7 +467,7 @@ int i18n_uset_remove (i18n_uset_h set, i18n_uchar32 character); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_uset_contains() */ -int i18n_uset_remove_range (i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); +int i18n_uset_remove_range(i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); /** * @brief Removes the given string to the given #i18n_uset_h. @@ -484,7 +484,7 @@ int i18n_uset_remove_range (i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 en * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_uset_contains_string() */ -int i18n_uset_remove_string (i18n_uset_h set, const i18n_uchar *str, int32_t str_len); +int i18n_uset_remove_string(i18n_uset_h set, const i18n_uchar *str, int32_t str_len); /** * @brief Removes from this set all of its elements that are contained in the specified set. @@ -501,7 +501,7 @@ int i18n_uset_remove_string (i18n_uset_h set, const i18n_uchar *str, int32_t str * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_remove_all (i18n_uset_h set, const i18n_uset_h remove_set); +int i18n_uset_remove_all(i18n_uset_h set, const i18n_uset_h remove_set); /** * @brief Retains only the elements in this set that are contained in the specified range. @@ -520,7 +520,7 @@ int i18n_uset_remove_all (i18n_uset_h set, const i18n_uset_h remove_set); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_retain (i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); +int i18n_uset_retain(i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); /** * @brief Retains only the elements in this set that are contained in the @@ -539,7 +539,7 @@ int i18n_uset_retain (i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_retain_all (i18n_uset_h set, const i18n_uset_h retain); +int i18n_uset_retain_all(i18n_uset_h set, const i18n_uset_h retain); /** * @brief Reallocates this objects internal structures to take up the least @@ -553,7 +553,7 @@ int i18n_uset_retain_all (i18n_uset_h set, const i18n_uset_h retain); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_compact (i18n_uset_h set); +int i18n_uset_compact(i18n_uset_h set); /** * @brief Inverts this set. This operation modifies this set so that @@ -569,7 +569,7 @@ int i18n_uset_compact (i18n_uset_h set); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_complement (i18n_uset_h set); +int i18n_uset_complement(i18n_uset_h set); /** * @brief Complements in this set all elements contained in the specified set. @@ -586,7 +586,7 @@ int i18n_uset_complement (i18n_uset_h set); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_complement_all (i18n_uset_h set, const i18n_uset_h complement); +int i18n_uset_complement_all(i18n_uset_h set, const i18n_uset_h complement); /** * @brief Removes all of the elements from this set. @@ -600,7 +600,7 @@ int i18n_uset_complement_all (i18n_uset_h set, const i18n_uset_h complement); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_clear (i18n_uset_h set); +int i18n_uset_clear(i18n_uset_h set); /** * @brief Closes this set over the given attribute. @@ -633,7 +633,7 @@ int i18n_uset_clear (i18n_uset_h set); * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ustring_fold_case() */ -int i18n_uset_destroy_over (i18n_uset_h set, int32_t attributes); +int i18n_uset_destroy_over(i18n_uset_h set, int32_t attributes); /** * @brief Removes all strings from this set. @@ -645,7 +645,7 @@ int i18n_uset_destroy_over (i18n_uset_h set, int32_t attributes); * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int i18n_uset_remove_all_strings (i18n_uset_h set); +int i18n_uset_remove_all_strings(i18n_uset_h set); /** * @brief Returns true if the given #i18n_uset_h contains no characters and no @@ -661,7 +661,7 @@ int i18n_uset_remove_all_strings (i18n_uset_h set); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_is_empty (const i18n_uset_h set); +i18n_ubool i18n_uset_is_empty(const i18n_uset_h set); /** * @brief Returns @c true if the given #i18n_uset_h contains the given @a character. @@ -678,7 +678,7 @@ i18n_ubool i18n_uset_is_empty (const i18n_uset_h set); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_contains (const i18n_uset_h set, i18n_uchar32 character); +i18n_ubool i18n_uset_contains(const i18n_uset_h set, i18n_uchar32 character); /** * @brief Returns true if the given #i18n_uset_h contains all characters c @@ -696,7 +696,7 @@ i18n_ubool i18n_uset_contains (const i18n_uset_h set, i18n_uchar32 character); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_contains_range (const i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); +i18n_ubool i18n_uset_contains_range(const i18n_uset_h set, i18n_uchar32 start, i18n_uchar32 end); /** * @brief Returns true if the given #i18n_uset_h contains the given string. @@ -713,7 +713,7 @@ i18n_ubool i18n_uset_contains_range (const i18n_uset_h set, i18n_uchar32 start, * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_contains_string (const i18n_uset_h set, const i18n_uchar *str, int32_t str_len); +i18n_ubool i18n_uset_contains_string(const i18n_uset_h set, const i18n_uchar *str, int32_t str_len); /** * @brief Returns the index of the given @a character within this @a set, where @@ -732,7 +732,7 @@ i18n_ubool i18n_uset_contains_string (const i18n_uset_h set, const i18n_uchar *s * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_uset_index_of (const i18n_uset_h set, i18n_uchar32 character); +int32_t i18n_uset_index_of(const i18n_uset_h set, i18n_uchar32 character); /** * @brief Returns the character at the given index within this set, where @@ -751,7 +751,7 @@ int32_t i18n_uset_index_of (const i18n_uset_h set, i18n_uchar32 character); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar32 i18n_uset_char_at (const i18n_uset_h set, int32_t char_index); +i18n_uchar32 i18n_uset_char_at(const i18n_uset_h set, int32_t char_index); /** * @brief Returns the number of characters and strings contained in the given #i18n_uset_h. @@ -767,7 +767,7 @@ i18n_uchar32 i18n_uset_char_at (const i18n_uset_h set, int32_t char_index); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_uset_size (const i18n_uset_h set); +int32_t i18n_uset_size(const i18n_uset_h set); /** * @brief Returns the number of items in this set. @@ -784,7 +784,7 @@ int32_t i18n_uset_size (const i18n_uset_h set); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_uset_get_item_count (const i18n_uset_h set); +int32_t i18n_uset_get_item_count(const i18n_uset_h set); /** * @brief Returns an item of this set. @@ -809,7 +809,7 @@ int32_t i18n_uset_get_item_count (const i18n_uset_h set); * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_uset_get_item (const i18n_uset_h set, int32_t item_index, i18n_uchar32 *start, i18n_uchar32 *end, i18n_uchar *str, int32_t str_capacity); +int32_t i18n_uset_get_item(const i18n_uset_h set, int32_t item_index, i18n_uchar32 *start, i18n_uchar32 *end, i18n_uchar *str, int32_t str_capacity); /** * @brief Returns true if set1 contains all the characters and strings of set2. It answers the question, 'Is set1 a superset of set2?' @@ -825,7 +825,7 @@ int32_t i18n_uset_get_item (const i18n_uset_h set, int32_t item_index, i18n_ucha * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_contains_all (const i18n_uset_h set1, const i18n_uset_h set2); +i18n_ubool i18n_uset_contains_all(const i18n_uset_h set1, const i18n_uset_h set2); /** * @brief Returns true if this set contains all the characters of the given string. @@ -844,7 +844,7 @@ i18n_ubool i18n_uset_contains_all (const i18n_uset_h set1, const i18n_uset_h set * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_contains_all_code_points (const i18n_uset_h set, const i18n_uchar *str, int32_t str_len); +i18n_ubool i18n_uset_contains_all_code_points(const i18n_uset_h set, const i18n_uchar *str, int32_t str_len); /** * @brief Returns true if set1 contains none of the characters and strings of set2. @@ -861,7 +861,7 @@ i18n_ubool i18n_uset_contains_all_code_points (const i18n_uset_h set, const i18n * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_contains_none (const i18n_uset_h set1, const i18n_uset_h set2); +i18n_ubool i18n_uset_contains_none(const i18n_uset_h set1, const i18n_uset_h set2); /** * @brief Returns true if set1 contains some of the characters and strings of set2. @@ -878,7 +878,7 @@ i18n_ubool i18n_uset_contains_none (const i18n_uset_h set1, const i18n_uset_h se * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_contains_some (const i18n_uset_h set1, const i18n_uset_h set2); +i18n_ubool i18n_uset_contains_some(const i18n_uset_h set1, const i18n_uset_h set2); /** * @brief Returns the length of the initial substring of the input string which @@ -907,7 +907,7 @@ i18n_ubool i18n_uset_contains_some (const i18n_uset_h set1, const i18n_uset_h se * * @see #i18n_uset_span_condition_e */ -int32_t i18n_uset_span (const i18n_uset_h set, const i18n_uchar *str, int32_t length, i18n_uset_span_condition_e span_condition); +int32_t i18n_uset_span(const i18n_uset_h set, const i18n_uchar *str, int32_t length, i18n_uset_span_condition_e span_condition); /** * @brief Returns the start of the trailing substring of the input string which @@ -935,7 +935,7 @@ int32_t i18n_uset_span (const i18n_uset_h set, const i18n_uchar *str, int32_t le * * @see #i18n_uset_span_condition_e */ -int32_t i18n_uset_span_back (const i18n_uset_h set, const i18n_uchar *str, int32_t length, i18n_uset_span_condition_e span_condition); +int32_t i18n_uset_span_back(const i18n_uset_h set, const i18n_uchar *str, int32_t length, i18n_uset_span_condition_e span_condition); /** * @brief Returns the length of the initial substring of the input string which @@ -964,7 +964,7 @@ int32_t i18n_uset_span_back (const i18n_uset_h set, const i18n_uchar *str, int32 * * @see #i18n_uset_span_condition_e */ -int32_t i18n_uset_span_utf8 (const i18n_uset_h set, const char *str, int32_t length, i18n_uset_span_condition_e span_condition); +int32_t i18n_uset_span_utf8(const i18n_uset_h set, const char *str, int32_t length, i18n_uset_span_condition_e span_condition); /** * @brief Returns the start of the trailing substring of the input string which @@ -992,7 +992,7 @@ int32_t i18n_uset_span_utf8 (const i18n_uset_h set, const char *str, int32_t len * * @see #i18n_uset_span_condition_e */ -int32_t i18n_uset_span_back_utf8 (const i18n_uset_h set, const char *str, int32_t length, i18n_uset_span_condition_e span_condition); +int32_t i18n_uset_span_back_utf8(const i18n_uset_h set, const char *str, int32_t length, i18n_uset_span_condition_e span_condition); /** * @brief Returns true if set1 contains all of the characters and strings @@ -1009,7 +1009,7 @@ int32_t i18n_uset_span_back_utf8 (const i18n_uset_h set, const char *str, int32_ * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_uset_equals (const i18n_uset_h set1, const i18n_uset_h set2); +i18n_ubool i18n_uset_equals(const i18n_uset_h set1, const i18n_uset_h set2); /********************************************************************* * Serialized set API @@ -1070,7 +1070,7 @@ i18n_ubool i18n_uset_equals (const i18n_uset_h set1, const i18n_uset_h set2); * @exception #I18N_ERROR_INDEX_OUTOFBOUNDS If n+2*m > 0x7FFF * @exception #I18N_ERROR_BUFFER_OVERFLOW If n+2*m+(m != 0 ? 2 : 1) > dest_capacity. */ -int32_t i18n_uset_serialize (const i18n_uset_h set, uint16_t *dest, int32_t dest_capacity); +int32_t i18n_uset_serialize(const i18n_uset_h set, uint16_t *dest, int32_t dest_capacity); /** * @brief Given a serialized array, fill in the given serialized set object. @@ -1089,7 +1089,7 @@ int32_t i18n_uset_serialize (const i18n_uset_h set, uint16_t *dest, int32_t dest * * @see #i18n_userialized_set_s */ -i18n_ubool i18n_uset_get_serialized_set (const uint16_t *src, int32_t src_length, i18n_userialized_set_s* fill_set); +i18n_ubool i18n_uset_get_serialized_set(const uint16_t *src, int32_t src_length, i18n_userialized_set_s* fill_set); /** * @brief Sets the #i18n_userialized_set_s to contain the given @a character (and nothing else). @@ -1104,7 +1104,7 @@ i18n_ubool i18n_uset_get_serialized_set (const uint16_t *src, int32_t src_length * * @see #i18n_userialized_set_s */ -int i18n_uset_set_serialized_to_one (i18n_uchar32 character, i18n_userialized_set_s* fill_set); +int i18n_uset_set_serialized_to_one(i18n_uchar32 character, i18n_userialized_set_s* fill_set); /** * @brief Returns @c true if the given #i18n_userialized_set_s contains the given @a character. @@ -1121,7 +1121,7 @@ int i18n_uset_set_serialized_to_one (i18n_uchar32 character, i18n_userialized_se * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see #i18n_userialized_set_s */ -i18n_ubool i18n_uset_serialized_contains (const i18n_userialized_set_s* set, i18n_uchar32 character); +i18n_ubool i18n_uset_serialized_contains(const i18n_userialized_set_s* set, i18n_uchar32 character); /** * @brief Returns the number of disjoint ranges of characters contained in @@ -1139,7 +1139,7 @@ i18n_ubool i18n_uset_serialized_contains (const i18n_userialized_set_s* set, i18 * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see #i18n_userialized_set_s */ -int32_t i18n_uset_get_serialized_range_count (const i18n_userialized_set_s* set); +int32_t i18n_uset_get_serialized_range_count(const i18n_userialized_set_s* set); /** * @brief Returns a range of characters contained in the given serialized set. @@ -1161,7 +1161,7 @@ int32_t i18n_uset_get_serialized_range_count (const i18n_userialized_set_s* set) * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see #i18n_userialized_set_s */ -i18n_ubool i18n_uset_get_serialized_range (const i18n_userialized_set_s* set, int32_t range_index, i18n_uchar32 *p_start, i18n_uchar32 *p_end); +i18n_ubool i18n_uset_get_serialized_range(const i18n_userialized_set_s* set, int32_t range_index, i18n_uchar32 *p_start, i18n_uchar32 *p_end); /** * @} diff --git a/src/include/wearable/utils_i18n_ustring.h b/src/include/wearable/utils_i18n_ustring.h index 4e67aa0..92d5ae0 100755 --- a/src/include/wearable/utils_i18n_ustring.h +++ b/src/include/wearable/utils_i18n_ustring.h @@ -83,7 +83,7 @@ extern "C" { * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_get_length ( const i18n_uchar *s ); +int32_t i18n_ustring_get_length(const i18n_uchar *s); /** * @brief Counts Unicode code points in the length #i18n_uchar code units of the string. @@ -101,7 +101,7 @@ int32_t i18n_ustring_get_length ( const i18n_uchar *s ); * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_count_char32 ( const i18n_uchar *s, int32_t length ); +int32_t i18n_ustring_count_char32(const i18n_uchar *s, int32_t length); /** * @brief Checks if the string contains more Unicode code points than a certain number. @@ -122,7 +122,7 @@ int32_t i18n_ustring_count_char32 ( const i18n_uchar *s, int32_t length ); * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_ubool i18n_ustring_has_more_char32_than ( const i18n_uchar *s, int32_t length, int32_t number ); +i18n_ubool i18n_ustring_has_more_char32_than(const i18n_uchar *s, int32_t length, int32_t number); /** * @brief Concatenates two ustrings. @@ -139,7 +139,7 @@ i18n_ubool i18n_ustring_has_more_char32_than ( const i18n_uchar *s, int32_t leng * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_cat ( i18n_uchar *dest, const i18n_uchar *src ); +i18n_uchar* i18n_ustring_cat(i18n_uchar *dest, const i18n_uchar *src); /** * @brief Concatenate two ustrings. @@ -157,7 +157,7 @@ i18n_uchar* i18n_ustring_cat ( i18n_uchar *dest, const i18n_uchar *src ); * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_cat_n ( i18n_uchar *dest, const i18n_uchar *src, int32_t n ); +i18n_uchar* i18n_ustring_cat_n(i18n_uchar *dest, const i18n_uchar *src, int32_t n); /** * @brief Finds the first occurrence of a substring in a string. @@ -182,7 +182,7 @@ i18n_uchar* i18n_ustring_cat_n ( i18n_uchar *dest, const i18n_uchar *src, int32_ * @see i18n_ustring_find_first() * @see i18n_ustring_find_last() */ -i18n_uchar* i18n_ustring_string ( const i18n_uchar *s, const i18n_uchar *sub_string ); +i18n_uchar* i18n_ustring_string(const i18n_uchar *s, const i18n_uchar *sub_string); /** * @brief Finds the first occurrence of a substring in a string. @@ -208,7 +208,7 @@ i18n_uchar* i18n_ustring_string ( const i18n_uchar *s, const i18n_uchar *sub_str * @see i18n_ustring_string() * @see i18n_ustring_find_last() */ -i18n_uchar* i18n_ustring_find_first ( const i18n_uchar *s, int32_t length, const i18n_uchar *sub_string, int32_t sub_length ); +i18n_uchar* i18n_ustring_find_first(const i18n_uchar *s, int32_t length, const i18n_uchar *sub_string, int32_t sub_length); /** * @brief Finds the first occurrence of a BMP code point in a string. @@ -229,7 +229,7 @@ i18n_uchar* i18n_ustring_find_first ( const i18n_uchar *s, int32_t length, const * @see i18n_ustring_string() * @see i18n_ustring_find_first() */ -i18n_uchar* i18n_ustring_char ( const i18n_uchar *s, i18n_uchar c ); +i18n_uchar* i18n_ustring_char(const i18n_uchar *s, i18n_uchar c); /** * @brief Finds the first occurrence of a code point in a string. @@ -250,7 +250,7 @@ i18n_uchar* i18n_ustring_char ( const i18n_uchar *s, i18n_uchar c ); * @see i18n_ustring_string() * @see i18n_ustring_find_first() */ -i18n_uchar* i18n_ustring_char32 ( const i18n_uchar *s, i18n_uchar32 c ); +i18n_uchar* i18n_ustring_char32(const i18n_uchar *s, i18n_uchar32 c); /** * @brief Finds the last occurrence of a substring in a string. @@ -273,7 +273,7 @@ i18n_uchar* i18n_ustring_char32 ( const i18n_uchar *s, i18n_uchar32 c ); * @see i18n_ustring_find_first() * @see i18n_ustring_find_last() */ -i18n_uchar* i18n_ustring_r_string ( const i18n_uchar *s, const i18n_uchar *sub_string ); +i18n_uchar* i18n_ustring_r_string(const i18n_uchar *s, const i18n_uchar *sub_string); /** * @brief Finds the last occurrence of a substring in a string. @@ -297,7 +297,7 @@ i18n_uchar* i18n_ustring_r_string ( const i18n_uchar *s, const i18n_uchar *sub_s * @see i18n_ustring_string() * @see i18n_ustring_find_first() */ -i18n_uchar* i18n_ustring_find_last( const i18n_uchar *s, int32_t length, const i18n_uchar *sub_string, int32_t sub_length ); +i18n_uchar* i18n_ustring_find_last(const i18n_uchar *s, int32_t length, const i18n_uchar *sub_string, int32_t sub_length); /** * @brief Finds the last occurrence of a BMP code point in a string. @@ -318,7 +318,7 @@ i18n_uchar* i18n_ustring_find_last( const i18n_uchar *s, int32_t length, const i * @see i18n_ustring_string() * @see i18n_ustring_find_first() */ -i18n_uchar* i18n_ustring_r_char ( const i18n_uchar *s, i18n_uchar c ); +i18n_uchar* i18n_ustring_r_char(const i18n_uchar *s, i18n_uchar c); /** * @brief Finds the last occurrence of a code point in a string. @@ -339,7 +339,7 @@ i18n_uchar* i18n_ustring_r_char ( const i18n_uchar *s, i18n_uchar c ); * @see i18n_ustring_string() * @see i18n_ustring_find_first() */ -i18n_uchar* i18n_ustring_r_char32 ( const i18n_uchar *s, i18n_uchar32 c ); +i18n_uchar* i18n_ustring_r_char32(const i18n_uchar *s, i18n_uchar32 c); /** * @brief Locates the first occurrence in the string of any of the characters in the string matchSet. @@ -356,7 +356,7 @@ i18n_uchar* i18n_ustring_r_char32 ( const i18n_uchar *s, i18n_uchar32 c ); * @return A pointer to the character in @a string that matches one of the * characters in @a match_set, or NULL if no such character is found. */ -i18n_uchar* i18n_ustring_pbrk ( const i18n_uchar *string, const i18n_uchar *match_set ); +i18n_uchar* i18n_ustring_pbrk(const i18n_uchar *string, const i18n_uchar *match_set); /** * @brief Returns the number of consecutive characters in string, beginning with the first, that do not occur somewhere in match_set. @@ -373,7 +373,7 @@ i18n_uchar* i18n_ustring_pbrk ( const i18n_uchar *string, const i18n_uchar *matc * @return The number of initial characters in @a string that do not * occur in @a match_set. */ -int32_t i18n_ustring_cspn ( const i18n_uchar *string, const i18n_uchar *match_set ); +int32_t i18n_ustring_cspn(const i18n_uchar *string, const i18n_uchar *match_set); /** * @brief Returns the number of consecutive characters in string, beginning with the first, that occur somewhere in match_set. @@ -390,7 +390,7 @@ int32_t i18n_ustring_cspn ( const i18n_uchar *string, const i18n_uchar *match_se * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ustring_spn() */ -int32_t i18n_ustring_spn ( const i18n_uchar *string, const i18n_uchar *match_set ); +int32_t i18n_ustring_spn(const i18n_uchar *string, const i18n_uchar *match_set); /** * @brief The string tokenizer API allows an application to break a string into tokens. @@ -408,7 +408,7 @@ int32_t i18n_ustring_spn ( const i18n_uchar *string, const i18n_uchar *match_set * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_tokenizer_r ( i18n_uchar *src, const i18n_uchar *delim, i18n_uchar **save_state ); +i18n_uchar* i18n_ustring_tokenizer_r(i18n_uchar *src, const i18n_uchar *delim, i18n_uchar **save_state); /** * @brief Compares two Unicode strings for bitwise equality (code unit order). @@ -424,7 +424,7 @@ i18n_uchar* i18n_ustring_tokenizer_r ( i18n_uchar *src, const i18n_uchar *delim, * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_compare ( const i18n_uchar *s1, const i18n_uchar *s2 ); +int32_t i18n_ustring_compare(const i18n_uchar *s1, const i18n_uchar *s2); /** * @brief Compare two Unicode strings in code point order. @@ -441,7 +441,7 @@ int32_t i18n_ustring_compare ( const i18n_uchar *s1, const i18n_uchar *s2 ); * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_compare_code_point_order( const i18n_uchar *s1, const i18n_uchar *s2 ); +int32_t i18n_ustring_compare_code_point_order(const i18n_uchar *s1, const i18n_uchar *s2); /** * @brief Compare two Unicode strings (binary order). @@ -463,7 +463,7 @@ int32_t i18n_ustring_compare_code_point_order( const i18n_uchar *s1, const i18n_ * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_compare_binary_order( const i18n_uchar *s1, int32_t length1, const i18n_uchar *s2, int32_t length2, i18n_ubool code_point_order ); +int32_t i18n_ustring_compare_binary_order(const i18n_uchar *s1, int32_t length1, const i18n_uchar *s2, int32_t length2, i18n_ubool code_point_order); /** * @brief Compare two strings case-insensitively using full case folding. @@ -488,7 +488,7 @@ int32_t i18n_ustring_compare_binary_order( const i18n_uchar *s1, int32_t length1 * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_case_compare_with_length( const i18n_uchar *s1, int32_t length1, const i18n_uchar *s2, int32_t length2, uint32_t options, i18n_error_code_e *error_code ); +int32_t i18n_ustring_case_compare_with_length(const i18n_uchar *s1, int32_t length1, const i18n_uchar *s2, int32_t length2, uint32_t options, i18n_error_code_e *error_code); /** * @brief Compare two ustrings for bitwise equality. @@ -506,7 +506,7 @@ int32_t i18n_ustring_case_compare_with_length( const i18n_uchar *s1, int32_t len * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_compare_n( const i18n_uchar *s1, const i18n_uchar *s2, int32_t n ); +int32_t i18n_ustring_compare_n(const i18n_uchar *s1, const i18n_uchar *s2, int32_t n); /** * @brief Compare two Unicode strings in code point order. @@ -524,7 +524,7 @@ int32_t i18n_ustring_compare_n( const i18n_uchar *s1, const i18n_uchar *s2, int3 * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_compare_n_code_point_order( const i18n_uchar *s1, const i18n_uchar *s2, int32_t n ); +int32_t i18n_ustring_compare_n_code_point_order(const i18n_uchar *s1, const i18n_uchar *s2, int32_t n); /** * @brief Compare two strings case-insensitively using full case folding. @@ -542,7 +542,7 @@ int32_t i18n_ustring_compare_n_code_point_order( const i18n_uchar *s1, const i18 * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_case_compare( const i18n_uchar *s1, const i18n_uchar *s2, uint32_t options ); +int32_t i18n_ustring_case_compare(const i18n_uchar *s1, const i18n_uchar *s2, uint32_t options); /** * @brief Compare two strings case-insensitively using full case folding. @@ -561,7 +561,7 @@ int32_t i18n_ustring_case_compare( const i18n_uchar *s1, const i18n_uchar *s2, u * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_case_compare_n( const i18n_uchar *s1, const i18n_uchar *s2, int32_t n, uint32_t options ); +int32_t i18n_ustring_case_compare_n(const i18n_uchar *s1, const i18n_uchar *s2, int32_t n, uint32_t options); /** * @brief Compare two strings case-insensitively using full case folding. @@ -580,7 +580,7 @@ int32_t i18n_ustring_case_compare_n( const i18n_uchar *s1, const i18n_uchar *s2, * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_mem_case_compare( const i18n_uchar *s1, const i18n_uchar *s2, int32_t length, uint32_t options ); +int32_t i18n_ustring_mem_case_compare(const i18n_uchar *s1, const i18n_uchar *s2, int32_t length, uint32_t options); /** * @brief Copies a ustring. Adds a NULL terminator. @@ -595,7 +595,7 @@ int32_t i18n_ustring_mem_case_compare( const i18n_uchar *s1, const i18n_uchar *s * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_copy ( i18n_uchar *dest, const i18n_uchar *src ); +i18n_uchar* i18n_ustring_copy(i18n_uchar *dest, const i18n_uchar *src); /** * @brief Copies a ustring. @@ -613,7 +613,7 @@ i18n_uchar* i18n_ustring_copy ( i18n_uchar *dest, const i18n_uchar *src ); * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_copy_n ( i18n_uchar *dest, const i18n_uchar *src, int32_t n ); +i18n_uchar* i18n_ustring_copy_n(i18n_uchar *dest, const i18n_uchar *src, int32_t n); /** * @brief Copies a byte string encoded in the default codepage to a ustring. @@ -629,7 +629,7 @@ i18n_uchar* i18n_ustring_copy_n ( i18n_uchar *dest, const i18n_uchar *src, int32 * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_copy_ua ( i18n_uchar *dest, const char *src ); +i18n_uchar* i18n_ustring_copy_ua(i18n_uchar *dest, const char *src); /** * @brief Copies a byte string encoded in the default codepage to a ustring. @@ -648,7 +648,7 @@ i18n_uchar* i18n_ustring_copy_ua ( i18n_uchar *dest, const char *src ); * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_copy_ua_n ( i18n_uchar *dest, const char *src, int32_t n ); +i18n_uchar* i18n_ustring_copy_ua_n(i18n_uchar *dest, const char *src, int32_t n); /** * @brief Copies a ustring to a byte string encoded in the default codepage. @@ -664,7 +664,7 @@ i18n_uchar* i18n_ustring_copy_ua_n ( i18n_uchar *dest, const char *src, int32_t * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -char* i18n_ustring_copy_au ( char *dest, const i18n_uchar *src ); +char* i18n_ustring_copy_au(char *dest, const i18n_uchar *src); /** * @brief Copies a ustring to a byte string encoded in the default codepage. @@ -683,7 +683,7 @@ char* i18n_ustring_copy_au ( char *dest, const i18n_uchar *src ); * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -char* i18n_ustring_copy_au_n ( char *dest, const i18n_uchar *src, int32_t n ); +char* i18n_ustring_copy_au_n(char *dest, const i18n_uchar *src, int32_t n); /** * @brief Synonym for memcpy(), but with #i18n_uchar characters only. @@ -699,7 +699,7 @@ char* i18n_ustring_copy_au_n ( char *dest, const i18n_uchar *src, int32_t n ); * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_mem_copy ( i18n_uchar *dest, const i18n_uchar *src, int32_t count ); +i18n_uchar* i18n_ustring_mem_copy(i18n_uchar *dest, const i18n_uchar *src, int32_t count); /** * @brief Synonym for memmove(), but with #i18n_uchar characters only. @@ -715,7 +715,7 @@ i18n_uchar* i18n_ustring_mem_copy ( i18n_uchar *dest, const i18n_uchar *src, int * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_mem_move ( i18n_uchar *dest, const i18n_uchar *src, int32_t count ); +i18n_uchar* i18n_ustring_mem_move(i18n_uchar *dest, const i18n_uchar *src, int32_t count); /** * @brief Initialize count characters of dest to c. @@ -731,7 +731,7 @@ i18n_uchar* i18n_ustring_mem_move ( i18n_uchar *dest, const i18n_uchar *src, int * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_mem_set ( i18n_uchar *dest, const i18n_uchar c, int32_t count ); +i18n_uchar* i18n_ustring_mem_set(i18n_uchar *dest, const i18n_uchar c, int32_t count); /** * @brief Compare the first count #i18n_uchar characters of each buffer. @@ -748,7 +748,7 @@ i18n_uchar* i18n_ustring_mem_set ( i18n_uchar *dest, const i18n_uchar c, int32_t * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_mem_compare ( const i18n_uchar *buf1, const i18n_uchar *buf2, int32_t count ); +int32_t i18n_ustring_mem_compare(const i18n_uchar *buf1, const i18n_uchar *buf2, int32_t count); /** * @brief Compare two Unicode strings in code point order. @@ -766,7 +766,7 @@ int32_t i18n_ustring_mem_compare ( const i18n_uchar *buf1, const i18n_uchar *buf * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_mem_compare_code_point_order ( const i18n_uchar *s1, const i18n_uchar *s2, int32_t count ); +int32_t i18n_ustring_mem_compare_code_point_order(const i18n_uchar *s1, const i18n_uchar *s2, int32_t count); /** * @brief Finds the first occurrence of a BMP code point in a string. @@ -786,7 +786,7 @@ int32_t i18n_ustring_mem_compare_code_point_order ( const i18n_uchar *s1, const * @see i18n_ustring_mem_char32() * @see i18n_ustring_find_first() */ -i18n_uchar* i18n_ustring_mem_char ( const i18n_uchar *s, i18n_uchar c, int32_t count ); +i18n_uchar* i18n_ustring_mem_char(const i18n_uchar *s, i18n_uchar c, int32_t count); /** * @brief Finds the first occurrence of a code point in a string. @@ -803,7 +803,7 @@ i18n_uchar* i18n_ustring_mem_char ( const i18n_uchar *s, i18n_uchar c, int32_t c * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_mem_char32 ( const i18n_uchar *s, i18n_uchar32 c, int32_t count ); +i18n_uchar* i18n_ustring_mem_char32(const i18n_uchar *s, i18n_uchar32 c, int32_t count); /** * @brief Finds the last occurrence of a BMP code point in a string. @@ -823,7 +823,7 @@ i18n_uchar* i18n_ustring_mem_char32 ( const i18n_uchar *s, i18n_uchar32 c, int32 * @see #i18n_ustring_mem_r_char32 * @see #i18n_ustring_find_last */ -i18n_uchar* i18n_ustring_mem_r_char ( const i18n_uchar *s, i18n_uchar c, int32_t count ); +i18n_uchar* i18n_ustring_mem_r_char(const i18n_uchar *s, i18n_uchar c, int32_t count); /** * @brief Finds the last occurrence of a code point in a string. @@ -843,7 +843,7 @@ i18n_uchar* i18n_ustring_mem_r_char ( const i18n_uchar *s, i18n_uchar c, int32_t * @see #i18n_ustring_mem_r_char * @see #i18n_ustring_find_last */ -i18n_uchar* i18n_ustring_mem_r_char32 ( const i18n_uchar *s, i18n_uchar32 c, int32_t count ); +i18n_uchar* i18n_ustring_mem_r_char32(const i18n_uchar *s, i18n_uchar32 c, int32_t count); /** * @brief Unescape a string of characters and write the resulting Unicode characters to the destination buffer. @@ -866,7 +866,7 @@ i18n_uchar* i18n_ustring_mem_r_char32 ( const i18n_uchar *s, i18n_uchar32 c, int * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ustring_unescape_at() */ -int32_t i18n_ustring_unescape ( const char *src, i18n_uchar *dest, int32_t dest_capacity ); +int32_t i18n_ustring_unescape(const char *src, i18n_uchar *dest, int32_t dest_capacity); /** * @brief Unescape a single sequence. @@ -890,7 +890,7 @@ int32_t i18n_ustring_unescape ( const char *src, i18n_uchar *dest, int32_t dest_ * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ustring_unescape() */ -i18n_uchar32 i18n_ustring_unescape_at ( i18n_ustring_unescape_char_at_cb char_at, int32_t *offset, int32_t length, void *context ); +i18n_uchar32 i18n_ustring_unescape_at(i18n_ustring_unescape_char_at_cb char_at, int32_t *offset, int32_t length, void *context); /** * @brief Uppercases the characters in a string. @@ -915,7 +915,7 @@ i18n_uchar32 i18n_ustring_unescape_at ( i18n_ustring_unescape_char_at_cb char_at * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_to_upper ( i18n_uchar *dest, int32_t dest_capacity, const i18n_uchar *src, int32_t src_len, const char *locale, i18n_error_code_e *error_code ); +int32_t i18n_ustring_to_upper(i18n_uchar *dest, int32_t dest_capacity, const i18n_uchar *src, int32_t src_len, const char *locale, i18n_error_code_e *error_code); /** * @brief Lowercase the characters in a string. @@ -938,7 +938,7 @@ int32_t i18n_ustring_to_upper ( i18n_uchar *dest, int32_t dest_capacity, const i * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_to_lower ( i18n_uchar *dest, int32_t dest_capacity, const i18n_uchar *src, int32_t src_len, const char *locale, i18n_error_code_e *error_code ); +int32_t i18n_ustring_to_lower(i18n_uchar *dest, int32_t dest_capacity, const i18n_uchar *src, int32_t src_len, const char *locale, i18n_error_code_e *error_code); /** * @brief Titlecases a string. @@ -978,7 +978,7 @@ int32_t i18n_ustring_to_lower ( i18n_uchar *dest, int32_t dest_capacity, const i * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ustring_to_title() */ -int32_t i18n_ustring_to_title_new ( i18n_uchar *dest, int32_t dest_capacity, const i18n_uchar *src, int32_t src_len, i18n_ubreak_iterator_h title_iter, const char *locale); +int32_t i18n_ustring_to_title_new(i18n_uchar *dest, int32_t dest_capacity, const i18n_uchar *src, int32_t src_len, i18n_ubreak_iterator_h title_iter, const char *locale); /** * @brief Case-folds the characters in a string. @@ -1003,7 +1003,7 @@ int32_t i18n_ustring_to_title_new ( i18n_uchar *dest, int32_t dest_capacity, con * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -int32_t i18n_ustring_fold_case ( i18n_uchar *dest, int32_t dest_capacity, const i18n_uchar *src, int32_t src_len, uint32_t options, i18n_error_code_e *error_code ); +int32_t i18n_ustring_fold_case(i18n_uchar *dest, int32_t dest_capacity, const i18n_uchar *src, int32_t src_len, uint32_t options, i18n_error_code_e *error_code); /** * @brief Convert a UTF-16 string to a wchar_t string. @@ -1025,7 +1025,7 @@ int32_t i18n_ustring_fold_case ( i18n_uchar *dest, int32_t dest_capacity, const * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -wchar_t* i18n_ustring_to_WCS ( wchar_t *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, i18n_error_code_e *error_code ); +wchar_t* i18n_ustring_to_WCS(wchar_t *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, i18n_error_code_e *error_code); /** * @brief Convert a wchar_t string to UTF-16. @@ -1047,7 +1047,7 @@ wchar_t* i18n_ustring_to_WCS ( wchar_t *dest, int32_t dest_capacity, int32_t *de * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_from_WCS ( i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const wchar_t *src, int32_t src_len, i18n_error_code_e *error_code ); +i18n_uchar* i18n_ustring_from_WCS(i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const wchar_t *src, int32_t src_len, i18n_error_code_e *error_code); /** * @brief Converts a UTF-16 string to UTF-8. @@ -1073,7 +1073,7 @@ i18n_uchar* i18n_ustring_from_WCS ( i18n_uchar *dest, int32_t dest_capacity, int * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * @see i18n_ustring_from_UTF8() */ -char* i18n_ustring_to_UTF8 ( char *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, i18n_error_code_e *error_code ); +char* i18n_ustring_to_UTF8(char *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, i18n_error_code_e *error_code); /** * @brief Converts a UTF-8 string to UTF-16. @@ -1098,7 +1098,7 @@ char* i18n_ustring_to_UTF8 ( char *dest, int32_t dest_capacity, int32_t *dest_le * @exception #I18N_ERROR_NONE Success * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter */ -i18n_uchar* i18n_ustring_from_UTF8 ( i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const char *src, int32_t src_len, i18n_error_code_e *error_code ); +i18n_uchar* i18n_ustring_from_UTF8(i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const char *src, int32_t src_len, i18n_error_code_e *error_code); /** * @brief Convert a UTF-16 string to UTF-8. @@ -1129,7 +1129,7 @@ i18n_uchar* i18n_ustring_from_UTF8 ( i18n_uchar *dest, int32_t dest_capacity, in * @see i18n_ustring_to_UTF8() * @see i18n_ustring_from_UTF8_with_sub() */ -char* i18n_ustring_to_UTF8_with_sub ( char *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, i18n_uchar32 sub_char, int32_t *num_substitutions, i18n_error_code_e *error_code ); +char* i18n_ustring_to_UTF8_with_sub(char *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, i18n_uchar32 sub_char, int32_t *num_substitutions, i18n_error_code_e *error_code); /** * @brief Convert a UTF-8 string to UTF-16. @@ -1160,8 +1160,8 @@ char* i18n_ustring_to_UTF8_with_sub ( char *dest, int32_t dest_capacity, int32_t * @see i18n_ustring_from_UTF8_lenient() * @see i18n_ustring_to_UTF8_with_sub() */ -i18n_uchar* i18n_ustring_from_UTF8_with_sub ( i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const char *src, int32_t src_len, i18n_uchar32 sub_char, - int32_t *num_substitutions, i18n_error_code_e *error_code ); +i18n_uchar* i18n_ustring_from_UTF8_with_sub(i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const char *src, int32_t src_len, i18n_uchar32 sub_char, + int32_t *num_substitutions, i18n_error_code_e *error_code); /** * @brief Convert a UTF-8 string to UTF-16. @@ -1199,7 +1199,7 @@ i18n_uchar* i18n_ustring_from_UTF8_with_sub ( i18n_uchar *dest, int32_t dest_cap * @see i18n_ustring_to_UTF8_with_sub() * @see i18n_ustring_from_UTF8_with_sub() */ -i18n_uchar* i18n_ustring_from_UTF8_lenient ( i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const char *src, int32_t src_len, i18n_error_code_e *error_code ); +i18n_uchar* i18n_ustring_from_UTF8_lenient(i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const char *src, int32_t src_len, i18n_error_code_e *error_code); /** * @brief Convert a UTF-16 string to UTF-32. @@ -1225,7 +1225,7 @@ i18n_uchar* i18n_ustring_from_UTF8_lenient ( i18n_uchar *dest, int32_t dest_capa * @see i18n_ustring_to_UTF32_with_sub() * @see i18n_ustring_from_UTF32() */ -i18n_uchar32* i18n_ustring_to_UTF32 ( i18n_uchar32 *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, i18n_error_code_e *error_code ); +i18n_uchar32* i18n_ustring_to_UTF32(i18n_uchar32 *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, i18n_error_code_e *error_code); /** * @brief Convert a UTF-32 string to UTF-16. @@ -1251,7 +1251,7 @@ i18n_uchar32* i18n_ustring_to_UTF32 ( i18n_uchar32 *dest, int32_t dest_capacity, * @see i18n_ustring_from_UTF32_with_sub() * @see i18n_ustring_to_UTF32() */ -i18n_uchar* i18n_ustring_from_UTF32 ( i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar32 *src, int32_t src_len, i18n_error_code_e *error_code ); +i18n_uchar* i18n_ustring_from_UTF32(i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar32 *src, int32_t src_len, i18n_error_code_e *error_code); /** * @brief Convert a UTF-16 string to UTF-32. @@ -1281,8 +1281,8 @@ i18n_uchar* i18n_ustring_from_UTF32 ( i18n_uchar *dest, int32_t dest_capacity, i * @see i18n_ustring_to_UTF32() * @see i18n_ustring_from_UTF32_with_sub() */ -i18n_uchar32* i18n_ustring_to_UTF32_with_sub ( i18n_uchar32 *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, - i18n_uchar32 sub_char, int32_t *num_substitutions, i18n_error_code_e *error_code ); +i18n_uchar32* i18n_ustring_to_UTF32_with_sub(i18n_uchar32 *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar *src, int32_t src_len, + i18n_uchar32 sub_char, int32_t *num_substitutions, i18n_error_code_e *error_code); /** * @brief Convert a UTF-32 string to UTF-16. @@ -1313,7 +1313,7 @@ i18n_uchar32* i18n_ustring_to_UTF32_with_sub ( i18n_uchar32 *dest, int32_t dest_ * @see i18n_ustring_from_UTF32() * @see i18n_ustring_to_UTF32_with_sub() */ -i18n_uchar* i18n_ustring_from_UTF32_with_sub ( i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar32 *src, int32_t src_len, i18n_uchar32 sub_char, int32_t *num_substitutions, i18n_error_code_e *error_code ); +i18n_uchar* i18n_ustring_from_UTF32_with_sub(i18n_uchar *dest, int32_t dest_capacity, int32_t *dest_len, const i18n_uchar32 *src, int32_t src_len, i18n_uchar32 sub_char, int32_t *num_substitutions, i18n_error_code_e *error_code); #ifdef __cplusplus } -- 2.7.4