1// Copyright 2020 the V8 project authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include 'src/objects/js-plural-rules.h' 6 7type JSPluralRulesType extends int32 constexpr 'JSPluralRules::Type'; 8bitfield struct JSPluralRulesFlags extends uint31 { 9 Type: JSPluralRulesType: 1 bit; // "type" is a reserved word. 10} 11 12extern class JSPluralRules extends JSObject { 13 locale: String; 14 flags: SmiTagged<JSPluralRulesFlags>; 15 icu_plural_rules: Foreign; // Managed<icu::PluralRules> 16 icu_number_formatter: 17 Foreign; // Managed<icu::number::LocalizedNumberFormatter> 18 icu_number_range_formatter: 19 Foreign; // Managed<icu::number::LocalizedNumberRangeFormatter> 20} 21