mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:57:35 +00:00
Userland: Move files destined for LibLocale to the Locale namespace
This commit is contained in:
parent
88504b89e1
commit
ff48220dca
55 changed files with 720 additions and 716 deletions
|
@ -21,21 +21,21 @@ class PluralRules final : public NumberFormatBase {
|
|||
public:
|
||||
virtual ~PluralRules() override = default;
|
||||
|
||||
Unicode::PluralForm type() const { return m_type; }
|
||||
StringView type_string() const { return Unicode::plural_form_to_string(m_type); }
|
||||
void set_type(StringView type) { m_type = Unicode::plural_form_from_string(type); }
|
||||
::Locale::PluralForm type() const { return m_type; }
|
||||
StringView type_string() const { return ::Locale::plural_form_to_string(m_type); }
|
||||
void set_type(StringView type) { m_type = ::Locale::plural_form_from_string(type); }
|
||||
|
||||
private:
|
||||
explicit PluralRules(Object& prototype);
|
||||
|
||||
Unicode::PluralForm m_type { Unicode::PluralForm::Cardinal }; // [[Type]]
|
||||
::Locale::PluralForm m_type { ::Locale::PluralForm::Cardinal }; // [[Type]]
|
||||
};
|
||||
|
||||
Unicode::PluralOperands get_operands(String const& string);
|
||||
Unicode::PluralCategory plural_rule_select(StringView locale, Unicode::PluralForm type, Value number, Unicode::PluralOperands operands);
|
||||
Unicode::PluralCategory resolve_plural(PluralRules const&, Value number);
|
||||
Unicode::PluralCategory resolve_plural(NumberFormatBase const& number_format, Unicode::PluralForm type, Value number);
|
||||
Unicode::PluralCategory plural_rule_select_range(StringView locale, Unicode::PluralForm, Unicode::PluralCategory start, Unicode::PluralCategory end);
|
||||
ThrowCompletionOr<Unicode::PluralCategory> resolve_plural_range(VM&, PluralRules const&, Value start, Value end);
|
||||
::Locale::PluralOperands get_operands(String const& string);
|
||||
::Locale::PluralCategory plural_rule_select(StringView locale, ::Locale::PluralForm type, Value number, ::Locale::PluralOperands operands);
|
||||
::Locale::PluralCategory resolve_plural(PluralRules const&, Value number);
|
||||
::Locale::PluralCategory resolve_plural(NumberFormatBase const& number_format, ::Locale::PluralForm type, Value number);
|
||||
::Locale::PluralCategory plural_rule_select_range(StringView locale, ::Locale::PluralForm, ::Locale::PluralCategory start, ::Locale::PluralCategory end);
|
||||
ThrowCompletionOr<::Locale::PluralCategory> resolve_plural_range(VM&, PluralRules const&, Value start, Value end);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue