1 /*
2  * The internal definitions
3  *
4  * Copyright (C) 2010-2020, Joachim Metz <joachim.metz@gmail.com>
5  *
6  * Refer to AUTHORS for acknowledgements.
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20  */
21 
22 #if !defined( _LIBCLOCALE_INTERNAL_DEFINITIONS_H )
23 #define _LIBCLOCALE_INTERNAL_DEFINITIONS_H
24 
25 #include <common.h>
26 
27 /* Define HAVE_LOCAL_LIBCLOCALE for local use of libclocale
28  */
29 #if !defined( HAVE_LOCAL_LIBCLOCALE )
30 #include <libclocale/definitions.h>
31 
32 /* The definitions in <libclocale/definitions.h> are copied here
33  * for local use of libclocale
34  */
35 #else
36 
37 #define LIBCLOCALE_VERSION					20200913
38 
39 /* The libclocale version string
40  */
41 #define LIBCLOCALE_VERSION_STRING				"20200913"
42 
43 /* The codepage feature flag definitions
44  */
45 enum LIBCLOCALE_CODEPAGES_FEATURE_FLAGS
46 {
47 	LIBCLOCALE_CODEPAGE_FEATURE_FLAG_HAVE_ISO_8859		= 0x00000001UL,
48 	LIBCLOCALE_CODEPAGE_FEATURE_FLAG_HAVE_KOI8		= 0x00000002UL,
49 	LIBCLOCALE_CODEPAGE_FEATURE_FLAG_HAVE_WINDOWS		= 0x00000004UL,
50 };
51 
52 /* The codepage set definitions
53  */
54 enum LIBCLOCALE_CODEPAGES_SETS
55 {
56 	LIBCLOCALE_CODEPAGE_SET_GENERIC				= 1,
57 	LIBCLOCALE_CODEPAGE_SET_ISO_8859			= (int) 'i',
58 	LIBCLOCALE_CODEPAGE_SET_KOI8				= (int) 'k',
59 	LIBCLOCALE_CODEPAGE_SET_WINDOWS				= (int) 'w'
60 };
61 
62 /* The codepage definitions
63  */
64 enum LIBCLOCALE_CODEPAGES
65 {
66 	LIBCLOCALE_CODEPAGE_ASCII				= 20127,
67 
68 	LIBCLOCALE_CODEPAGE_ISO_8859_1				= 28591,
69 	LIBCLOCALE_CODEPAGE_ISO_8859_2				= 28592,
70 	LIBCLOCALE_CODEPAGE_ISO_8859_3				= 28593,
71 	LIBCLOCALE_CODEPAGE_ISO_8859_4				= 28594,
72 	LIBCLOCALE_CODEPAGE_ISO_8859_5				= 28595,
73 	LIBCLOCALE_CODEPAGE_ISO_8859_6				= 28596,
74 	LIBCLOCALE_CODEPAGE_ISO_8859_7				= 28597,
75 	LIBCLOCALE_CODEPAGE_ISO_8859_8				= 28598,
76 	LIBCLOCALE_CODEPAGE_ISO_8859_9				= 28599,
77 	LIBCLOCALE_CODEPAGE_ISO_8859_10				= 28600,
78 	LIBCLOCALE_CODEPAGE_ISO_8859_11				= 28601,
79 	LIBCLOCALE_CODEPAGE_ISO_8859_13				= 28603,
80 	LIBCLOCALE_CODEPAGE_ISO_8859_14				= 28604,
81 	LIBCLOCALE_CODEPAGE_ISO_8859_15				= 28605,
82 	LIBCLOCALE_CODEPAGE_ISO_8859_16				= 28606,
83 
84 	LIBCLOCALE_CODEPAGE_KOI8_R				= 20866,
85 	LIBCLOCALE_CODEPAGE_KOI8_U				= 21866,
86 
87 	LIBCLOCALE_CODEPAGE_WINDOWS_874				= 874,
88 	LIBCLOCALE_CODEPAGE_WINDOWS_932				= 932,
89 	LIBCLOCALE_CODEPAGE_WINDOWS_936				= 936,
90 	LIBCLOCALE_CODEPAGE_WINDOWS_949				= 949,
91 	LIBCLOCALE_CODEPAGE_WINDOWS_950				= 950,
92 	LIBCLOCALE_CODEPAGE_WINDOWS_1250			= 1250,
93 	LIBCLOCALE_CODEPAGE_WINDOWS_1251			= 1251,
94 	LIBCLOCALE_CODEPAGE_WINDOWS_1252			= 1252,
95 	LIBCLOCALE_CODEPAGE_WINDOWS_1253			= 1253,
96 	LIBCLOCALE_CODEPAGE_WINDOWS_1254			= 1254,
97 	LIBCLOCALE_CODEPAGE_WINDOWS_1255			= 1255,
98 	LIBCLOCALE_CODEPAGE_WINDOWS_1256			= 1256,
99 	LIBCLOCALE_CODEPAGE_WINDOWS_1257			= 1257,
100 	LIBCLOCALE_CODEPAGE_WINDOWS_1258			= 1258
101 };
102 
103 #endif /* !defined( HAVE_LOCAL_LIBCLOCALE ) */
104 
105 #endif /* !defined( _LIBCLOCALE_INTERNAL_DEFINITIONS_H ) */
106 
107