1 /*
2  * Copyright (c) 2021-2024 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  * @since 2022-8-22
22  */
23 public class FileConfig {
24     /**
25      * Every config needs 6 bytes
26      */
27     public static final int CONFIG_SIZE = 6;
28 
29     /**
30      * Version number
31      */
32     public static final int FILE_VERSION = 1;
33 
34     /**
35      * Dat file's header size is 16 bytes
36      */
37     public static final int HEADER_SIZE = 16;
38 
39     /**
40      * Every locale need 8 bytes
41      */
42     public static final int LOCALE_MASK_ITEM_SIZE = 8;
43 
44     /**
45      * Locales mask is a 4-byte-length unsigned integer
46      */
47     public static final int LOCALE_MASK_SIZE = 4;
48 
49     /**
50      * Separator used to separate numbers
51      */
52     public static final String NUMBER_SEP = ";";
53 
54     /**
55      * Separator used to separate (except numbers)
56      */
57     public static final String SEP = "_";
58 }
59