[][src]Function simple_locale::settings::codeset::get_code_set_format_for_locale

pub fn get_code_set_format_for_locale(
    locale: Locale,
    inherit_current: bool
) -> LocaleResult<CodeSetFormat>

Fetch the code-set rules for a specified Locale.

Arguments

  • locale - The locale to query.
  • inherit_current - Whether the specified locale should inherit from the current locale.

If inherit_current is false the locale specified will be treated as an entirely new and complete locale when calling the C newlocale function. If it is true the locale is assumed to be a partially specified one and inherits any unspecified components from the current locale. For example, if the current locale is en_US.UTF-8 and the parameters passed are _NZ and true then the resulting locale will be en_NZ.UTF-8.