#include <unicode/locid.h>
#include <unicode/alphaindex.h>
+using icu::AlphabeticIndex;
+using icu::Locale;
+using icu::UnicodeString;
+
int i18n_alpha_idx_create(const char *language, const char *country,
i18n_alpha_idx_h *index)
{
#include <unicode/dtintrv.h>
+using icu::DateInterval;
+
int i18n_date_interval_create(i18n_udate from_date, i18n_udate to_date, i18n_date_interval_h *date_interval)
{
retv_if(date_interval == NULL, I18N_ERROR_INVALID_PARAMETER);
#include <malloc.h>
#include <unicode/dtitvfmt.h>
+using icu::UnicodeString;
+using icu::Locale;
+using icu::TimeZone;
+using icu::Calendar;
+using icu::FieldPosition;
+using icu::DateInterval;
+using icu::DateIntervalFormat;
+
int i18n_date_interval_fmt_create(const char *skeleton, i18n_date_interval_fmt_h *date_interval_fmt)
{
retv_if(date_interval_fmt == NULL, I18N_ERROR_INVALID_PARAMETER);
#include <unicode/fieldpos.h>
+using icu::FieldPosition;
+
int i18n_field_position_create(i18n_field_position_h *field_position)
{
retv_if(field_position == NULL, I18N_ERROR_INVALID_PARAMETER);
#include <unicode/format.h>
#include <malloc.h>
+using icu::UnicodeString;
+using icu::Locale;
+using icu::Formattable;
+using icu::FieldPosition;
+using icu::ParsePosition;
+using icu::Format;
+
int i18n_format_destroy(i18n_format_h format)
{
retv_if(format == NULL, I18N_ERROR_INVALID_PARAMETER);
#include <unicode/fmtable.h>
#include <unicode/ustring.h>
+using icu::UnicodeString;
+using icu::Formattable;
+
int i18n_formattable_create_default(i18n_formattable_h *formattable)
{
retv_if(formattable == NULL, I18N_ERROR_INVALID_PARAMETER);
#include <string.h>
#include <unicode/alphaindex.h>
+using icu::AlphabeticIndex;
+using icu::UnicodeString;
+
int i18n_immutable_idx_create(i18n_alpha_idx_h index, i18n_immutable_idx_h *immutable_index)
{
retv_if(index == NULL, I18N_ERROR_INVALID_PARAMETER);
#include <unicode/locdspnm.h>
+using icu::Locale;
+using icu::UnicodeString;
+using icu::LocaleDisplayNames;
+
int i18n_loc_disp_names_create(const char *locale, i18n_loc_disp_names_h *loc_disp_names)
{
retv_if(loc_disp_names == NULL, I18N_ERROR_INVALID_PARAMETER);
#include <unicode/measure.h>
#include <unicode/measunit.h>
+using icu::Formattable;
+using icu::MeasureUnit;
+using icu::Measure;
+
int i18n_measure_create(const i18n_formattable_h formattable, i18n_measure_unit_h measure_unit, i18n_measure_h *measure)
{
retv_if(measure == NULL || formattable == NULL || measure_unit == NULL, I18N_ERROR_INVALID_PARAMETER);
#include <unicode/measfmt.h>
#include <unicode/measure.h>
+using icu::Locale;
+using icu::UnicodeString;
+using icu::Measure;
+using icu::Formattable;
+using icu::FieldPosition;
+using icu::ParsePosition;
+using icu::MeasureUnit;
+using icu::MeasureFormat;
+
int i18n_measure_format_create(const char *language,
const char *country,
i18n_umeasure_format_width_e width,
#include <unicode/strenum.h>
#include <string.h>
+using icu::StringEnumeration;
+using icu::MeasureUnit;
+
int i18n_measure_unit_create(i18n_measure_unit_h *measure_unit)
{
retv_if(measure_unit == NULL, I18N_ERROR_INVALID_PARAMETER);
return _i18n_error_mapping(status);
}
-
#include <unicode/parsepos.h>
+using icu::ParsePosition;
+
int i18n_parse_position_create(i18n_parse_position_h *parse_position)
{
retv_if(parse_position == NULL, I18N_ERROR_INVALID_PARAMETER);
#include <malloc.h>
#include <unicode/plurfmt.h>
+using icu::Locale;
+using icu::UnicodeString;
+using icu::FieldPosition;
+using icu::Formattable;
+using icu::NumberFormat;
+using icu::PluralRules;
+using icu::PluralFormat;
+
int i18n_plural_format_create(i18n_plural_format_h *plural_format)
{
retv_if(plural_format == NULL, I18N_ERROR_INVALID_PARAMETER);
#include <unicode/plurrule.h>
+using icu::Locale;
+using icu::StringEnumeration;
+using icu::UnicodeString;
+using icu::PluralRules;
+
int i18n_plural_rules_create(i18n_plural_rules_h *plural_rules)
{
retv_if(plural_rules == NULL, I18N_ERROR_INVALID_PARAMETER);
#include <unicode/smpdtfmt.h>
+using icu::UnicodeString;
+using icu::Locale;
+using icu::Calendar;
+using icu::FieldPosition;
+using icu::ParsePosition;
+using icu::SimpleDateFormat;
int i18n_simple_date_fmt_create(i18n_simple_date_fmt_h *simple_date_fmt)
{
return _i18n_error_mapping(status);
}
-
#include <unicode/uchar.h>
#include <unicode/locid.h>
+using icu::UnicodeString;
+using icu::StringEnumeration;
+using icu::Locale;
+using icu::TimeZone;
+
int i18n_timezone_create_unknown(i18n_timezone_h *timezone)
{
retv_if(timezone == NULL, I18N_ERROR_INVALID_PARAMETER);
#include <utils_i18n_ulocale.h>
#include <utils_i18n_private.h>
+using icu::Locale;
+
int i18n_ulocale_get_default(const char **locale)
{
retv_if(locale == NULL, I18N_ERROR_INVALID_PARAMETER);