/* * Copyright (c) 2022, Tim Flynn * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include namespace JS::Intl { class PluralRules final : public NumberFormatBase { JS_OBJECT(PluralRules, NumberFormatBase); public: enum class Type { Cardinal, Ordinal, }; PluralRules(Object& prototype); virtual ~PluralRules() override = default; Type type() const { return m_type; } StringView type_string() const; void set_type(StringView type); private: Type m_type { Type::Cardinal }; // [[Type]] }; }