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 package ohos.global.i18n; 17 18 /** 19 * This class encapsulate some configurations 20 */ 21 public class FileConfig { 22 /** 23 * Every config needs 6 bytes 24 */ 25 public static final int CONFIG_SIZE = 6; 26 27 /** 28 * Version number 29 */ 30 public static final int FILE_VERSION = 1; 31 /** 32 * Dat file's header size is 16 bytes 33 */ 34 public static final int HEADER_SIZE = 16; 35 /** 36 * Every locale need 8 bytes 37 */ 38 public static final int LOCALE_MASK_ITEM_SIZE = 8; 39 /** 40 * Locales mask is a 4-byte-length unsigned integer 41 */ 42 public static final int LOCALE_MASK_SIZE = 4; 43 /** 44 * Separator used to separate numbers 45 */ 46 public static final String NUMBER_SEP = ";"; 47 /** 48 * Separator used to separate (except numbers) 49 */ 50 public static final String SEP = "_"; 51 } 52