1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef PLURALRULE_H 17 #define PLURALRULE_H 18 19 #include "types.h" 20 #include "locale_info.h" 21 22 namespace OHOS { 23 namespace I18N { 24 class PluralRules { 25 public: 26 PluralRules(std::string *rules, const int rulesLength, const int *rulesSize, const int sizesLength); 27 virtual ~PluralRules(); 28 std::string mZeroRule = ""; 29 int mZeroRuleSize = 0; 30 std::string mOneRule = ""; 31 int mOneRuleSize = 0; 32 std::string mTwoRule = ""; 33 int mTwoRuleSize = 0; 34 std::string mFewRule = ""; 35 int mFewRuleSize = 0; 36 std::string mManyRule = ""; 37 int mManyRuleSize = 0; 38 std::string mOtherRule = ""; 39 int mOtherRuleSize = 0; 40 }; 41 } // namespace I18N 42 } // namespace OHOS 43 44 #endif