Namespaces

Records

Functions

  • zx_status_t serve_intl_profile_provider (int argc, const char ** argv)

    Runs the server for the `fuchsia.intl.ProfileProvider` service. The function

    blocks by running the async loop, and returns the status reported by the async

    loop when it exits.

    Defined at line 40 of file ../../src/intl/intl_services/run.cc

  • zx_status_t serve_fuchsia_intl_services (int argc, const char ** argv)

    Runs the server for the `fuchsia.intl.*` services. The function

    blocks by running the async loop, and returns the status reported by the async

    loop when it exits.

    For use in "small" configurations, where we must by necessity serve multiple

    protocols by the same component.

    Defined at line 65 of file ../../src/intl/intl_services/run.cc

  • fpromise::result<icu::Locale, zx_status_t> LocaleIdToIcuLocale (const fuchsia::intl::LocaleId & locale_id, const std::map<std::string, std::string> & unicode_extensions)

    Convert the given locale ID to an `icu::Locale`.

    Defined at line 103 of file ../../src/lib/intl/intl_property_provider_impl/locale_util.cc

  • fpromise::result<icu::Locale, zx_status_t> LocaleIdToIcuLocale (const std::string & locale_id, const std::map<std::string, std::string> & unicode_extensions)

    Convert the given locale ID to an `icu::Locale`.

    Parameters:

    locale_id: A Unicode BCP-47 Locale ID

    unicode_extensions: Optional Unicode extension keys and values to add to

    the locale.

    Defined at line 88 of file ../../src/lib/intl/intl_property_provider_impl/locale_util.cc

  • fpromise::result<fuchsia::intl::LocaleId, zx_status_t> ExpandLocaleId (const icu::Locale & icu_locale)

    For the given `icu::Locale`, generate a Unicode BCP-47 Locale ID that

    includes extension keys and values for supported Unicode extensions.

    Defined at line 116 of file ../../src/lib/intl/intl_property_provider_impl/locale_util.cc

  • fpromise::result<std::string, zx_status_t> ExtractBcp47CalendarId (const fuchsia::intl::CalendarId & calendar_id)

    Extract just the calendar value from a `CalendarId`, which is of the form

    `"und-u-ca-<calendarid>"`.

    Defined at line 108 of file ../../src/lib/intl/intl_property_provider_impl/locale_util.cc

  • std::string ToDayOfWeekString (UCalendarDaysOfWeek day_of_week)

    Get a Unicode locale ID extension value ("sun", "mon", "tue", etc.) for the

    given day of the week. Used for "First day of week" extension in locale IDs.

    See

    https://github.com/unicode-org/cldr/blob/HEAD/common/bcp47/calendar.xml.

    Defined at line 209 of file ../../src/lib/intl/intl_property_provider_impl/locale_util.cc

  • std::string ToString (const fuchsia::intl::CivilTime * civil_time)

    Defined at line 282 of file ../../src/lib/intl/time_zone_info/time_zone_info_service.cc

  • std::string ToString (const std::optional<zx_time_t> absolute_time)

    Defined at line 290 of file ../../src/lib/intl/time_zone_info/time_zone_info_service.cc