1 /* 2 * Codepage functions 3 * 4 * Copyright (C) 2006-2021, 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( _LIBEWF_INTERNAL_CODEPAGE_H ) 23 #define _LIBEWF_INTERNAL_CODEPAGE_H 24 25 #include <common.h> 26 #include <types.h> 27 28 #if defined( __cplusplus ) 29 extern "C" { 30 #endif 31 32 /* Define HAVE_LOCAL_LIBEWF for local use of libewf 33 * The definitions in <libewf/codepage.h> are copied here 34 * for local use of libewf 35 */ 36 #if !defined( HAVE_LOCAL_LIBEWF ) 37 38 #include <libewf/codepage.h> 39 40 #else 41 42 /* The codepage definitions 43 */ 44 enum LIBEWF_CODEPAGES 45 { 46 LIBEWF_CODEPAGE_ASCII = 20127, 47 48 LIBEWF_CODEPAGE_ISO_8859_1 = 28591, 49 LIBEWF_CODEPAGE_ISO_8859_2 = 28592, 50 LIBEWF_CODEPAGE_ISO_8859_3 = 28593, 51 LIBEWF_CODEPAGE_ISO_8859_4 = 28594, 52 LIBEWF_CODEPAGE_ISO_8859_5 = 28595, 53 LIBEWF_CODEPAGE_ISO_8859_6 = 28596, 54 LIBEWF_CODEPAGE_ISO_8859_7 = 28597, 55 LIBEWF_CODEPAGE_ISO_8859_8 = 28598, 56 LIBEWF_CODEPAGE_ISO_8859_9 = 28599, 57 LIBEWF_CODEPAGE_ISO_8859_10 = 28600, 58 LIBEWF_CODEPAGE_ISO_8859_11 = 28601, 59 LIBEWF_CODEPAGE_ISO_8859_13 = 28603, 60 LIBEWF_CODEPAGE_ISO_8859_14 = 28604, 61 LIBEWF_CODEPAGE_ISO_8859_15 = 28605, 62 LIBEWF_CODEPAGE_ISO_8859_16 = 28606, 63 64 LIBEWF_CODEPAGE_KOI8_R = 20866, 65 LIBEWF_CODEPAGE_KOI8_U = 21866, 66 67 LIBEWF_CODEPAGE_WINDOWS_874 = 874, 68 LIBEWF_CODEPAGE_WINDOWS_932 = 932, 69 LIBEWF_CODEPAGE_WINDOWS_936 = 936, 70 LIBEWF_CODEPAGE_WINDOWS_949 = 949, 71 LIBEWF_CODEPAGE_WINDOWS_950 = 950, 72 LIBEWF_CODEPAGE_WINDOWS_1250 = 1250, 73 LIBEWF_CODEPAGE_WINDOWS_1251 = 1251, 74 LIBEWF_CODEPAGE_WINDOWS_1252 = 1252, 75 LIBEWF_CODEPAGE_WINDOWS_1253 = 1253, 76 LIBEWF_CODEPAGE_WINDOWS_1254 = 1254, 77 LIBEWF_CODEPAGE_WINDOWS_1255 = 1255, 78 LIBEWF_CODEPAGE_WINDOWS_1256 = 1256, 79 LIBEWF_CODEPAGE_WINDOWS_1257 = 1257, 80 LIBEWF_CODEPAGE_WINDOWS_1258 = 1258 81 }; 82 83 #endif /* !defined( HAVE_LOCAL_LIBEWF ) */ 84 85 #if defined( __cplusplus ) 86 } 87 #endif 88 89 #endif /* !defined( _LIBEWF_INTERNAL_CODEPAGE_H ) */ 90 91