From: ByungWoo Lee Date: Thu, 30 Jul 2015 05:57:45 +0000 (+0900) Subject: Merge with tizen2.4 beta X-Git-Tag: submit/tizen/20150730.060703^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9eafb4a00e54a245394069643f140193cd9df567;p=platform%2Fcore%2Fapi%2Fbase-utils.git Merge with tizen2.4 beta Change-Id: I952662c8f787cdc4173a4d10134cc3cab5bc0f2b --- diff --git a/packaging/capi-base-utils.spec b/packaging/capi-base-utils.spec index b8f5be7..49229d7 100755 --- a/packaging/capi-base-utils.spec +++ b/packaging/capi-base-utils.spec @@ -1,6 +1,6 @@ Name: capi-base-utils Summary: Base Utils -Version: 1.0.2 +Version: 1.0.5 Release: 1 Group: Base License: Apache-2.0 and ICU diff --git a/src/include/mobile/utils_i18n.h b/src/include/mobile/utils_i18n.h index f0040d2..94a07bd 100755 --- a/src/include/mobile/utils_i18n.h +++ b/src/include/mobile/utils_i18n.h @@ -61,6 +61,14 @@ extern "C" { * The Timezone module represents a time zone offset, and also figures out daylight savings. * * + * @ref CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE + * UEnumeration defines functions for handling String Enumeration. + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * Ubrk module defines methods for finding the location of boundaries in text. + * + * * @ref CAPI_BASE_UTILS_I18N_UCOLLATOR_MODULE * Ucollator module performs locale-sensitive string comparison. It builds searching and sorting routines for natural language text and provides correct sorting orders for most locales. * @@ -77,6 +85,10 @@ extern "C" { * Usearch module provides language-sensitive text searching based on the comparison rules defined in a ucollator data struct. * * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * Uset module allows to specify a subset of character used in strings. + * + * * @ref CAPI_BASE_UTILS_I18N_USTRING_MODULE * Ustring module provides general unicode string handling. * @@ -247,6 +259,131 @@ extern "C" { * getDSTSavings * * + * @ref CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE + * #i18n_uenumeration_destroy + * uenum_close + * + * + * @ref CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE + * #i18n_uenumeration_count + * uenum_count + * + * + * @ref CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE + * #i18n_uenumeration_unext + * uenum_unext + * + * + * @ref CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE + * #i18n_uenumeration_next + * uenum_next + * + * + * @ref CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE + * #i18n_uenumeration_reset + * uenum_reset + * + * + * @ref CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE + * #i18n_uenumeration_uchar_strings_enumeration_create + * uenum_openUCharStringsEnumeration + * + * + * @ref CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE + * #i18n_uenumeration_char_strings_enumeration_create + * uenum_openCharStringsEnumeration + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_create + * ubrk_open + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_create_rules + * ubrk_openRules + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_safe_clone + * ubrk_safeClone + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_destroy + * ubrk_close + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_set_text + * ubrk_setText + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_current + * ubrk_current + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_next + * ubrk_next + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_preceding + * ubrk_preceding + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_previous + * ubrk_previous + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_first + * ubrk_first + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_last + * ubrk_last + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_following + * ubrk_following + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_get_available + * ubrk_getAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_count_available + * ubrk_countAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_is_boundary + * ubrk_isBoundary + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_get_rule_status + * ubrk_getRuleStatus + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_get_rule_status_vec + * ubrk_getRuleStatusVec + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_get_locale_by_type + * ubrk_getLocaleByType + * + * * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE * #i18n_ucalendar_set_default_timezone * ucal_setDefaultTimeZone @@ -327,6 +464,136 @@ extern "C" { * ucal_get * * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_clear + * ucal_clear + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_clear_field + * ucal_clearField + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_count_available + * ucal_countAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_country_timezones_create + * ucal_openCountryTimeZones + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_available + * ucal_getAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_canonical_timezone_id + * ucal_getCanonicalTimeZoneID + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_day_of_week_type + * ucal_getDayOfWeekType + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_default_timezone + * ucal_getDefaultTimeZone + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_field_difference + * ucal_getFieldDifference + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_gregorian_change + * ucal_getGregorianChange + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_keyword_values_for_locale + * ucal_getKeywordValuesForLocale + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_limit + * ucal_getLimit + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_locale_by_type + * ucal_getLocaleByType + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_timezone_id + * ucal_getTimeZoneID + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_timezone_transition_date + * ucal_getTimeZoneTransitionDate + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_type + * ucal_getType + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_tz_data_version + * ucal_getTZDataVersion + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_weekend_transition + * ucal_getWeekendTransition + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_is_set + * ucal_isSet + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_is_weekend + * ucal_isWeekend + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_roll + * ucal_roll + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_set_date + * ucal_setDate + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_set_gregorian_change + * ucal_setGregorianChange + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_set_timezone + * ucal_setTimeZone + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_timezones_create + * ucal_openTimeZones + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_timezone_id_enumeration_create + * ucal_openTimeZoneIDEnumeration + * + * * @ref CAPI_BASE_UTILS_I18N_UCHAR_MODULE * #i18n_uchar_get_int_property_value * u_getIntpropertyValue @@ -382,6 +649,111 @@ extern "C" { * udat_format * * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_apply_pattern + * udat_applyPattern + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_clone + * udat_clone + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_count_available + * udat_countAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_count_symbols + * udat_countSymbols + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_get_2digit_year_start + * udat_get2DigitYearStart + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_get_available + * udat_getAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_get_calendar + * udat_getCalendar + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_get_locale_by_type + * udat_getLocaleByType + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_get_number_format + * udat_getNumberFormat + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_get_symbols + * udat_getSymbols + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_is_lenient + * udat_isLenient + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_parse + * udat_parse + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_parse_calendar + * udat_parseCalendar + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_set_2digit_year_start + * udat_set2DigitYearStart + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_set_calendar + * udat_setCalendar + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_set_context + * udat_setContext + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_set_lenient + * udat_setLenient + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_set_number_format + * udat_setNumberFormat + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_set_symbols + * udat_setSymbols + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_to_calendar_date_field + * udat_toCalendarDateField + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_to_pattern + * udat_toPattern + * + * * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE * #i18n_udatepg_create * udatpg_open @@ -397,79 +769,425 @@ extern "C" { * udatpg_getBestPattern * * - * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE - * #i18n_ulocale_get_default - * uloc_getDefault + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_add_pattern + * udatpg_addPattern * * - * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE - * #i18n_ulocale_set_default - * uloc_setDefault + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_base_skeletons_create + * udatpg_openBaseSkeletons * * - * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE - * #i18n_ulocale_get_language - * uloc_getLanguage + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_clone + * udatpg_clone * * - * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE - * #i18n_ulocale_get_country - * uloc_getCountry + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_create_empty + * udatpg_openEmpty * * - * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE - * #i18n_ulocale_get_display_name - * uloc_getDisplayName + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_get_append_item_format + * udatpg_getAppendItemFormat * * - * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE - * #i18n_ulocale_get_available - * uloc_getAvailable + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_get_append_item_name + * udatpg_getAppendItemName * * - * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE - * #i18n_ulocale_count_available - * uloc_countAvailable + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_get_base_skeleton + * udatpg_getBaseSkeleton * * - * @ref CAPI_BASE_UTILS_I18N_UNORMALIZATION_MODULE - * #i18n_unormalization_get_instance - * unorm2_getInstance + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_get_best_pattern_with_options + * udatpg_getBestPatternWithOptions * * - * @ref CAPI_BASE_UTILS_I18N_UNORMALIZATION_MODULE - * #i18n_unormalization_normalize - * unorm2_normalize + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_get_date_time_format + * udatpg_getDateTimeFormat * * - * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE - * #i18n_unumber_create - * unum_open + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_get_decimal + * udatpg_getDecimal * * - * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE - * #i18n_unumber_destroy - * unum_close + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_get_pattern_for_skeleton + * udatpg_getPatternForSkeleton * * - * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE - * #i18n_unumber_get_symbol - * unum_getSymbol + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_get_skeleton + * udatpg_getSkeleton * * - * @ref CAPI_BASE_UTILS_I18N_USEARCH_MODULE - * #i18n_usearch_create_new - * usearch_open + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_replace_field_types + * udatpg_replaceFieldTypes * * - * @ref CAPI_BASE_UTILS_I18N_USEARCH_MODULE - * #i18n_usearch_destroy - * usearch_close + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_replace_field_types_with_options + * udatpg_replaceFieldTypesWithOptions * * - * @ref CAPI_BASE_UTILS_I18N_USEARCH_MODULE - * #i18n_usearch_get_matched_text - * usearch_getMatchedText + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_set_append_item_format + * udatpg_setAppendItemFormat + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_set_append_item_name + * udatpg_setAppendItemName + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_set_date_time_format + * udatpg_setDateTimeFormat + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_set_decimal + * udatpg_setDecimal + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_skeletons_create + * udatpg_openSkeletons + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_default + * uloc_getDefault + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_set_default + * uloc_setDefault + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_language + * uloc_getLanguage + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_country + * uloc_getCountry + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_display_name + * uloc_getDisplayName + * + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_add_likely_subtags + * uloc_addLikelySubtags + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_canonicalize + * uloc_canonicalize + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_for_language_tag + * uloc_forLanguageTag + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_base_name + * uloc_getBaseName + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_character_orientation + * uloc_getCharacterOrientation + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_display_country + * uloc_getDisplayCountry + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_display_keyword + * uloc_getDisplayKeyword + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_display_keyword_value + * uloc_getDisplayKeywordValue + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_display_language + * uloc_getDisplayLanguage + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_display_script + * uloc_getDisplayScript + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_display_variant + * uloc_getDisplayVariant + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_iso3_country + * uloc_getISO3Country + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_iso3_language + * uloc_getISO3Language + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_iso_countries + * uloc_getISOCountries + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_iso_languages + * uloc_getISOLanguages + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_keyword_value + * uloc_getKeywordValue + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_lcid + * uloc_getLCID + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_line_orientation + * uloc_getLineOrientation + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_locale_for_lcid + * uloc_getLocaleForLCID + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_name + * uloc_getName + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_parent + * uloc_getParent + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_script + * uloc_getScript + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_variant + * uloc_getVariant + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_keywords_create + * uloc_openKeywords + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_minimize_subtags + * uloc_minimizeSubtags + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_set_keyword_value + * uloc_setKeywordValue + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_to_language_tag + * uloc_toLanguageTag + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_available + * uloc_getAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_count_available + * uloc_countAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_UNORMALIZATION_MODULE + * #i18n_unormalization_get_instance + * unorm2_getInstance + * + * + * @ref CAPI_BASE_UTILS_I18N_UNORMALIZATION_MODULE + * #i18n_unormalization_normalize + * unorm2_normalize + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_create + * unum_open + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_destroy + * unum_close + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_get_symbol + * unum_getSymbol + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_apply_pattern + * unum_applyPattern + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_clone + * unum_clone + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_count_available + * unum_countAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_format + * unum_format + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_format_decimal + * unum_formatDecimal + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_format_double + * unum_formatDouble + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_format_double_currency + * unum_formatDoubleCurrency + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_format_int64 + * unum_formatInt64 + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_get_attribute + * unum_getAttribute + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_get_available + * unum_getAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_get_double_attribute + * unum_getDoubleAttribute + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_get_locale_by_type + * unum_getLocaleByType + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_get_text_attribute + * unum_getTextAttribute + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_parse + * unum_parse + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_parse_decimal + * unum_parseDecimal + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_parse_double + * unum_parseDouble + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_parse_double_currency + * unum_parseDoubleCurrency + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_parse_int64 + * unum_parseInt64 + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_set_attribute + * unum_setAttribute + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_set_double_attribute + * unum_setDoubleAttribute + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_set_symbol + * unum_setSymbol + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_set_text_attribute + * unum_setTextAttribute + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_to_pattern + * unum_toPattern + * + * + * @ref CAPI_BASE_UTILS_I18N_USEARCH_MODULE + * #i18n_usearch_create_new + * usearch_open + * + * + * @ref CAPI_BASE_UTILS_I18N_USEARCH_MODULE + * #i18n_usearch_destroy + * usearch_close + * + * + * @ref CAPI_BASE_UTILS_I18N_USEARCH_MODULE + * #i18n_usearch_get_matched_text + * usearch_getMatchedText * * * @ref CAPI_BASE_UTILS_I18N_USEARCH_MODULE @@ -482,6 +1200,286 @@ extern "C" { * usearch_first * * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_create_empty + * uset_openEmpty + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_create + * uset_open + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_create_pattern + * uset_openPattern + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_create_pattern_options + * uset_openPatternOptions + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_destroy + * uset_close + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_clone + * uset_clone + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_is_frozen + * uset_isFrozen + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_freeze + * uset_freeze + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_clone_as_thawed + * uset_cloneAsThawed + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_set + * uset_set + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_apply_pattern + * uset_applyPattern + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_apply_int_property_value + * uset_applyIntPropertyValue + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_apply_property_alias + * uset_applyPropertyAlias + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_resembles_pattern + * uset_resemblesPattern + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_to_pattern + * uset_toPattern + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_add + * uset_add + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_add_all + * uset_addAll + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_add_range + * uset_addRange + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_add_string + * uset_addString + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_add_all_code_points + * uset_addAllCodePoints + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_remove + * uset_remove + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_remove_range + * uset_removeRange + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_remove_string + * uset_removeString + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_remove_all + * uset_removeAll + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_retain + * uset_retain + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_retain_all + * uset_retainAll + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_compact + * uset_compact + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_complement + * uset_complement + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_complement_all + * uset_complementAll + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_clear + * uset_clear + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_destroy_over + * uset_closeOver + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_remove_all_strings + * uset_removeAllStrings + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_is_empty + * uset_isEmpty + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_contains + * uset_contains + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_contains_range + * uset_containsRange + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_contains_string + * uset_containsString + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_index_of + * uset_indexOf + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_char_at + * uset_charAt + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_size + * uset_size + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_get_item_count + * uset_getItemCount + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_get_item + * uset_getItem + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_contains_all + * uset_containsAll + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_contains_all_code_points + * uset_containsAllCodePoints + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_contains_none + * uset_containsNone + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_contains_some + * uset_containsSome + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_span + * uset_span + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_span_back + * uset_spanBack + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_span_utf8 + * uset_spanUTF8 + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_span_back_utf8 + * uset_spanBackUTF8 + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_equals + * uset_equals + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_serialize + * uset_serialize + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_get_serialized_set + * uset_getSerializedSet + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_set_serialized_to_one + * uset_setSerializedToOne + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_serialized_contains + * uset_serializedContains + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_get_serialized_range_count + * uset_getSerializedRangeCount + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_get_serialized_range + * uset_getSerializedRange + * + * * @ref CAPI_BASE_UTILS_I18N_USTRING_MODULE * #i18n_ustring_get_length * u_strlen diff --git a/src/include/mobile/utils_i18n_types.h b/src/include/mobile/utils_i18n_types.h index 1ed1863..a833e08 100644 --- a/src/include/mobile/utils_i18n_types.h +++ b/src/include/mobile/utils_i18n_types.h @@ -1076,7 +1076,7 @@ typedef enum { */ /** - * @brief i18n_unormalizer_h. + * @brief i18n_usearch_h. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ typedef void* i18n_usearch_h; @@ -1373,7 +1373,7 @@ typedef enum { I18N_UDATE_FORMAT_TIMEZONE_LOCALIZED_GMT_OFFSET_FIELD, /**< Timezone localized gmt offset field */ I18N_UDATE_FORMAT_TIMEZONE_ISO_FIELD, /**< Timezone ISO field */ I18N_UDATE_FORMAT_TIMEZONE_ISO_LOCAL_FIELD, /**< Timezone ISO local field */ - I18N_UDATE_FORMAT_FIELD_COUNT = 35 /**< Field count */ + I18N_UDATE_FORMAT_FIELD_COUNT /**< Field count */ } i18n_udate_format_field_e; /** diff --git a/src/include/mobile/utils_i18n_ucalendar.h b/src/include/mobile/utils_i18n_ucalendar.h index 2c6ab1d..8dae458 100644 --- a/src/include/mobile/utils_i18n_ucalendar.h +++ b/src/include/mobile/utils_i18n_ucalendar.h @@ -203,7 +203,7 @@ int i18n_ucalendar_clone ( const i18n_ucalendar_h cal, i18n_ucalendar_h *identic * * @param[in] calendar The #i18n_ucalendar_h to query * @param[in] type The desired display name format \n - * One of #I18N_UCALENDAR_STANDARD, #I18N_UCALENDAR_SHORT_STANDARD, #I18N_UCALENDAR_DST, or #I18N_UCALENDAR_SHORT_DST + * One of #I18N_UCALENDAR_STANDARD, #I18N_UCALENDAR_SHORT_STANDARD, #I18N_UCALENDAR_DST, or #I18N_UCALENDAR_SHORT_DST * @param[in] locale The desired locale for the display name * @param[out] result A pointer to a buffer to receive the formatted number * @param[in] result_len The maximum size of the result @@ -359,7 +359,7 @@ int i18n_ucalendar_is_equivalent_to ( const i18n_ucalendar_h calendar1, const i1 * @param[in] field The field to which to add the signed value\n One of #I18N_UCALENDAR_ERA, #I18N_UCALENDAR_YEAR, #I18N_UCALENDAR_MONTH, * #I18N_UCALENDAR_WEEK_OF_YEAR, #I18N_UCALENDAR_WEEK_OF_MONTH, #I18N_UCALENDAR_DATE, #I18N_UCALENDAR_DAY_OF_YEAR, #I18N_UCALENDAR_DAY_OF_WEEK, * #I18N_UCALENDAR_DAY_OF_WEEK_IN_MONTH, #I18N_UCALENDAR_AM_PM, #I18N_UCALENDAR_HOUR, #I18N_UCALENDAR_HOUR_OF_DAY, #I18N_UCALENDAR_MINUTE, #I18N_UCALENDAR_SECOND, - * #I18N_UCALENDAR_MILLISECOND, #I18N_UCALENDAR_ZONE_OFFSET, or #I18N_UCALENDAR_DST_OFFSET. + * #I18N_UCALENDAR_MILLISECOND. * @param[in] amount The signed amount to add to the field \n * If the amount causes the value to exceed to maximum or minimum values for that field, * other fields are modified to preserve the magnitude of the change. @@ -410,8 +410,10 @@ int i18n_ucalendar_get ( const i18n_ucalendar_h calendar, i18n_ucalendar_date_fi * #I18N_UCALENDAR_WEEK_OF_YEAR, #I18N_UCALENDAR_WEEK_OF_MONTH, #I18N_UCALENDAR_DATE, * #I18N_UCALENDAR_DAY_OF_YEAR, #I18N_UCALENDAR_DAY_OF_WEEK, #I18N_UCALENDAR_DAY_OF_WEEK_IN_MONTH, * #I18N_UCALENDAR_AM_PM, #I18N_UCALENDAR_HOUR, #I18N_UCALENDAR_HOUR_OF_DAY, #I18N_UCALENDAR_MINUTE, - * #I18N_UCALENDAR_SECOND, #I18N_UCALENDAR_MILLISECOND, #I18N_UCALENDAR_ZONE_OFFSET, - * #I18N_UCALENDAR_DST_OFFSET. + * #I18N_UCALENDAR_SECOND, #I18N_UCALENDAR_MILLISECOND. + * Please note that the returned value type is int32_t. In case of #I18N_UCALENDAR_MILLISECOND, maximal + * difference between dates may be equal to the maximal value of the int32_t, which is 2147483647 (about one month difference). + * If the difference is bigger, then the #I18N_ERROR_INVALID_PARAMETER error will be returned. * @param[out] status A pointer to an i18n_error_code_e to receive any errors * * @return The date difference for the specified field. @@ -654,13 +656,8 @@ int i18n_ucalendar_roll (i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e * @since_tizen 2.3.1 * * @param[in] calendar The #i18n_ucalendar_h to query. - * @param[in] field The field to which to add the signed value; one of #I18N_UCALENDAR_ERA, - * #I18N_UCALENDAR_YEAR, #I18N_UCALENDAR_MONTH, #I18N_UCALENDAR_WEEK_OF_YEAR, - * #I18N_UCALENDAR_WEEK_OF_MONTH, #I18N_UCALENDAR_DATE, #I18N_UCALENDAR_DAY_OF_YEAR, - * #I18N_UCALENDAR_DAY_OF_WEEK, #I18N_UCALENDAR_DAY_OF_WEEK_IN_MONTH, #I18N_UCALENDAR_AM_PM, - * #I18N_UCALENDAR_HOUR, #I18N_UCALENDAR_HOUR_OF_DAY, #I18N_UCALENDAR_MINUTE, - * #I18N_UCALENDAR_SECOND, #I18N_UCALENDAR_MILLISECOND, #I18N_UCALENDAR_ZONE_OFFSET, - * #I18N_UCALENDAR_DST_OFFSET. + * @param[in] field The desired field. + * * @return @c true if field is set, @c false otherwise. * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter @@ -678,13 +675,7 @@ i18n_ubool i18n_ucalendar_is_set (const i18n_ucalendar_h calendar, i18n_ucalenda * @since_tizen 2.3.1 * * @param[in] calendar The #i18n_ucalendar_h containing the field to clear. - * @param[in] field The field to which to add the signed value; one of #I18N_UCALENDAR_ERA, - * #I18N_UCALENDAR_YEAR, #I18N_UCALENDAR_MONTH, #I18N_UCALENDAR_WEEK_OF_YEAR, - * #I18N_UCALENDAR_WEEK_OF_MONTH, #I18N_UCALENDAR_DATE, #I18N_UCALENDAR_DAY_OF_YEAR, - * #I18N_UCALENDAR_DAY_OF_WEEK, #I18N_UCALENDAR_DAY_OF_WEEK_IN_MONTH, #I18N_UCALENDAR_AM_PM, - * #I18N_UCALENDAR_HOUR, #I18N_UCALENDAR_HOUR_OF_DAY, #I18N_UCALENDAR_MINUTE, - * #I18N_UCALENDAR_SECOND, #I18N_UCALENDAR_MILLISECOND, #I18N_UCALENDAR_ZONE_OFFSET, - * #I18N_UCALENDAR_DST_OFFSET. + * @param[in] field The field to clear. * * @return Error code * @retval #I18N_ERROR_NONE Successful @@ -716,22 +707,25 @@ int i18n_ucalendar_clear_field (i18n_ucalendar_h calendar, i18n_ucalendar_date_f int i18n_ucalendar_clear (i18n_ucalendar_h calendar); /** - * @brief Determines a limit for a field in a #i18n_ucalendar_h. + * @brief Determines a limit for a field in an #i18n_ucalendar_h. * @details A limit is a maximum or minimum value for a field. - * @remarks The specific error code can be obtained using the get_last_result() - * method. Error codes are described in Exceptions section and - * #i18n_error_code_e description. + * @remarks The specific error code can be obtained using the get_last_result() method. + * Error codes are described in Exceptions section and #i18n_error_code_e description. * @since_tizen 2.3.1 * * @param[in] calendar The #i18n_ucalendar_h to query. - * @param[in] field The desired field; one of #I18N_UCALENDAR_ERA, #I18N_UCALENDAR_YEAR, #I18N_UCALENDAR_MONTH, - * #I18N_UCALENDAR_WEEK_OF_YEAR, #I18N_UCALENDAR_WEEK_OF_MONTH, #I18N_UCALENDAR_DATE, #I18N_UCALENDAR_DAY_OF_YEAR, - * #I18N_UCALENDAR_DAY_OF_WEEK, #I18N_UCALENDAR_DAY_OF_WEEK_IN_MONTH, #I18N_UCALENDAR_AM_PM, #I18N_UCALENDAR_HOUR, - * #I18N_UCALENDAR_HOUR_OF_DAY, #I18N_UCALENDAR_MINUTE, #I18N_UCALENDAR_SECOND, #I18N_UCALENDAR_MILLISECOND, - * #I18N_UCALENDAR_ZONE_OFFSET, #I18N_UCALENDAR_DST_OFFSET. - * @param[in] type The desired critical point; one of #I18N_UCALENDAR_MINIMUM, #I18N_UCALENDAR_MAXIMUM, - * #I18N_UCALENDAR_GREATEST_MINIMUM, #I18N_UCALENDAR_LEAST_MAXIMUM, #I18N_UCALENDAR_ACTUAL_MINIMUM, - * #I18N_UCALENDAR_ACTUAL_MAXIMUM + * @param[in] field The desired field; one of #I18N_UCALENDAR_ERA, #I18N_UCALENDAR_YEAR, #I18N_UCALENDAR_MONTH, + * #I18N_UCALENDAR_WEEK_OF_YEAR, #I18N_UCALENDAR_WEEK_OF_MONTH, #I18N_UCALENDAR_DATE, + * #I18N_UCALENDAR_DAY_OF_YEAR, #I18N_UCALENDAR_DAY_OF_WEEK, #I18N_UCALENDAR_DAY_OF_WEEK_IN_MONTH, + * #I18N_UCALENDAR_AM_PM, #I18N_UCALENDAR_HOUR, #I18N_UCALENDAR_HOUR_OF_DAY, + * #I18N_UCALENDAR_MINUTE, #I18N_UCALENDAR_SECOND, #I18N_UCALENDAR_MILLISECOND, + * #I18N_UCALENDAR_ZONE_OFFSET, #I18N_UCALENDAR_DST_OFFSET, #I18N_UCALENDAR_YEAR_WOY, + * #I18N_UCALENDAR_DOW_LOCAL, #I18N_UCALENDAR_EXTENDED_YEAR, #I18N_UCALENDAR_JULIAN_DAY, + * #I18N_UCALENDAR_MILLISECONDS_IN_DAY, #I18N_UCALENDAR_IS_LEAP_MONTH. + * @param[in] type The desired critical point; one of #I18N_UCALENDAR_MINIMUM, #I18N_UCALENDAR_MAXIMUM, + * #I18N_UCALENDAR_GREATEST_MINIMUM, #I18N_UCALENDAR_LEAST_MAXIMUM, + * #I18N_UCALENDAR_ACTUAL_MINIMUM, #I18N_UCALENDAR_ACTUAL_MAXIMUM. + * * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * diff --git a/src/include/mobile/utils_i18n_udate.h b/src/include/mobile/utils_i18n_udate.h index 0ea5702..f5eb738 100644 --- a/src/include/mobile/utils_i18n_udate.h +++ b/src/include/mobile/utils_i18n_udate.h @@ -179,11 +179,12 @@ extern "C" { * are not currently supported). * @param[in] date_style The style used to format dates\n One of #I18N_UDATE_FULL, #I18N_UDATE_LONG, * #I18N_UDATE_MEDIUM, #I18N_UDATE_SHORT, #I18N_UDATE_DEFAULT, #I18N_UDATE_RELATIVE, #I18N_UDATE_LONG_RELATIVE, - * #I18N_UDATE_MEDIUM_RELATIVE, #I18N_UDATE_SHORT_RELATIVE, or #I18N_UDATE_NONE + * #I18N_UDATE_MEDIUM_RELATIVE, #I18N_UDATE_SHORT_RELATIVE, #I18N_UDATE_PATTERN, or #I18N_UDATE_NONE * @param[in] locale The locale specifying the formatting conventions. * @param[in] tz_id A timezone ID specifying the timezone to use\n If @c 0, use the default timezone. * @param[in] tz_id_len The length of @a tz_id, otherwise @c -1 if NULL-terminated. * @param[in] pattern A pattern specifying the format to use. The pattern is generated by Udatepg module. + * When the pattern parameter is used, pass in #I18N_UDATE_PATTERN for both time_style and date_style. * @param[in] pattern_len The number of characters in the pattern, or otherwise @c -1 if NULL-terminated. * @param[out] format A pointer to an #i18n_udate_format_h to use for formatting dates and times, otherwise @c 0 if an error occurs. * @@ -237,8 +238,8 @@ int i18n_udate_format_date ( const i18n_udate_format_h format, i18n_udate date_t * @details Note: since the mapping is many-to-one, there is no inverse mapping. * @since_tizen 2.3.1 * - * @param[in] field The #i18n_udate_format_h to map. - * #I18N_UDATE_FORMAT_TIMEZONE_LOCALIZED_GMT_OFFSET_FIELD, #I18N_UDATE_FORMAT_TIMEZONE_ISO_FIELD, + * @param[in] field The #i18n_udate_format_h to map. + * #I18N_UDATE_FORMAT_TIMEZONE_LOCALIZED_GMT_OFFSET_FIELD, #I18N_UDATE_FORMAT_TIMEZONE_ISO_FIELD, * #I18N_UDATE_FORMAT_TIMEZONE_ISO_LOCAL_FIELD and #I18N_UDATE_FORMAT_FIELD_COUNT are not supported. * @param[out] date_field_type A pointer to the #i18n_ucalendar_date_fields_e. * @@ -526,15 +527,9 @@ int i18n_udate_apply_pattern ( i18n_udate_format_h format, i18n_ubool localized, * * @param[in] format The #i18n_udate_format_h to query. * @param[in] type The type of symbols to get. - * One of #I18N_UDATE_FORMAT_SYMBOL_TYPE_ERAS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_MONTHS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_SHORT_MONTHS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_WEEKDAYS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_SHORT_WEEKDAYS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_AM_PMS, - * or #I18N_UDATE_FORMAT_SYMBOL_TYPE_LOCALIZED_CHARS + * All the types defined in the #i18n_udate_format_symbol_type_e enumeration are supported. * @param[in] symbol_index The desired symbol of type type. - * @param[out] result A pointer to a buffer to receive the pattern. + * @param[out] result A pointer to a buffer to receive the pattern. * @param[in] result_length The maximum size of the result buffer. * * @return The total buffer size needed; if greater than result_length, the output was truncated. @@ -556,13 +551,7 @@ int32_t i18n_udate_get_symbols ( const i18n_udate_format_h format, i18n_udate_fo * * @param[in] format The #i18n_udate_format_h to query. * @param[in] type The type of symbols to count. - * One of #I18N_UDATE_FORMAT_SYMBOL_TYPE_ERAS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_MONTHS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_SHORT_MONTHS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_WEEKDAYS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_SHORT_WEEKDAYS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_AM_PMS, - * or #I18N_UDATE_FORMAT_SYMBOL_TYPE_LOCALIZED_CHARS + * If wrong type is passed, 0 will be returned. * * @return The number of symbols of type @a type. * @@ -582,18 +571,13 @@ int32_t i18n_udate_count_symbols ( const i18n_udate_format_h format, i18n_udate_ * * @param[in] format The #i18n_udate_format_h to set. * @param[in] type The type of symbols to set. - * One of #I18N_UDATE_FORMAT_SYMBOL_TYPE_ERAS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_MONTHS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_SHORT_MONTHS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_WEEKDAYS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_SHORT_WEEKDAYS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_AM_PMS, - * or #I18N_UDATE_FORMAT_SYMBOL_TYPE_LOCALIZED_CHARS + * All the types defined in the #i18n_udate_format_symbol_type_e enumeration are supported. + * If a type not defined in the enumeration is passed, then the #I18N_ERROR_NOT_SUPPORTED error is returned. * @param[in] symbol_index The index of the symbol to set of type type. * @param[in] value The new value. - * @param[in] value_length The length of value, or -1 if NULL-terminated. + * @param[in] value_length The length of @a value, or @c -1 if NULL-terminated. * - * @return Error code. Error codes not listed below are described in #i18n_error_code_e + * @return Error code. Error codes not listed below are described in the #i18n_error_code_e enumeration. * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * diff --git a/src/include/mobile/utils_i18n_uenumeration.h b/src/include/mobile/utils_i18n_uenumeration.h index 05285eb..bbfe620 100755 --- a/src/include/mobile/utils_i18n_uenumeration.h +++ b/src/include/mobile/utils_i18n_uenumeration.h @@ -32,13 +32,14 @@ extern "C" { /** * @ingroup CAPI_BASE_UTILS_I18N_MODULE * @defgroup CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE UEnumeration - * @brief Ubrk defines methods for finding the location of boundaries in text. + * @brief UEnumeration defines functions for handling String Enumeration. * * @section CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE_HEADER Required Header * \#include * * @section CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE_OVERVIEW Overview - * @details Pointer to a UBreakIterator maintain a current position and scan over text returning the index of characters where boundaries occur. + * @details The UEnumeration module allows to create String Enumeration + * from chars and uchars. * */ diff --git a/src/include/mobile/utils_i18n_unumber.h b/src/include/mobile/utils_i18n_unumber.h index d4f7f56..c25d665 100644 --- a/src/include/mobile/utils_i18n_unumber.h +++ b/src/include/mobile/utils_i18n_unumber.h @@ -272,7 +272,7 @@ int32_t i18n_unumber_format_decimal (const i18n_unumber_format_h fmt, const char * * @param[in] fmt The formatter to use. * @param[in] number The number to format. - * @param[in] currency The length of the input @a number, or -1 if the input is NULL-terminated. + * @param[in] currency The 3-letter NULL-terminated ISO 4217 currency code. * @param[out] result A pointer to a buffer to receive the NULL-terminated formatted number. * If the formatted number fits into @a result but cannot be NULL-terminated (length == result_length) * then the error code is set to #I18N_WARNING_STRING_NOT_TERMINATED. @@ -467,7 +467,7 @@ int32_t i18n_unumber_count_available (void); * #I18N_UNUMBER_ROUNDING_MODE, #I18N_UNUMBER_FORMAT_WIDTH, #I18N_UNUMBER_PADDING_POSITION, * #I18N_UNUMBER_SECONDARY_GROUPING_SIZE, #I18N_UNUM_SCALE. * - * @return The value of @a attr. + * @return The value of @a attr or @c -1 if the given attribute is not supported. * * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter @@ -478,7 +478,7 @@ int32_t i18n_unumber_get_attribute (const i18n_unumber_format_h fmt, i18n_unumbe * @brief Sets a numeric attribute associated with an #i18n_unumber_format_h. * @details An example of a numeric attribute is the number of integer digits a formatter will produce. * If the formatter does not understand the attribute, the call is ignored. Rule-based formatters only understand - * the lenient-parse attribute. + * the lenient-parse attribute. The #I18N_UNUMBER_ROUNDING_INCREMENT attribute is not supported. * @remarks Error codes are described in #i18n_error_code_e description. * @since_tizen 2.3.1 * @@ -488,7 +488,9 @@ int32_t i18n_unumber_get_attribute (const i18n_unumber_format_h fmt, i18n_unumbe * #I18N_UNUMBER_INTEGER_DIGITS, #I18N_UNUMBER_MAX_FRACTION_DIGITS, #I18N_UNUMBER_MIN_FRACTION_DIGITS, * #I18N_UNUMBER_FRACTION_DIGITS, #I18N_UNUMBER_MULTIPLIER, #I18N_UNUMBER_GROUPING_SIZE, * #I18N_UNUMBER_ROUNDING_MODE, #I18N_UNUMBER_FORMAT_WIDTH, #I18N_UNUMBER_PADDING_POSITION, - * #I18N_UNUMBER_SECONDARY_GROUPING_SIZE, #I18N_UNUM_SCALE. + * #I18N_UNUMBER_SECONDARY_GROUPING_SIZE, #I18N_UNUMBER_SIGNIFICANT_DIGITS_USED, #I18N_UNUMBER_MIN_SIGNIFICANT_DIGITS, + * #I18N_UNUMBER_MAX_SIGNIFICANT_DIGITS, #I18N_UNUMBER_LENIENT_PARSE, #I18N_UNUM_SCALE, + * #I18N_UNUM_FORMAT_FAIL_IF_MORE_THAN_MAX_DIGITS, #I18N_UNUM_PARSE_NO_EXPONENT. * @param[in] new_value The new value of @a attr. * * @return The obtained error code. @@ -523,7 +525,7 @@ double i18n_unumber_get_double_attribute (const i18n_unumber_format_h fmt, i18n_ * @since_tizen 2.3.1 * * @param[in] fmt The formatter to set. - * @param[in] attr The attribute to query; e.g. #I18N_UNUMBER_ROUNDING_INCREMENT. + * @param[in] attr The attribute to query; Only #I18N_UNUMBER_ROUNDING_INCREMENT is supported. * @param[in] new_value The new value of @a attr. * * @return The obtained error code. @@ -558,16 +560,16 @@ int32_t i18n_unumber_get_text_attribute (const i18n_unumber_format_h fmt, i18n_u /** * @brief Sets a text attribute associated with an #i18n_unumber_format_h. * @details An example of a text attribute is the suffix for positive numbers. Rule-based formatters only understand - * #I18N_UNUMBER_DEFAULT_RULESET. + * #I18N_UNUMBER_DEFAULT_RULESET. The #I18N_UNUMBER_PUBLIC_RULESETS tag is not supported. * @remarks Error codes are described in #i18n_error_code_e description. * @since_tizen 2.3.1 * - * @param[in] fmt The formatter to query. - * @param[in] tag The attribute to query; one of #I18N_UNUMBER_POSITIVE_PREFIX, #I18N_UNUMBER_POSITIVE_SUFFIX, + * @param[in] fmt The formatter to set. + * @param[in] tag The attribute to set; one of #I18N_UNUMBER_POSITIVE_PREFIX, #I18N_UNUMBER_POSITIVE_SUFFIX, * #I18N_UNUMBER_NEGATIVE_PREFIX, #I18N_UNUMBER_NEGATIVE_SUFFIX, #I18N_UNUMBER_PADDING_CHARACTER, - * #I18N_UNUMBER_CURRENCY_CODE, #I18N_UNUMBER_DEFAULT_RULESET, or #I18N_UNUMBER_PUBLIC_RULESETS. - * @param[out] new_value A pointer to a buffer to receive the attribute. - * @param[in] new_value_length The maximum size of @a new_value. + * #I18N_UNUMBER_CURRENCY_CODE, #I18N_UNUMBER_DEFAULT_RULESET. + * @param[in] new_value The new value of @a tag. + * @param[in] new_value_length The length of new_value, or -1 if NULL-terminated. * * @return The obtained error code. * @retval #I18N_ERROR_NONE Successful. diff --git a/src/include/mobile/utils_i18n_usearch.h b/src/include/mobile/utils_i18n_usearch.h index 9a7b90c..a770cf6 100755 --- a/src/include/mobile/utils_i18n_usearch.h +++ b/src/include/mobile/utils_i18n_usearch.h @@ -152,7 +152,7 @@ int i18n_usearch_destroy ( i18n_usearch_h search_iter ); * is not possible. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif * - * @param[in] search_iter The search iterator data struct + * @param[in] search_iter The search iterator handle * @param[out] result i18n_uchar The buffer to store the matched string * @param[in] result_capacity The length of the result buffer * @param[out] len_matched_text The exact length of the matched text, not counting the NULL-termination @@ -170,7 +170,7 @@ int i18n_usearch_get_matched_text ( const i18n_usearch_h search_iter, i18n_uchar * i18n_usearch_destroy() will delete the collator if this search owns it. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif * - * @param[in] search_iter The search iterator data struct + * @param[in] search_iter The search iterator handle * @param[out] collator The collator * * @retval #I18N_ERROR_NONE Successful @@ -186,7 +186,7 @@ int i18n_usearch_get_collator ( const i18n_usearch_h search_iter, i18n_ucollator * the iterator will be adjusted to the index #I18N_USEARCH_DONE. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif * - * @param[in] search_iter The search iterator data struct + * @param[in] search_iter The search iterator handle * @param[out] index_first The character index of the first match, * otherwise #I18N_USEARCH_DONE if there are no matches. * diff --git a/src/include/mobile/utils_i18n_uset.h b/src/include/mobile/utils_i18n_uset.h index 2515dc1..6cf528e 100755 --- a/src/include/mobile/utils_i18n_uset.h +++ b/src/include/mobile/utils_i18n_uset.h @@ -36,13 +36,13 @@ extern "C" { /** * @ingroup CAPI_BASE_UTILS_I18N_MODULE * @defgroup CAPI_BASE_UTILS_I18N_USET_MODULE Uset - * @brief C API: Unicode Set. + * @brief Uset module allows to specify a subset of character used in strings. * * @section CAPI_BASE_UTILS_I18N_USET_MODULE_HEADER Required Header * \#include * * @section CAPI_BASE_UTILS_I18N_USET_MODULE_OVERVIEW Overview - * @details The Uset module is a C wrapper around the C++ UnicodeSet class. + * @details Uset module allows to specify a subset of character used in strings. */ /** @@ -1056,7 +1056,7 @@ i18n_ubool i18n_uset_equals (const i18n_uset_h set1, const i18n_uset_h set2); * @since_tizen 2.3.1 * * @param[in] set the set. Must not be @c NULL. - * @param[in] dest pointer to buffer of @a dest_capacity 16-bit integers + * @param[out] dest pointer to buffer of @a dest_capacity 16-bit integers * May be NULL only if @a dest_capacity is zero. * @param[in] dest_capacity size of @a dest, or zero * Must not be negative. diff --git a/src/include/wearable/utils_i18n.h b/src/include/wearable/utils_i18n.h index f0040d2..94a07bd 100755 --- a/src/include/wearable/utils_i18n.h +++ b/src/include/wearable/utils_i18n.h @@ -61,6 +61,14 @@ extern "C" { * The Timezone module represents a time zone offset, and also figures out daylight savings. * * + * @ref CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE + * UEnumeration defines functions for handling String Enumeration. + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * Ubrk module defines methods for finding the location of boundaries in text. + * + * * @ref CAPI_BASE_UTILS_I18N_UCOLLATOR_MODULE * Ucollator module performs locale-sensitive string comparison. It builds searching and sorting routines for natural language text and provides correct sorting orders for most locales. * @@ -77,6 +85,10 @@ extern "C" { * Usearch module provides language-sensitive text searching based on the comparison rules defined in a ucollator data struct. * * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * Uset module allows to specify a subset of character used in strings. + * + * * @ref CAPI_BASE_UTILS_I18N_USTRING_MODULE * Ustring module provides general unicode string handling. * @@ -247,6 +259,131 @@ extern "C" { * getDSTSavings * * + * @ref CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE + * #i18n_uenumeration_destroy + * uenum_close + * + * + * @ref CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE + * #i18n_uenumeration_count + * uenum_count + * + * + * @ref CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE + * #i18n_uenumeration_unext + * uenum_unext + * + * + * @ref CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE + * #i18n_uenumeration_next + * uenum_next + * + * + * @ref CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE + * #i18n_uenumeration_reset + * uenum_reset + * + * + * @ref CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE + * #i18n_uenumeration_uchar_strings_enumeration_create + * uenum_openUCharStringsEnumeration + * + * + * @ref CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE + * #i18n_uenumeration_char_strings_enumeration_create + * uenum_openCharStringsEnumeration + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_create + * ubrk_open + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_create_rules + * ubrk_openRules + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_safe_clone + * ubrk_safeClone + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_destroy + * ubrk_close + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_set_text + * ubrk_setText + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_current + * ubrk_current + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_next + * ubrk_next + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_preceding + * ubrk_preceding + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_previous + * ubrk_previous + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_first + * ubrk_first + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_last + * ubrk_last + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_following + * ubrk_following + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_get_available + * ubrk_getAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_count_available + * ubrk_countAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_is_boundary + * ubrk_isBoundary + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_get_rule_status + * ubrk_getRuleStatus + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_get_rule_status_vec + * ubrk_getRuleStatusVec + * + * + * @ref CAPI_BASE_UTILS_I18N_UBRK_MODULE + * #i18n_ubrk_get_locale_by_type + * ubrk_getLocaleByType + * + * * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE * #i18n_ucalendar_set_default_timezone * ucal_setDefaultTimeZone @@ -327,6 +464,136 @@ extern "C" { * ucal_get * * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_clear + * ucal_clear + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_clear_field + * ucal_clearField + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_count_available + * ucal_countAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_country_timezones_create + * ucal_openCountryTimeZones + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_available + * ucal_getAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_canonical_timezone_id + * ucal_getCanonicalTimeZoneID + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_day_of_week_type + * ucal_getDayOfWeekType + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_default_timezone + * ucal_getDefaultTimeZone + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_field_difference + * ucal_getFieldDifference + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_gregorian_change + * ucal_getGregorianChange + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_keyword_values_for_locale + * ucal_getKeywordValuesForLocale + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_limit + * ucal_getLimit + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_locale_by_type + * ucal_getLocaleByType + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_timezone_id + * ucal_getTimeZoneID + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_timezone_transition_date + * ucal_getTimeZoneTransitionDate + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_type + * ucal_getType + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_tz_data_version + * ucal_getTZDataVersion + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_get_weekend_transition + * ucal_getWeekendTransition + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_is_set + * ucal_isSet + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_is_weekend + * ucal_isWeekend + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_roll + * ucal_roll + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_set_date + * ucal_setDate + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_set_gregorian_change + * ucal_setGregorianChange + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_set_timezone + * ucal_setTimeZone + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_timezones_create + * ucal_openTimeZones + * + * + * @ref CAPI_BASE_UTILS_I18N_UCALENDAR_MODULE + * #i18n_ucalendar_timezone_id_enumeration_create + * ucal_openTimeZoneIDEnumeration + * + * * @ref CAPI_BASE_UTILS_I18N_UCHAR_MODULE * #i18n_uchar_get_int_property_value * u_getIntpropertyValue @@ -382,6 +649,111 @@ extern "C" { * udat_format * * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_apply_pattern + * udat_applyPattern + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_clone + * udat_clone + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_count_available + * udat_countAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_count_symbols + * udat_countSymbols + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_get_2digit_year_start + * udat_get2DigitYearStart + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_get_available + * udat_getAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_get_calendar + * udat_getCalendar + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_get_locale_by_type + * udat_getLocaleByType + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_get_number_format + * udat_getNumberFormat + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_get_symbols + * udat_getSymbols + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_is_lenient + * udat_isLenient + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_parse + * udat_parse + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_parse_calendar + * udat_parseCalendar + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_set_2digit_year_start + * udat_set2DigitYearStart + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_set_calendar + * udat_setCalendar + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_set_context + * udat_setContext + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_set_lenient + * udat_setLenient + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_set_number_format + * udat_setNumberFormat + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_set_symbols + * udat_setSymbols + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_to_calendar_date_field + * udat_toCalendarDateField + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATE_MODULE + * #i18n_udate_to_pattern + * udat_toPattern + * + * * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE * #i18n_udatepg_create * udatpg_open @@ -397,79 +769,425 @@ extern "C" { * udatpg_getBestPattern * * - * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE - * #i18n_ulocale_get_default - * uloc_getDefault + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_add_pattern + * udatpg_addPattern * * - * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE - * #i18n_ulocale_set_default - * uloc_setDefault + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_base_skeletons_create + * udatpg_openBaseSkeletons * * - * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE - * #i18n_ulocale_get_language - * uloc_getLanguage + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_clone + * udatpg_clone * * - * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE - * #i18n_ulocale_get_country - * uloc_getCountry + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_create_empty + * udatpg_openEmpty * * - * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE - * #i18n_ulocale_get_display_name - * uloc_getDisplayName + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_get_append_item_format + * udatpg_getAppendItemFormat * * - * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE - * #i18n_ulocale_get_available - * uloc_getAvailable + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_get_append_item_name + * udatpg_getAppendItemName * * - * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE - * #i18n_ulocale_count_available - * uloc_countAvailable + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_get_base_skeleton + * udatpg_getBaseSkeleton * * - * @ref CAPI_BASE_UTILS_I18N_UNORMALIZATION_MODULE - * #i18n_unormalization_get_instance - * unorm2_getInstance + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_get_best_pattern_with_options + * udatpg_getBestPatternWithOptions * * - * @ref CAPI_BASE_UTILS_I18N_UNORMALIZATION_MODULE - * #i18n_unormalization_normalize - * unorm2_normalize + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_get_date_time_format + * udatpg_getDateTimeFormat * * - * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE - * #i18n_unumber_create - * unum_open + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_get_decimal + * udatpg_getDecimal * * - * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE - * #i18n_unumber_destroy - * unum_close + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_get_pattern_for_skeleton + * udatpg_getPatternForSkeleton * * - * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE - * #i18n_unumber_get_symbol - * unum_getSymbol + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_get_skeleton + * udatpg_getSkeleton * * - * @ref CAPI_BASE_UTILS_I18N_USEARCH_MODULE - * #i18n_usearch_create_new - * usearch_open + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_replace_field_types + * udatpg_replaceFieldTypes * * - * @ref CAPI_BASE_UTILS_I18N_USEARCH_MODULE - * #i18n_usearch_destroy - * usearch_close + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_replace_field_types_with_options + * udatpg_replaceFieldTypesWithOptions * * - * @ref CAPI_BASE_UTILS_I18N_USEARCH_MODULE - * #i18n_usearch_get_matched_text - * usearch_getMatchedText + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_set_append_item_format + * udatpg_setAppendItemFormat + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_set_append_item_name + * udatpg_setAppendItemName + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_set_date_time_format + * udatpg_setDateTimeFormat + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_set_decimal + * udatpg_setDecimal + * + * + * @ref CAPI_BASE_UTILS_I18N_UDATEPG_MODULE + * #i18n_udatepg_skeletons_create + * udatpg_openSkeletons + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_default + * uloc_getDefault + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_set_default + * uloc_setDefault + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_language + * uloc_getLanguage + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_country + * uloc_getCountry + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_display_name + * uloc_getDisplayName + * + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_add_likely_subtags + * uloc_addLikelySubtags + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_canonicalize + * uloc_canonicalize + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_for_language_tag + * uloc_forLanguageTag + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_base_name + * uloc_getBaseName + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_character_orientation + * uloc_getCharacterOrientation + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_display_country + * uloc_getDisplayCountry + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_display_keyword + * uloc_getDisplayKeyword + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_display_keyword_value + * uloc_getDisplayKeywordValue + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_display_language + * uloc_getDisplayLanguage + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_display_script + * uloc_getDisplayScript + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_display_variant + * uloc_getDisplayVariant + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_iso3_country + * uloc_getISO3Country + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_iso3_language + * uloc_getISO3Language + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_iso_countries + * uloc_getISOCountries + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_iso_languages + * uloc_getISOLanguages + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_keyword_value + * uloc_getKeywordValue + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_lcid + * uloc_getLCID + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_line_orientation + * uloc_getLineOrientation + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_locale_for_lcid + * uloc_getLocaleForLCID + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_name + * uloc_getName + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_parent + * uloc_getParent + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_script + * uloc_getScript + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_variant + * uloc_getVariant + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_keywords_create + * uloc_openKeywords + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_minimize_subtags + * uloc_minimizeSubtags + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_set_keyword_value + * uloc_setKeywordValue + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_to_language_tag + * uloc_toLanguageTag + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_get_available + * uloc_getAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_ULOCALE_MODULE + * #i18n_ulocale_count_available + * uloc_countAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_UNORMALIZATION_MODULE + * #i18n_unormalization_get_instance + * unorm2_getInstance + * + * + * @ref CAPI_BASE_UTILS_I18N_UNORMALIZATION_MODULE + * #i18n_unormalization_normalize + * unorm2_normalize + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_create + * unum_open + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_destroy + * unum_close + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_get_symbol + * unum_getSymbol + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_apply_pattern + * unum_applyPattern + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_clone + * unum_clone + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_count_available + * unum_countAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_format + * unum_format + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_format_decimal + * unum_formatDecimal + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_format_double + * unum_formatDouble + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_format_double_currency + * unum_formatDoubleCurrency + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_format_int64 + * unum_formatInt64 + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_get_attribute + * unum_getAttribute + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_get_available + * unum_getAvailable + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_get_double_attribute + * unum_getDoubleAttribute + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_get_locale_by_type + * unum_getLocaleByType + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_get_text_attribute + * unum_getTextAttribute + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_parse + * unum_parse + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_parse_decimal + * unum_parseDecimal + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_parse_double + * unum_parseDouble + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_parse_double_currency + * unum_parseDoubleCurrency + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_parse_int64 + * unum_parseInt64 + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_set_attribute + * unum_setAttribute + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_set_double_attribute + * unum_setDoubleAttribute + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_set_symbol + * unum_setSymbol + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_set_text_attribute + * unum_setTextAttribute + * + * + * @ref CAPI_BASE_UTILS_I18N_UNUMBER_MODULE + * #i18n_unumber_to_pattern + * unum_toPattern + * + * + * @ref CAPI_BASE_UTILS_I18N_USEARCH_MODULE + * #i18n_usearch_create_new + * usearch_open + * + * + * @ref CAPI_BASE_UTILS_I18N_USEARCH_MODULE + * #i18n_usearch_destroy + * usearch_close + * + * + * @ref CAPI_BASE_UTILS_I18N_USEARCH_MODULE + * #i18n_usearch_get_matched_text + * usearch_getMatchedText * * * @ref CAPI_BASE_UTILS_I18N_USEARCH_MODULE @@ -482,6 +1200,286 @@ extern "C" { * usearch_first * * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_create_empty + * uset_openEmpty + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_create + * uset_open + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_create_pattern + * uset_openPattern + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_create_pattern_options + * uset_openPatternOptions + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_destroy + * uset_close + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_clone + * uset_clone + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_is_frozen + * uset_isFrozen + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_freeze + * uset_freeze + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_clone_as_thawed + * uset_cloneAsThawed + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_set + * uset_set + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_apply_pattern + * uset_applyPattern + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_apply_int_property_value + * uset_applyIntPropertyValue + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_apply_property_alias + * uset_applyPropertyAlias + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_resembles_pattern + * uset_resemblesPattern + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_to_pattern + * uset_toPattern + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_add + * uset_add + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_add_all + * uset_addAll + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_add_range + * uset_addRange + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_add_string + * uset_addString + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_add_all_code_points + * uset_addAllCodePoints + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_remove + * uset_remove + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_remove_range + * uset_removeRange + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_remove_string + * uset_removeString + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_remove_all + * uset_removeAll + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_retain + * uset_retain + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_retain_all + * uset_retainAll + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_compact + * uset_compact + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_complement + * uset_complement + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_complement_all + * uset_complementAll + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_clear + * uset_clear + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_destroy_over + * uset_closeOver + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_remove_all_strings + * uset_removeAllStrings + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_is_empty + * uset_isEmpty + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_contains + * uset_contains + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_contains_range + * uset_containsRange + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_contains_string + * uset_containsString + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_index_of + * uset_indexOf + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_char_at + * uset_charAt + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_size + * uset_size + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_get_item_count + * uset_getItemCount + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_get_item + * uset_getItem + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_contains_all + * uset_containsAll + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_contains_all_code_points + * uset_containsAllCodePoints + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_contains_none + * uset_containsNone + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_contains_some + * uset_containsSome + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_span + * uset_span + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_span_back + * uset_spanBack + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_span_utf8 + * uset_spanUTF8 + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_span_back_utf8 + * uset_spanBackUTF8 + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_equals + * uset_equals + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_serialize + * uset_serialize + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_get_serialized_set + * uset_getSerializedSet + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_set_serialized_to_one + * uset_setSerializedToOne + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_serialized_contains + * uset_serializedContains + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_get_serialized_range_count + * uset_getSerializedRangeCount + * + * + * @ref CAPI_BASE_UTILS_I18N_USET_MODULE + * #i18n_uset_get_serialized_range + * uset_getSerializedRange + * + * * @ref CAPI_BASE_UTILS_I18N_USTRING_MODULE * #i18n_ustring_get_length * u_strlen diff --git a/src/include/wearable/utils_i18n_types.h b/src/include/wearable/utils_i18n_types.h index 1ed1863..a833e08 100644 --- a/src/include/wearable/utils_i18n_types.h +++ b/src/include/wearable/utils_i18n_types.h @@ -1076,7 +1076,7 @@ typedef enum { */ /** - * @brief i18n_unormalizer_h. + * @brief i18n_usearch_h. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ typedef void* i18n_usearch_h; @@ -1373,7 +1373,7 @@ typedef enum { I18N_UDATE_FORMAT_TIMEZONE_LOCALIZED_GMT_OFFSET_FIELD, /**< Timezone localized gmt offset field */ I18N_UDATE_FORMAT_TIMEZONE_ISO_FIELD, /**< Timezone ISO field */ I18N_UDATE_FORMAT_TIMEZONE_ISO_LOCAL_FIELD, /**< Timezone ISO local field */ - I18N_UDATE_FORMAT_FIELD_COUNT = 35 /**< Field count */ + I18N_UDATE_FORMAT_FIELD_COUNT /**< Field count */ } i18n_udate_format_field_e; /** diff --git a/src/include/wearable/utils_i18n_ucalendar.h b/src/include/wearable/utils_i18n_ucalendar.h index 2c6ab1d..8dae458 100644 --- a/src/include/wearable/utils_i18n_ucalendar.h +++ b/src/include/wearable/utils_i18n_ucalendar.h @@ -203,7 +203,7 @@ int i18n_ucalendar_clone ( const i18n_ucalendar_h cal, i18n_ucalendar_h *identic * * @param[in] calendar The #i18n_ucalendar_h to query * @param[in] type The desired display name format \n - * One of #I18N_UCALENDAR_STANDARD, #I18N_UCALENDAR_SHORT_STANDARD, #I18N_UCALENDAR_DST, or #I18N_UCALENDAR_SHORT_DST + * One of #I18N_UCALENDAR_STANDARD, #I18N_UCALENDAR_SHORT_STANDARD, #I18N_UCALENDAR_DST, or #I18N_UCALENDAR_SHORT_DST * @param[in] locale The desired locale for the display name * @param[out] result A pointer to a buffer to receive the formatted number * @param[in] result_len The maximum size of the result @@ -359,7 +359,7 @@ int i18n_ucalendar_is_equivalent_to ( const i18n_ucalendar_h calendar1, const i1 * @param[in] field The field to which to add the signed value\n One of #I18N_UCALENDAR_ERA, #I18N_UCALENDAR_YEAR, #I18N_UCALENDAR_MONTH, * #I18N_UCALENDAR_WEEK_OF_YEAR, #I18N_UCALENDAR_WEEK_OF_MONTH, #I18N_UCALENDAR_DATE, #I18N_UCALENDAR_DAY_OF_YEAR, #I18N_UCALENDAR_DAY_OF_WEEK, * #I18N_UCALENDAR_DAY_OF_WEEK_IN_MONTH, #I18N_UCALENDAR_AM_PM, #I18N_UCALENDAR_HOUR, #I18N_UCALENDAR_HOUR_OF_DAY, #I18N_UCALENDAR_MINUTE, #I18N_UCALENDAR_SECOND, - * #I18N_UCALENDAR_MILLISECOND, #I18N_UCALENDAR_ZONE_OFFSET, or #I18N_UCALENDAR_DST_OFFSET. + * #I18N_UCALENDAR_MILLISECOND. * @param[in] amount The signed amount to add to the field \n * If the amount causes the value to exceed to maximum or minimum values for that field, * other fields are modified to preserve the magnitude of the change. @@ -410,8 +410,10 @@ int i18n_ucalendar_get ( const i18n_ucalendar_h calendar, i18n_ucalendar_date_fi * #I18N_UCALENDAR_WEEK_OF_YEAR, #I18N_UCALENDAR_WEEK_OF_MONTH, #I18N_UCALENDAR_DATE, * #I18N_UCALENDAR_DAY_OF_YEAR, #I18N_UCALENDAR_DAY_OF_WEEK, #I18N_UCALENDAR_DAY_OF_WEEK_IN_MONTH, * #I18N_UCALENDAR_AM_PM, #I18N_UCALENDAR_HOUR, #I18N_UCALENDAR_HOUR_OF_DAY, #I18N_UCALENDAR_MINUTE, - * #I18N_UCALENDAR_SECOND, #I18N_UCALENDAR_MILLISECOND, #I18N_UCALENDAR_ZONE_OFFSET, - * #I18N_UCALENDAR_DST_OFFSET. + * #I18N_UCALENDAR_SECOND, #I18N_UCALENDAR_MILLISECOND. + * Please note that the returned value type is int32_t. In case of #I18N_UCALENDAR_MILLISECOND, maximal + * difference between dates may be equal to the maximal value of the int32_t, which is 2147483647 (about one month difference). + * If the difference is bigger, then the #I18N_ERROR_INVALID_PARAMETER error will be returned. * @param[out] status A pointer to an i18n_error_code_e to receive any errors * * @return The date difference for the specified field. @@ -654,13 +656,8 @@ int i18n_ucalendar_roll (i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e * @since_tizen 2.3.1 * * @param[in] calendar The #i18n_ucalendar_h to query. - * @param[in] field The field to which to add the signed value; one of #I18N_UCALENDAR_ERA, - * #I18N_UCALENDAR_YEAR, #I18N_UCALENDAR_MONTH, #I18N_UCALENDAR_WEEK_OF_YEAR, - * #I18N_UCALENDAR_WEEK_OF_MONTH, #I18N_UCALENDAR_DATE, #I18N_UCALENDAR_DAY_OF_YEAR, - * #I18N_UCALENDAR_DAY_OF_WEEK, #I18N_UCALENDAR_DAY_OF_WEEK_IN_MONTH, #I18N_UCALENDAR_AM_PM, - * #I18N_UCALENDAR_HOUR, #I18N_UCALENDAR_HOUR_OF_DAY, #I18N_UCALENDAR_MINUTE, - * #I18N_UCALENDAR_SECOND, #I18N_UCALENDAR_MILLISECOND, #I18N_UCALENDAR_ZONE_OFFSET, - * #I18N_UCALENDAR_DST_OFFSET. + * @param[in] field The desired field. + * * @return @c true if field is set, @c false otherwise. * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter @@ -678,13 +675,7 @@ i18n_ubool i18n_ucalendar_is_set (const i18n_ucalendar_h calendar, i18n_ucalenda * @since_tizen 2.3.1 * * @param[in] calendar The #i18n_ucalendar_h containing the field to clear. - * @param[in] field The field to which to add the signed value; one of #I18N_UCALENDAR_ERA, - * #I18N_UCALENDAR_YEAR, #I18N_UCALENDAR_MONTH, #I18N_UCALENDAR_WEEK_OF_YEAR, - * #I18N_UCALENDAR_WEEK_OF_MONTH, #I18N_UCALENDAR_DATE, #I18N_UCALENDAR_DAY_OF_YEAR, - * #I18N_UCALENDAR_DAY_OF_WEEK, #I18N_UCALENDAR_DAY_OF_WEEK_IN_MONTH, #I18N_UCALENDAR_AM_PM, - * #I18N_UCALENDAR_HOUR, #I18N_UCALENDAR_HOUR_OF_DAY, #I18N_UCALENDAR_MINUTE, - * #I18N_UCALENDAR_SECOND, #I18N_UCALENDAR_MILLISECOND, #I18N_UCALENDAR_ZONE_OFFSET, - * #I18N_UCALENDAR_DST_OFFSET. + * @param[in] field The field to clear. * * @return Error code * @retval #I18N_ERROR_NONE Successful @@ -716,22 +707,25 @@ int i18n_ucalendar_clear_field (i18n_ucalendar_h calendar, i18n_ucalendar_date_f int i18n_ucalendar_clear (i18n_ucalendar_h calendar); /** - * @brief Determines a limit for a field in a #i18n_ucalendar_h. + * @brief Determines a limit for a field in an #i18n_ucalendar_h. * @details A limit is a maximum or minimum value for a field. - * @remarks The specific error code can be obtained using the get_last_result() - * method. Error codes are described in Exceptions section and - * #i18n_error_code_e description. + * @remarks The specific error code can be obtained using the get_last_result() method. + * Error codes are described in Exceptions section and #i18n_error_code_e description. * @since_tizen 2.3.1 * * @param[in] calendar The #i18n_ucalendar_h to query. - * @param[in] field The desired field; one of #I18N_UCALENDAR_ERA, #I18N_UCALENDAR_YEAR, #I18N_UCALENDAR_MONTH, - * #I18N_UCALENDAR_WEEK_OF_YEAR, #I18N_UCALENDAR_WEEK_OF_MONTH, #I18N_UCALENDAR_DATE, #I18N_UCALENDAR_DAY_OF_YEAR, - * #I18N_UCALENDAR_DAY_OF_WEEK, #I18N_UCALENDAR_DAY_OF_WEEK_IN_MONTH, #I18N_UCALENDAR_AM_PM, #I18N_UCALENDAR_HOUR, - * #I18N_UCALENDAR_HOUR_OF_DAY, #I18N_UCALENDAR_MINUTE, #I18N_UCALENDAR_SECOND, #I18N_UCALENDAR_MILLISECOND, - * #I18N_UCALENDAR_ZONE_OFFSET, #I18N_UCALENDAR_DST_OFFSET. - * @param[in] type The desired critical point; one of #I18N_UCALENDAR_MINIMUM, #I18N_UCALENDAR_MAXIMUM, - * #I18N_UCALENDAR_GREATEST_MINIMUM, #I18N_UCALENDAR_LEAST_MAXIMUM, #I18N_UCALENDAR_ACTUAL_MINIMUM, - * #I18N_UCALENDAR_ACTUAL_MAXIMUM + * @param[in] field The desired field; one of #I18N_UCALENDAR_ERA, #I18N_UCALENDAR_YEAR, #I18N_UCALENDAR_MONTH, + * #I18N_UCALENDAR_WEEK_OF_YEAR, #I18N_UCALENDAR_WEEK_OF_MONTH, #I18N_UCALENDAR_DATE, + * #I18N_UCALENDAR_DAY_OF_YEAR, #I18N_UCALENDAR_DAY_OF_WEEK, #I18N_UCALENDAR_DAY_OF_WEEK_IN_MONTH, + * #I18N_UCALENDAR_AM_PM, #I18N_UCALENDAR_HOUR, #I18N_UCALENDAR_HOUR_OF_DAY, + * #I18N_UCALENDAR_MINUTE, #I18N_UCALENDAR_SECOND, #I18N_UCALENDAR_MILLISECOND, + * #I18N_UCALENDAR_ZONE_OFFSET, #I18N_UCALENDAR_DST_OFFSET, #I18N_UCALENDAR_YEAR_WOY, + * #I18N_UCALENDAR_DOW_LOCAL, #I18N_UCALENDAR_EXTENDED_YEAR, #I18N_UCALENDAR_JULIAN_DAY, + * #I18N_UCALENDAR_MILLISECONDS_IN_DAY, #I18N_UCALENDAR_IS_LEAP_MONTH. + * @param[in] type The desired critical point; one of #I18N_UCALENDAR_MINIMUM, #I18N_UCALENDAR_MAXIMUM, + * #I18N_UCALENDAR_GREATEST_MINIMUM, #I18N_UCALENDAR_LEAST_MAXIMUM, + * #I18N_UCALENDAR_ACTUAL_MINIMUM, #I18N_UCALENDAR_ACTUAL_MAXIMUM. + * * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * diff --git a/src/include/wearable/utils_i18n_udate.h b/src/include/wearable/utils_i18n_udate.h index 0ea5702..f5eb738 100644 --- a/src/include/wearable/utils_i18n_udate.h +++ b/src/include/wearable/utils_i18n_udate.h @@ -179,11 +179,12 @@ extern "C" { * are not currently supported). * @param[in] date_style The style used to format dates\n One of #I18N_UDATE_FULL, #I18N_UDATE_LONG, * #I18N_UDATE_MEDIUM, #I18N_UDATE_SHORT, #I18N_UDATE_DEFAULT, #I18N_UDATE_RELATIVE, #I18N_UDATE_LONG_RELATIVE, - * #I18N_UDATE_MEDIUM_RELATIVE, #I18N_UDATE_SHORT_RELATIVE, or #I18N_UDATE_NONE + * #I18N_UDATE_MEDIUM_RELATIVE, #I18N_UDATE_SHORT_RELATIVE, #I18N_UDATE_PATTERN, or #I18N_UDATE_NONE * @param[in] locale The locale specifying the formatting conventions. * @param[in] tz_id A timezone ID specifying the timezone to use\n If @c 0, use the default timezone. * @param[in] tz_id_len The length of @a tz_id, otherwise @c -1 if NULL-terminated. * @param[in] pattern A pattern specifying the format to use. The pattern is generated by Udatepg module. + * When the pattern parameter is used, pass in #I18N_UDATE_PATTERN for both time_style and date_style. * @param[in] pattern_len The number of characters in the pattern, or otherwise @c -1 if NULL-terminated. * @param[out] format A pointer to an #i18n_udate_format_h to use for formatting dates and times, otherwise @c 0 if an error occurs. * @@ -237,8 +238,8 @@ int i18n_udate_format_date ( const i18n_udate_format_h format, i18n_udate date_t * @details Note: since the mapping is many-to-one, there is no inverse mapping. * @since_tizen 2.3.1 * - * @param[in] field The #i18n_udate_format_h to map. - * #I18N_UDATE_FORMAT_TIMEZONE_LOCALIZED_GMT_OFFSET_FIELD, #I18N_UDATE_FORMAT_TIMEZONE_ISO_FIELD, + * @param[in] field The #i18n_udate_format_h to map. + * #I18N_UDATE_FORMAT_TIMEZONE_LOCALIZED_GMT_OFFSET_FIELD, #I18N_UDATE_FORMAT_TIMEZONE_ISO_FIELD, * #I18N_UDATE_FORMAT_TIMEZONE_ISO_LOCAL_FIELD and #I18N_UDATE_FORMAT_FIELD_COUNT are not supported. * @param[out] date_field_type A pointer to the #i18n_ucalendar_date_fields_e. * @@ -526,15 +527,9 @@ int i18n_udate_apply_pattern ( i18n_udate_format_h format, i18n_ubool localized, * * @param[in] format The #i18n_udate_format_h to query. * @param[in] type The type of symbols to get. - * One of #I18N_UDATE_FORMAT_SYMBOL_TYPE_ERAS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_MONTHS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_SHORT_MONTHS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_WEEKDAYS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_SHORT_WEEKDAYS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_AM_PMS, - * or #I18N_UDATE_FORMAT_SYMBOL_TYPE_LOCALIZED_CHARS + * All the types defined in the #i18n_udate_format_symbol_type_e enumeration are supported. * @param[in] symbol_index The desired symbol of type type. - * @param[out] result A pointer to a buffer to receive the pattern. + * @param[out] result A pointer to a buffer to receive the pattern. * @param[in] result_length The maximum size of the result buffer. * * @return The total buffer size needed; if greater than result_length, the output was truncated. @@ -556,13 +551,7 @@ int32_t i18n_udate_get_symbols ( const i18n_udate_format_h format, i18n_udate_fo * * @param[in] format The #i18n_udate_format_h to query. * @param[in] type The type of symbols to count. - * One of #I18N_UDATE_FORMAT_SYMBOL_TYPE_ERAS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_MONTHS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_SHORT_MONTHS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_WEEKDAYS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_SHORT_WEEKDAYS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_AM_PMS, - * or #I18N_UDATE_FORMAT_SYMBOL_TYPE_LOCALIZED_CHARS + * If wrong type is passed, 0 will be returned. * * @return The number of symbols of type @a type. * @@ -582,18 +571,13 @@ int32_t i18n_udate_count_symbols ( const i18n_udate_format_h format, i18n_udate_ * * @param[in] format The #i18n_udate_format_h to set. * @param[in] type The type of symbols to set. - * One of #I18N_UDATE_FORMAT_SYMBOL_TYPE_ERAS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_MONTHS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_SHORT_MONTHS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_WEEKDAYS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_SHORT_WEEKDAYS, - * #I18N_UDATE_FORMAT_SYMBOL_TYPE_AM_PMS, - * or #I18N_UDATE_FORMAT_SYMBOL_TYPE_LOCALIZED_CHARS + * All the types defined in the #i18n_udate_format_symbol_type_e enumeration are supported. + * If a type not defined in the enumeration is passed, then the #I18N_ERROR_NOT_SUPPORTED error is returned. * @param[in] symbol_index The index of the symbol to set of type type. * @param[in] value The new value. - * @param[in] value_length The length of value, or -1 if NULL-terminated. + * @param[in] value_length The length of @a value, or @c -1 if NULL-terminated. * - * @return Error code. Error codes not listed below are described in #i18n_error_code_e + * @return Error code. Error codes not listed below are described in the #i18n_error_code_e enumeration. * @retval #I18N_ERROR_NONE Successful * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter * diff --git a/src/include/wearable/utils_i18n_uenumeration.h b/src/include/wearable/utils_i18n_uenumeration.h index 05285eb..bbfe620 100755 --- a/src/include/wearable/utils_i18n_uenumeration.h +++ b/src/include/wearable/utils_i18n_uenumeration.h @@ -32,13 +32,14 @@ extern "C" { /** * @ingroup CAPI_BASE_UTILS_I18N_MODULE * @defgroup CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE UEnumeration - * @brief Ubrk defines methods for finding the location of boundaries in text. + * @brief UEnumeration defines functions for handling String Enumeration. * * @section CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE_HEADER Required Header * \#include * * @section CAPI_BASE_UTILS_I18N_UENUMERATION_MODULE_OVERVIEW Overview - * @details Pointer to a UBreakIterator maintain a current position and scan over text returning the index of characters where boundaries occur. + * @details The UEnumeration module allows to create String Enumeration + * from chars and uchars. * */ diff --git a/src/include/wearable/utils_i18n_unumber.h b/src/include/wearable/utils_i18n_unumber.h index d4f7f56..c25d665 100644 --- a/src/include/wearable/utils_i18n_unumber.h +++ b/src/include/wearable/utils_i18n_unumber.h @@ -272,7 +272,7 @@ int32_t i18n_unumber_format_decimal (const i18n_unumber_format_h fmt, const char * * @param[in] fmt The formatter to use. * @param[in] number The number to format. - * @param[in] currency The length of the input @a number, or -1 if the input is NULL-terminated. + * @param[in] currency The 3-letter NULL-terminated ISO 4217 currency code. * @param[out] result A pointer to a buffer to receive the NULL-terminated formatted number. * If the formatted number fits into @a result but cannot be NULL-terminated (length == result_length) * then the error code is set to #I18N_WARNING_STRING_NOT_TERMINATED. @@ -467,7 +467,7 @@ int32_t i18n_unumber_count_available (void); * #I18N_UNUMBER_ROUNDING_MODE, #I18N_UNUMBER_FORMAT_WIDTH, #I18N_UNUMBER_PADDING_POSITION, * #I18N_UNUMBER_SECONDARY_GROUPING_SIZE, #I18N_UNUM_SCALE. * - * @return The value of @a attr. + * @return The value of @a attr or @c -1 if the given attribute is not supported. * * @exception #I18N_ERROR_NONE Successful * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter @@ -478,7 +478,7 @@ int32_t i18n_unumber_get_attribute (const i18n_unumber_format_h fmt, i18n_unumbe * @brief Sets a numeric attribute associated with an #i18n_unumber_format_h. * @details An example of a numeric attribute is the number of integer digits a formatter will produce. * If the formatter does not understand the attribute, the call is ignored. Rule-based formatters only understand - * the lenient-parse attribute. + * the lenient-parse attribute. The #I18N_UNUMBER_ROUNDING_INCREMENT attribute is not supported. * @remarks Error codes are described in #i18n_error_code_e description. * @since_tizen 2.3.1 * @@ -488,7 +488,9 @@ int32_t i18n_unumber_get_attribute (const i18n_unumber_format_h fmt, i18n_unumbe * #I18N_UNUMBER_INTEGER_DIGITS, #I18N_UNUMBER_MAX_FRACTION_DIGITS, #I18N_UNUMBER_MIN_FRACTION_DIGITS, * #I18N_UNUMBER_FRACTION_DIGITS, #I18N_UNUMBER_MULTIPLIER, #I18N_UNUMBER_GROUPING_SIZE, * #I18N_UNUMBER_ROUNDING_MODE, #I18N_UNUMBER_FORMAT_WIDTH, #I18N_UNUMBER_PADDING_POSITION, - * #I18N_UNUMBER_SECONDARY_GROUPING_SIZE, #I18N_UNUM_SCALE. + * #I18N_UNUMBER_SECONDARY_GROUPING_SIZE, #I18N_UNUMBER_SIGNIFICANT_DIGITS_USED, #I18N_UNUMBER_MIN_SIGNIFICANT_DIGITS, + * #I18N_UNUMBER_MAX_SIGNIFICANT_DIGITS, #I18N_UNUMBER_LENIENT_PARSE, #I18N_UNUM_SCALE, + * #I18N_UNUM_FORMAT_FAIL_IF_MORE_THAN_MAX_DIGITS, #I18N_UNUM_PARSE_NO_EXPONENT. * @param[in] new_value The new value of @a attr. * * @return The obtained error code. @@ -523,7 +525,7 @@ double i18n_unumber_get_double_attribute (const i18n_unumber_format_h fmt, i18n_ * @since_tizen 2.3.1 * * @param[in] fmt The formatter to set. - * @param[in] attr The attribute to query; e.g. #I18N_UNUMBER_ROUNDING_INCREMENT. + * @param[in] attr The attribute to query; Only #I18N_UNUMBER_ROUNDING_INCREMENT is supported. * @param[in] new_value The new value of @a attr. * * @return The obtained error code. @@ -558,16 +560,16 @@ int32_t i18n_unumber_get_text_attribute (const i18n_unumber_format_h fmt, i18n_u /** * @brief Sets a text attribute associated with an #i18n_unumber_format_h. * @details An example of a text attribute is the suffix for positive numbers. Rule-based formatters only understand - * #I18N_UNUMBER_DEFAULT_RULESET. + * #I18N_UNUMBER_DEFAULT_RULESET. The #I18N_UNUMBER_PUBLIC_RULESETS tag is not supported. * @remarks Error codes are described in #i18n_error_code_e description. * @since_tizen 2.3.1 * - * @param[in] fmt The formatter to query. - * @param[in] tag The attribute to query; one of #I18N_UNUMBER_POSITIVE_PREFIX, #I18N_UNUMBER_POSITIVE_SUFFIX, + * @param[in] fmt The formatter to set. + * @param[in] tag The attribute to set; one of #I18N_UNUMBER_POSITIVE_PREFIX, #I18N_UNUMBER_POSITIVE_SUFFIX, * #I18N_UNUMBER_NEGATIVE_PREFIX, #I18N_UNUMBER_NEGATIVE_SUFFIX, #I18N_UNUMBER_PADDING_CHARACTER, - * #I18N_UNUMBER_CURRENCY_CODE, #I18N_UNUMBER_DEFAULT_RULESET, or #I18N_UNUMBER_PUBLIC_RULESETS. - * @param[out] new_value A pointer to a buffer to receive the attribute. - * @param[in] new_value_length The maximum size of @a new_value. + * #I18N_UNUMBER_CURRENCY_CODE, #I18N_UNUMBER_DEFAULT_RULESET. + * @param[in] new_value The new value of @a tag. + * @param[in] new_value_length The length of new_value, or -1 if NULL-terminated. * * @return The obtained error code. * @retval #I18N_ERROR_NONE Successful. diff --git a/src/include/wearable/utils_i18n_usearch.h b/src/include/wearable/utils_i18n_usearch.h index 5d5e807..8b1e1b9 100755 --- a/src/include/wearable/utils_i18n_usearch.h +++ b/src/include/wearable/utils_i18n_usearch.h @@ -127,7 +127,7 @@ int i18n_usearch_destroy ( i18n_usearch_h search_iter ); * is not possible. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif * - * @param[in] search_iter The search iterator data struct + * @param[in] search_iter The search iterator handle * @param[out] result i18n_uchar The buffer to store the matched string * @param[in] result_capacity The length of the result buffer * @param[out] len_matched_text The exact length of the matched text, not counting the NULL-termination @@ -145,7 +145,7 @@ int i18n_usearch_get_matched_text ( const i18n_usearch_h search_iter, i18n_uchar * i18n_usearch_destroy() will delete the collator if this search owns it. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif * - * @param[in] search_iter The search iterator data struct + * @param[in] search_iter The search iterator handle * @param[out] collator The collator * * @retval #I18N_ERROR_NONE Successful @@ -161,7 +161,7 @@ int i18n_usearch_get_collator ( const i18n_usearch_h search_iter, i18n_ucollator * the iterator will be adjusted to the index #I18N_USEARCH_DONE. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif * - * @param[in] search_iter The search iterator data struct + * @param[in] search_iter The search iterator handle * @param[out] index_first The character index of the first match, * otherwise #I18N_USEARCH_DONE if there are no matches. * diff --git a/src/include/wearable/utils_i18n_uset.h b/src/include/wearable/utils_i18n_uset.h index 2515dc1..6cf528e 100755 --- a/src/include/wearable/utils_i18n_uset.h +++ b/src/include/wearable/utils_i18n_uset.h @@ -36,13 +36,13 @@ extern "C" { /** * @ingroup CAPI_BASE_UTILS_I18N_MODULE * @defgroup CAPI_BASE_UTILS_I18N_USET_MODULE Uset - * @brief C API: Unicode Set. + * @brief Uset module allows to specify a subset of character used in strings. * * @section CAPI_BASE_UTILS_I18N_USET_MODULE_HEADER Required Header * \#include * * @section CAPI_BASE_UTILS_I18N_USET_MODULE_OVERVIEW Overview - * @details The Uset module is a C wrapper around the C++ UnicodeSet class. + * @details Uset module allows to specify a subset of character used in strings. */ /** @@ -1056,7 +1056,7 @@ i18n_ubool i18n_uset_equals (const i18n_uset_h set1, const i18n_uset_h set2); * @since_tizen 2.3.1 * * @param[in] set the set. Must not be @c NULL. - * @param[in] dest pointer to buffer of @a dest_capacity 16-bit integers + * @param[out] dest pointer to buffer of @a dest_capacity 16-bit integers * May be NULL only if @a dest_capacity is zero. * @param[in] dest_capacity size of @a dest, or zero * Must not be negative. diff --git a/src/utils_i18n_timezone.cpp b/src/utils_i18n_timezone.cpp index ad5de02..1bcd963 100755 --- a/src/utils_i18n_timezone.cpp +++ b/src/utils_i18n_timezone.cpp @@ -400,7 +400,7 @@ int i18n_timezone_in_daylight_time(i18n_timezone_h timezone, i18n_udate date, i1 int i18n_timezone_has_same_rule(i18n_timezone_h timezone, i18n_timezone_h other, i18n_ubool *same_rule) { - retv_if(timezone == NULL || same_rule == NULL, I18N_ERROR_INVALID_PARAMETER); + retv_if(timezone == NULL || other == NULL || same_rule == NULL, I18N_ERROR_INVALID_PARAMETER); *same_rule = ((TimeZone*)timezone)->hasSameRules(*(TimeZone*)other); diff --git a/src/utils_i18n_ucalendar.c b/src/utils_i18n_ucalendar.c index 6de7b6b..92b8221 100644 --- a/src/utils_i18n_ucalendar.c +++ b/src/utils_i18n_ucalendar.c @@ -183,13 +183,19 @@ int32_t i18n_ucalendar_get_field_difference ( i18n_ucalendar_h calendar, i18n_ud { if(calendar == NULL) { - *status = I18N_ERROR_INVALID_PARAMETER; + if(NULL != status) { + *status = I18N_ERROR_INVALID_PARAMETER; + } return 0; } - int32_t result = 0; - result = ucal_getFieldDifference(calendar, target, field, (UErrorCode*)status); - *status = _i18n_error_mapping(*status); + UErrorCode icu_error = U_ZERO_ERROR; + int32_t result = ucal_getFieldDifference(calendar, target, field, &icu_error); + ERR("Error code: %d", icu_error); + + if(NULL != status) { + ERR_MAPPING(icu_error, *status); + } return result; } @@ -381,37 +387,17 @@ int i18n_ucalendar_clear ( i18n_ucalendar_h calendar ) int32_t i18n_ucalendar_get_limit ( const i18n_ucalendar_h calendar, i18n_ucalendar_date_fields_e field, i18n_ucalendar_limit_type_e type) { - if (calendar == NULL) { + if (calendar == NULL || field < I18N_UCALENDAR_ERA || field >= I18N_UCALENDAR_FIELD_COUNT) { set_last_result(I18N_ERROR_INVALID_PARAMETER); return 0; } - int32_t result_ucal_getLimit = 0; - switch (field) { - case I18N_UCALENDAR_YEAR_WOY: - case I18N_UCALENDAR_DOW_LOCAL: - case I18N_UCALENDAR_EXTENDED_YEAR: - case I18N_UCALENDAR_JULIAN_DAY: - case I18N_UCALENDAR_MILLISECONDS_IN_DAY: - case I18N_UCALENDAR_IS_LEAP_MONTH: - case I18N_UCALENDAR_FIELD_COUNT: - { - set_last_result(I18N_ERROR_INVALID_PARAMETER); - ERR("Unsupported filed"); - break; - } - default: - { - i18n_error_code_e i18n_error = I18N_ERROR_NONE; - UErrorCode icu_error = U_ZERO_ERROR; - int32_t limit = ucal_getLimit(calendar, field, type, &icu_error); - ERR("ErrorCode : %d", icu_error); - ERR_MAPPING(icu_error, i18n_error); - set_last_result(i18n_error); - if(i18n_error == I18N_ERROR_NONE) - result_ucal_getLimit = limit; - } - } + i18n_error_code_e i18n_error = I18N_ERROR_NONE; + UErrorCode icu_error = U_ZERO_ERROR; + int32_t result_ucal_getLimit = ucal_getLimit(calendar, field, type, &icu_error); + ERR("ErrorCode : %d", icu_error); + ERR_MAPPING(icu_error, i18n_error); + set_last_result(i18n_error); return result_ucal_getLimit; } diff --git a/src/utils_i18n_udate.c b/src/utils_i18n_udate.c index cf44f44..c6de9c7 100644 --- a/src/utils_i18n_udate.c +++ b/src/utils_i18n_udate.c @@ -65,7 +65,7 @@ int i18n_udate_to_calendar_date_field ( i18n_udate_format_field_e field, i18n_uc case I18N_UDATE_FORMAT_TIMEZONE_ISO_FIELD: case I18N_UDATE_FORMAT_TIMEZONE_ISO_LOCAL_FIELD: case I18N_UDATE_FORMAT_FIELD_COUNT: - ERR("Unsupported filed"); + ERR("Unsupported field"); return I18N_ERROR_INVALID_PARAMETER; default: *date_field_type = (i18n_ucalendar_date_fields_e)udat_toCalendarDateField(field); @@ -92,7 +92,7 @@ int i18n_udate_clone ( const i18n_udate_format_h format, i18n_udate_format_h *fo 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 ) { - if (format == NULL || text == NULL || parsed_date == NULL) + if (format == NULL || text == NULL || text_length < -1 || parsed_date == NULL) { return I18N_ERROR_INVALID_PARAMETER; } @@ -264,7 +264,7 @@ int i18n_udate_apply_pattern ( i18n_udate_format_h format, i18n_ubool localized, 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 ) { - if (format == NULL) + if (format == NULL || type < I18N_UDATE_FORMAT_SYMBOL_TYPE_ERAS || type > I18N_UDATE_FORMAT_SYMBOL_TYPE_STANDALONE_SHORTER_WEEKDAYS || symbol_index < 0) { set_last_result(I18N_ERROR_INVALID_PARAMETER); return -1; @@ -294,7 +294,7 @@ int32_t i18n_udate_count_symbols ( const i18n_udate_format_h format, i18n_udate_ 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 ) { - if (format == NULL || symbol_index < 0) + if (format == NULL || symbol_index < 0 || value_length < -1) { return I18N_ERROR_INVALID_PARAMETER; } diff --git a/src/utils_i18n_udatepg.c b/src/utils_i18n_udatepg.c index 87a242e..c314dd8 100755 --- a/src/utils_i18n_udatepg.c +++ b/src/utils_i18n_udatepg.c @@ -124,7 +124,7 @@ int32_t i18n_udatepg_get_skeleton ( i18n_udatepg_h dtpg, const i18n_uchar *patte 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 ) { - if (dtpg == NULL || pattern == NULL || capacity < 0) + if (dtpg == NULL || pattern == NULL || length < -1 || capacity < 0) { set_last_result(I18N_ERROR_INVALID_PARAMETER); return 0; diff --git a/src/utils_i18n_ulocale.c b/src/utils_i18n_ulocale.c index d77f8e6..c45fa30 100755 --- a/src/utils_i18n_ulocale.c +++ b/src/utils_i18n_ulocale.c @@ -47,7 +47,7 @@ int i18n_ulocale_get_language (const char *locale_id, char *language, int32_t la int32_t i18n_ulocale_get_country (const char *locale_id, char *country, int32_t country_capacity, int *error) { - if(NULL == country) { + if(NULL == country || country_capacity < 0) { if(NULL != error) { *error = I18N_ERROR_INVALID_PARAMETER; } diff --git a/src/utils_i18n_unumber.c b/src/utils_i18n_unumber.c index da12061..d849886 100755 --- a/src/utils_i18n_unumber.c +++ b/src/utils_i18n_unumber.c @@ -67,15 +67,19 @@ int i18n_unumber_clone(const i18n_unumber_format_h fmt, i18n_unumber_format_h *f 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) { - if(fmt == NULL) { - *status = I18N_ERROR_INVALID_PARAMETER; + if(NULL == fmt) { + if(NULL != status) { + *status = I18N_ERROR_INVALID_PARAMETER; + } return 0; } - UErrorCode err; - ERR_MAPPING_REVERSE(*status, err); - int32_t result_unum_format= unum_format (fmt, number, (UChar*)result, result_length, (UFieldPosition*)pos, &err); - ERR("pErrorCode : %d", err); - ERR_MAPPING(err, *status); + + UErrorCode icu_error = U_ZERO_ERROR; + int32_t result_unum_format = unum_format (fmt, number, (UChar*)result, result_length, (UFieldPosition*)pos, &icu_error); + ERR("Error code : %d", icu_error); + if(NULL != status) { + ERR_MAPPING(icu_error, *status); + } return result_unum_format; } @@ -149,7 +153,7 @@ int32_t i18n_unumber_format_double_currency (const i18n_unumber_format_h fmt, do int32_t i18n_unumber_parse (const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos) { - if(fmt == NULL || text == NULL) { + if(fmt == NULL || text == NULL || text_length < -1) { set_last_result(I18N_ERROR_INVALID_PARAMETER); return 0; } @@ -166,7 +170,7 @@ int32_t i18n_unumber_parse (const i18n_unumber_format_h fmt, const i18n_uchar *t int64_t i18n_unumber_parse_int64 (const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos) { - if(fmt == NULL || text == NULL) { + if(fmt == NULL || text == NULL || text_length < -1) { set_last_result(I18N_ERROR_INVALID_PARAMETER); return 0; } @@ -183,7 +187,7 @@ int64_t i18n_unumber_parse_int64 (const i18n_unumber_format_h fmt, const i18n_uc double i18n_unumber_parse_double (const i18n_unumber_format_h fmt, const i18n_uchar *text, int32_t text_length, int32_t *parse_pos) { - if(fmt == NULL || text == NULL) { + if(fmt == NULL || text == NULL || text_length < -1) { set_last_result(I18N_ERROR_INVALID_PARAMETER); return 0; } @@ -200,7 +204,7 @@ double i18n_unumber_parse_double (const i18n_unumber_format_h fmt, const i18n_uc 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) { - if(fmt == NULL || text == NULL) { + if(fmt == NULL || text == NULL || text_length < -1 || out_buf == NULL) { set_last_result(I18N_ERROR_INVALID_PARAMETER); return 0; } @@ -217,7 +221,7 @@ int32_t i18n_unumber_parse_decimal (const i18n_unumber_format_h fmt, const i18n_ 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) { - if(fmt == NULL || text == NULL || currency == NULL) { + if(fmt == NULL || text == NULL || text_length < -1 || currency == NULL) { set_last_result(I18N_ERROR_INVALID_PARAMETER); return 0; } @@ -277,7 +281,7 @@ int32_t i18n_unumber_get_attribute (const i18n_unumber_format_h fmt, i18n_unumbe int i18n_unumber_set_attribute (i18n_unumber_format_h fmt, i18n_unumber_format_attribute_e attr, int32_t new_value) { - if(fmt == NULL) { + if(fmt == NULL || attr == I18N_UNUMBER_ROUNDING_INCREMENT) { return I18N_ERROR_INVALID_PARAMETER; } @@ -287,7 +291,7 @@ int i18n_unumber_set_attribute (i18n_unumber_format_h fmt, i18n_unumber_format_a double i18n_unumber_get_double_attribute (const i18n_unumber_format_h fmt, i18n_unumber_format_attribute_e attr) { - if(fmt == NULL) { + if(fmt == NULL || I18N_UNUMBER_ROUNDING_INCREMENT != attr) { set_last_result(I18N_ERROR_INVALID_PARAMETER); return 0; } @@ -298,7 +302,7 @@ double i18n_unumber_get_double_attribute (const i18n_unumber_format_h fmt, i18n_ int i18n_unumber_set_double_attribute (i18n_unumber_format_h fmt, i18n_unumber_format_attribute_e attr, double new_value) { - if(fmt == NULL) { + if(fmt == NULL || attr != I18N_UNUMBER_ROUNDING_INCREMENT) { return I18N_ERROR_INVALID_PARAMETER; } @@ -325,7 +329,7 @@ int32_t i18n_unumber_get_text_attribute (const i18n_unumber_format_h fmt, i18n_u 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) { - if(fmt == NULL) { + if(fmt == NULL || new_value == NULL || new_value_length < -1) { return I18N_ERROR_INVALID_PARAMETER; } diff --git a/src/utils_i18n_usearch.c b/src/utils_i18n_usearch.c index 2a2a761..d45da0f 100755 --- a/src/utils_i18n_usearch.c +++ b/src/utils_i18n_usearch.c @@ -30,10 +30,12 @@ int i18n_usearch_destroy ( i18n_usearch_h searchiter ) int i18n_usearch_first ( i18n_usearch_h strsrch, int32_t *index_first ) { retv_if ( strsrch == NULL || index_first == NULL, I18N_ERROR_INVALID_PARAMETER ); - i18n_error_code_e err = I18N_ERROR_NONE; - *index_first = usearch_first ( strsrch, (UErrorCode*)&err ); + UErrorCode err = U_ZERO_ERROR; + *index_first = usearch_first ( strsrch, &err ); + int result = _i18n_error_mapping ( err ); + ERR("ErrorCode : %d", result); - return I18N_ERROR_NONE; + return result; } int i18n_usearch_get_collator ( const i18n_usearch_h strsrch, i18n_ucollator_h *collator ) @@ -46,9 +48,10 @@ int i18n_usearch_get_collator ( const i18n_usearch_h strsrch, i18n_ucollator_h * int i18n_usearch_get_matched_text ( const i18n_usearch_h strsrch, i18n_uchar *result_w, int32_t result_capacity, int32_t *len_matched_text ) { - i18n_error_code_e err = I18N_ERROR_NONE; - *len_matched_text = usearch_getMatchedText ( strsrch, result_w, result_capacity, (UErrorCode*)&err ); + UErrorCode err = U_ZERO_ERROR; + *len_matched_text = usearch_getMatchedText ( strsrch, result_w, result_capacity, &err ); int result = _i18n_error_mapping ( err ); + ERR("ErrorCode : %d", result); return result; } diff --git a/src/utils_i18n_uset.c b/src/utils_i18n_uset.c index 2f5e45c..77b16cf 100644 --- a/src/utils_i18n_uset.c +++ b/src/utils_i18n_uset.c @@ -86,7 +86,9 @@ int i18n_uset_clone ( const i18n_uset_h set, i18n_uset_h *set_clone ) if (set == NULL || set_clone == NULL) { return I18N_ERROR_INVALID_PARAMETER; } + *set_clone = (i18n_uset_h)uset_clone((const USet*)set); + return I18N_ERROR_NONE; } @@ -114,7 +116,9 @@ int i18n_uset_clone_as_thawed ( const i18n_uset_h set, i18n_uset_h *set_copy ) if (set == NULL || set_copy == NULL) { return I18N_ERROR_INVALID_PARAMETER; } + *set_copy = (i18n_uset_h)uset_cloneAsThawed((const USet*)set); + return I18N_ERROR_NONE; } @@ -213,7 +217,7 @@ i18n_ubool i18n_uset_resembles_pattern ( const i18n_uchar *pattern, int32_t patt int32_t i18n_uset_to_pattern ( const i18n_uset_h set, i18n_uchar *result, int32_t result_capacity, i18n_ubool escape_unprintable ) { - if (set == NULL || result_capacity < 0) { + if (set == NULL || result == NULL || result_capacity < 0) { set_last_result(I18N_ERROR_INVALID_PARAMETER); return 0; } @@ -647,7 +651,7 @@ int32_t i18n_uset_serialize ( const i18n_uset_h set, uint16_t *dest, int32_t des i18n_ubool i18n_uset_get_serialized_set ( const uint16_t *src, int32_t src_length, i18n_userialized_set_s *fill_set ) { - if (src == NULL || src_length < 0) { + if (src == NULL || src_length < 0 || fill_set == NULL) { set_last_result(I18N_ERROR_INVALID_PARAMETER); return 0; } diff --git a/src/utils_i18n_ustring.c b/src/utils_i18n_ustring.c index 1ba6126..319a4b0 100644 --- a/src/utils_i18n_ustring.c +++ b/src/utils_i18n_ustring.c @@ -243,7 +243,6 @@ int32_t i18n_ustring_case_compare_with_length( const i18n_uchar *s1, int32_t len UErrorCode icu_error = U_ZERO_ERROR; int32_t result = u_strCaseCompare(s1, length1, s2, length2, options, &icu_error); *i18n_error = _i18n_error_mapping(icu_error); - set_last_result(*i18n_error); return result; } @@ -495,7 +494,6 @@ int32_t i18n_ustring_to_upper ( i18n_uchar *dest, int32_t dest_capacity, const i UErrorCode icu_error = U_ZERO_ERROR; int32_t result = u_strToUpper (dest, dest_capacity, src, src_len, locale, &icu_error); *i18n_error = _i18n_error_mapping(icu_error); - set_last_result(*i18n_error); return result; } @@ -505,7 +503,6 @@ int32_t i18n_ustring_to_lower ( i18n_uchar *dest, int32_t dest_capacity, const i UErrorCode icu_error = U_ZERO_ERROR; int32_t result = u_strToLower (dest, dest_capacity, src, src_len, locale, &icu_error); *i18n_error = _i18n_error_mapping(icu_error); - set_last_result(*i18n_error); return result; } @@ -514,7 +511,6 @@ int32_t i18n_ustring_to_title ( i18n_uchar *dest, int32_t dest_capacity, const i const char *locale, i18n_error_code_e *i18n_error ) { if(src == NULL) { - set_last_result(I18N_ERROR_INVALID_PARAMETER); *i18n_error = I18N_ERROR_INVALID_PARAMETER; return 0; } @@ -522,7 +518,6 @@ int32_t i18n_ustring_to_title ( i18n_uchar *dest, int32_t dest_capacity, const i UErrorCode icu_error = U_ZERO_ERROR; int32_t result = u_strToTitle (dest, dest_capacity, src, src_len, (UBreakIterator*)title_iter, locale, &icu_error); *i18n_error = _i18n_error_mapping(icu_error); - set_last_result(*i18n_error); return result; } @@ -540,7 +535,6 @@ int32_t i18n_ustring_to_title_new ( i18n_uchar *dest, int32_t dest_capacity, con 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 *i18n_error ) { if(src == NULL) { - set_last_result(I18N_ERROR_INVALID_PARAMETER); *i18n_error = I18N_ERROR_INVALID_PARAMETER; return 0; } @@ -548,7 +542,6 @@ int32_t i18n_ustring_fold_case ( i18n_uchar *dest, int32_t dest_capacity, const UErrorCode icu_error = U_ZERO_ERROR; int32_t result =u_strFoldCase (dest, dest_capacity, src, src_len, options, &icu_error); *i18n_error = _i18n_error_mapping(icu_error); - set_last_result(*i18n_error); return result; } @@ -556,7 +549,6 @@ int32_t i18n_ustring_fold_case ( i18n_uchar *dest, int32_t dest_capacity, const 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 *i18n_error ) { if(src == NULL) { - set_last_result(I18N_ERROR_INVALID_PARAMETER); *i18n_error = I18N_ERROR_INVALID_PARAMETER; return NULL; } @@ -564,7 +556,6 @@ wchar_t* i18n_ustring_to_WCS ( wchar_t *dest, int32_t dest_capacity, int32_t *de UErrorCode icu_error = U_ZERO_ERROR; wchar_t* result = u_strToWCS (dest, dest_capacity, dest_len, src, src_len, &icu_error); *i18n_error = _i18n_error_mapping(icu_error); - set_last_result(*i18n_error); return result; } @@ -572,7 +563,6 @@ wchar_t* i18n_ustring_to_WCS ( wchar_t *dest, int32_t dest_capacity, int32_t *de 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 *i18n_error ) { if(src == NULL) { - set_last_result(I18N_ERROR_INVALID_PARAMETER); *i18n_error = I18N_ERROR_INVALID_PARAMETER; return NULL; } @@ -580,7 +570,6 @@ i18n_uchar* i18n_ustring_from_WCS ( i18n_uchar *dest, int32_t dest_capacity, int UErrorCode icu_error = U_ZERO_ERROR; i18n_uchar* result = u_strFromWCS (dest, dest_capacity, dest_len, src, src_len, &icu_error); *i18n_error = _i18n_error_mapping(icu_error); - set_last_result(*i18n_error); return result; } @@ -588,7 +577,6 @@ i18n_uchar* i18n_ustring_from_WCS ( i18n_uchar *dest, int32_t dest_capacity, int 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 *i18n_error ) { if(src == NULL) { - set_last_result(I18N_ERROR_INVALID_PARAMETER); *i18n_error = I18N_ERROR_INVALID_PARAMETER; return NULL; } @@ -596,7 +584,6 @@ char* i18n_ustring_to_UTF8 ( char *dest, int32_t dest_capacity, int32_t *dest_le UErrorCode icu_error = U_ZERO_ERROR; char* result = u_strToUTF8 (dest, dest_capacity, dest_len, src, src_len, &icu_error); *i18n_error = _i18n_error_mapping(icu_error); - set_last_result(*i18n_error); return result; } @@ -604,7 +591,6 @@ char* i18n_ustring_to_UTF8 ( char *dest, int32_t dest_capacity, int32_t *dest_le 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 *i18n_error ) { if(src == NULL) { - set_last_result(I18N_ERROR_INVALID_PARAMETER); *i18n_error = I18N_ERROR_INVALID_PARAMETER; return NULL; } @@ -612,7 +598,6 @@ i18n_uchar* i18n_ustring_from_UTF8 ( i18n_uchar *dest, int32_t dest_capacity, in UErrorCode icu_error = U_ZERO_ERROR; i18n_uchar* result = u_strFromUTF8 (dest, dest_capacity, dest_len, src, src_len, &icu_error); *i18n_error = _i18n_error_mapping(icu_error); - set_last_result(*i18n_error); return result; } @@ -620,7 +605,6 @@ i18n_uchar* i18n_ustring_from_UTF8 ( i18n_uchar *dest, int32_t dest_capacity, in 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 *i18n_error ) { if(src == NULL) { - set_last_result(I18N_ERROR_INVALID_PARAMETER); *i18n_error = I18N_ERROR_INVALID_PARAMETER; return NULL; } @@ -628,7 +612,6 @@ char* i18n_ustring_to_UTF8_with_sub ( char *dest, int32_t dest_capacity, int32_t UErrorCode icu_error = U_ZERO_ERROR; char* result = u_strToUTF8WithSub (dest, dest_capacity, dest_len, src, src_len, sub_char, num_substitutions, &icu_error); *i18n_error = _i18n_error_mapping(icu_error); - set_last_result(*i18n_error); return result; } @@ -637,7 +620,6 @@ i18n_uchar* i18n_ustring_from_UTF8_with_sub ( i18n_uchar *dest, int32_t dest_cap int32_t *num_substitutions, i18n_error_code_e *i18n_error ) { if(src == NULL) { - set_last_result(I18N_ERROR_INVALID_PARAMETER); *i18n_error = I18N_ERROR_INVALID_PARAMETER; return NULL; } @@ -645,7 +627,6 @@ i18n_uchar* i18n_ustring_from_UTF8_with_sub ( i18n_uchar *dest, int32_t dest_cap UErrorCode icu_error = U_ZERO_ERROR; i18n_uchar* result = u_strFromUTF8WithSub (dest, dest_capacity, dest_len, src, src_len, sub_char, num_substitutions, &icu_error); *i18n_error = _i18n_error_mapping(icu_error); - set_last_result(*i18n_error); return result; } @@ -653,7 +634,6 @@ i18n_uchar* i18n_ustring_from_UTF8_with_sub ( i18n_uchar *dest, int32_t dest_cap 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 *i18n_error ) { if(src == NULL) { - set_last_result(I18N_ERROR_INVALID_PARAMETER); *i18n_error = I18N_ERROR_INVALID_PARAMETER; return NULL; } @@ -661,7 +641,6 @@ i18n_uchar* i18n_ustring_from_UTF8_lenient ( i18n_uchar *dest, int32_t dest_capa UErrorCode icu_error = U_ZERO_ERROR; i18n_uchar* result = u_strFromUTF8Lenient (dest, dest_capacity, dest_len, src, src_len, &icu_error); *i18n_error = _i18n_error_mapping(icu_error); - set_last_result(*i18n_error); return result; } @@ -669,7 +648,6 @@ i18n_uchar* i18n_ustring_from_UTF8_lenient ( i18n_uchar *dest, int32_t dest_capa 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 *i18n_error ) { if(src == NULL) { - set_last_result(I18N_ERROR_INVALID_PARAMETER); *i18n_error = I18N_ERROR_INVALID_PARAMETER; return NULL; } @@ -677,7 +655,6 @@ i18n_uchar32* i18n_ustring_to_UTF32 ( i18n_uchar32 *dest, int32_t dest_capacity, UErrorCode icu_error = U_ZERO_ERROR; i18n_uchar32* result = u_strToUTF32 (dest, dest_capacity, dest_len, src, src_len, &icu_error); *i18n_error = _i18n_error_mapping(icu_error); - set_last_result(*i18n_error); return result; } @@ -685,7 +662,6 @@ i18n_uchar32* i18n_ustring_to_UTF32 ( i18n_uchar32 *dest, int32_t dest_capacity, 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 *i18n_error ) { if(src == NULL) { - set_last_result(I18N_ERROR_INVALID_PARAMETER); *i18n_error = I18N_ERROR_INVALID_PARAMETER; return NULL; } @@ -693,7 +669,6 @@ i18n_uchar* i18n_ustring_from_UTF32 ( i18n_uchar *dest, int32_t dest_capacity, i UErrorCode icu_error = U_ZERO_ERROR; i18n_uchar* result = u_strFromUTF32 (dest, dest_capacity, dest_len, src, src_len, &icu_error); *i18n_error = _i18n_error_mapping(icu_error); - set_last_result(*i18n_error); return result; } @@ -702,7 +677,6 @@ i18n_uchar32* i18n_ustring_to_UTF32_with_sub ( i18n_uchar32 *dest, int32_t dest_ i18n_uchar32 sub_char, int32_t *num_substitutions, i18n_error_code_e *i18n_error ) { if(src == NULL) { - set_last_result(I18N_ERROR_INVALID_PARAMETER); *i18n_error = I18N_ERROR_INVALID_PARAMETER; return NULL; } @@ -710,7 +684,6 @@ i18n_uchar32* i18n_ustring_to_UTF32_with_sub ( i18n_uchar32 *dest, int32_t dest_ UErrorCode icu_error = U_ZERO_ERROR; i18n_uchar32* result = u_strToUTF32WithSub (dest, dest_capacity, dest_len, src, src_len, sub_char, num_substitutions, &icu_error); *i18n_error = _i18n_error_mapping(icu_error); - set_last_result(*i18n_error); return result; } @@ -718,7 +691,6 @@ i18n_uchar32* i18n_ustring_to_UTF32_with_sub ( i18n_uchar32 *dest, int32_t dest_ 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 *i18n_error ) { if(src == NULL) { - set_last_result(I18N_ERROR_INVALID_PARAMETER); *i18n_error = I18N_ERROR_INVALID_PARAMETER; return NULL; } @@ -726,7 +698,6 @@ i18n_uchar* i18n_ustring_from_UTF32_with_sub ( i18n_uchar *dest, int32_t dest_ca UErrorCode icu_error = U_ZERO_ERROR; i18n_uchar* result = u_strFromUTF32WithSub (dest, dest_capacity, dest_len, src, src_len, sub_char, num_substitutions, (UErrorCode*)&icu_error); *i18n_error = _i18n_error_mapping(icu_error); - set_last_result(*i18n_error); return result; }