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 OHOS_RESOURCE_MANAGER_RSTATE_H 17 #define OHOS_RESOURCE_MANAGER_RSTATE_H 18 19 namespace OHOS { 20 namespace Global { 21 namespace Resource { 22 enum RState { 23 SUCCESS = 0, 24 NOT_SUPPORT_SEP = 1, 25 INVALID_BCP47_STR_LEN_TOO_SHORT = 2, 26 INVALID_BCP47_LANGUAGE_SUBTAG = 3, 27 INVALID_BCP47_SCRIPT_SUBTAG = 4, 28 INVALID_BCP47_REGION_SUBTAG = 5, 29 HAP_INIT_FAILED = 6, 30 NOT_FOUND = 7, 31 INVALID_FORMAT = 8, 32 LOCALEINFO_IS_NULL = 9, 33 NOT_ENOUGH_MEM = 10, 34 ERROR = 10000 35 }; 36 } // namespace Resource 37 } // namespace Global 38 } // namespace OHOS 39 #endif