You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

123 lines
5.0 KiB

  1. /*
  2. * Codepage definitions for libpff
  3. *
  4. * Copyright (C) 2008-2019, 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. #if !defined( _LIBPFF_CODEPAGE_H )
  22. #define _LIBPFF_CODEPAGE_H
  23. #include <libpff/types.h>
  24. #if defined( __cplusplus )
  25. extern "C" {
  26. #endif
  27. /* The codepage definitions
  28. */
  29. enum LIBPFF_CODEPAGES
  30. {
  31. LIBPFF_CODEPAGE_ASCII = 20127,
  32. LIBPFF_CODEPAGE_ISO_8859_1 = 28591,
  33. LIBPFF_CODEPAGE_ISO_8859_2 = 28592,
  34. LIBPFF_CODEPAGE_ISO_8859_3 = 28593,
  35. LIBPFF_CODEPAGE_ISO_8859_4 = 28594,
  36. LIBPFF_CODEPAGE_ISO_8859_5 = 28595,
  37. LIBPFF_CODEPAGE_ISO_8859_6 = 28596,
  38. LIBPFF_CODEPAGE_ISO_8859_7 = 28597,
  39. LIBPFF_CODEPAGE_ISO_8859_8 = 28598,
  40. LIBPFF_CODEPAGE_ISO_8859_9 = 28599,
  41. LIBPFF_CODEPAGE_ISO_8859_10 = 28600,
  42. LIBPFF_CODEPAGE_ISO_8859_11 = 28601,
  43. LIBPFF_CODEPAGE_ISO_8859_13 = 28603,
  44. LIBPFF_CODEPAGE_ISO_8859_14 = 28604,
  45. LIBPFF_CODEPAGE_ISO_8859_15 = 28605,
  46. LIBPFF_CODEPAGE_ISO_8859_16 = 28606,
  47. LIBPFF_CODEPAGE_KOI8_R = 20866,
  48. LIBPFF_CODEPAGE_KOI8_U = 21866,
  49. LIBPFF_CODEPAGE_WINDOWS_874 = 874,
  50. LIBPFF_CODEPAGE_WINDOWS_932 = 932,
  51. LIBPFF_CODEPAGE_WINDOWS_936 = 936,
  52. LIBPFF_CODEPAGE_WINDOWS_949 = 949,
  53. LIBPFF_CODEPAGE_WINDOWS_950 = 950,
  54. LIBPFF_CODEPAGE_WINDOWS_1250 = 1250,
  55. LIBPFF_CODEPAGE_WINDOWS_1251 = 1251,
  56. LIBPFF_CODEPAGE_WINDOWS_1252 = 1252,
  57. LIBPFF_CODEPAGE_WINDOWS_1253 = 1253,
  58. LIBPFF_CODEPAGE_WINDOWS_1254 = 1254,
  59. LIBPFF_CODEPAGE_WINDOWS_1255 = 1255,
  60. LIBPFF_CODEPAGE_WINDOWS_1256 = 1256,
  61. LIBPFF_CODEPAGE_WINDOWS_1257 = 1257,
  62. LIBPFF_CODEPAGE_WINDOWS_1258 = 1258
  63. };
  64. #define LIBPFF_CODEPAGE_US_ASCII LIBPFF_CODEPAGE_ASCII
  65. #define LIBPFF_CODEPAGE_ISO_WESTERN_EUROPEAN LIBPFF_CODEPAGE_ISO_8859_1
  66. #define LIBPFF_CODEPAGE_ISO_CENTRAL_EUROPEAN LIBPFF_CODEPAGE_ISO_8859_2
  67. #define LIBPFF_CODEPAGE_ISO_SOUTH_EUROPEAN LIBPFF_CODEPAGE_ISO_8859_3
  68. #define LIBPFF_CODEPAGE_ISO_NORTH_EUROPEAN LIBPFF_CODEPAGE_ISO_8859_4
  69. #define LIBPFF_CODEPAGE_ISO_CYRILLIC LIBPFF_CODEPAGE_ISO_8859_5
  70. #define LIBPFF_CODEPAGE_ISO_ARABIC LIBPFF_CODEPAGE_ISO_8859_6
  71. #define LIBPFF_CODEPAGE_ISO_GREEK LIBPFF_CODEPAGE_ISO_8859_7
  72. #define LIBPFF_CODEPAGE_ISO_HEBREW LIBPFF_CODEPAGE_ISO_8859_8
  73. #define LIBPFF_CODEPAGE_ISO_TURKISH LIBPFF_CODEPAGE_ISO_8859_9
  74. #define LIBPFF_CODEPAGE_ISO_NORDIC LIBPFF_CODEPAGE_ISO_8859_10
  75. #define LIBPFF_CODEPAGE_ISO_THAI LIBPFF_CODEPAGE_ISO_8859_11
  76. #define LIBPFF_CODEPAGE_ISO_BALTIC LIBPFF_CODEPAGE_ISO_8859_13
  77. #define LIBPFF_CODEPAGE_ISO_CELTIC LIBPFF_CODEPAGE_ISO_8859_14
  78. #define LIBPFF_CODEPAGE_ISO_LATIN_1 LIBPFF_CODEPAGE_ISO_8859_1
  79. #define LIBPFF_CODEPAGE_ISO_LATIN_2 LIBPFF_CODEPAGE_ISO_8859_2
  80. #define LIBPFF_CODEPAGE_ISO_LATIN_3 LIBPFF_CODEPAGE_ISO_8859_3
  81. #define LIBPFF_CODEPAGE_ISO_LATIN_4 LIBPFF_CODEPAGE_ISO_8859_4
  82. #define LIBPFF_CODEPAGE_ISO_LATIN_5 LIBPFF_CODEPAGE_ISO_8859_9
  83. #define LIBPFF_CODEPAGE_ISO_LATIN_6 LIBPFF_CODEPAGE_ISO_8859_10
  84. #define LIBPFF_CODEPAGE_ISO_LATIN_7 LIBPFF_CODEPAGE_ISO_8859_13
  85. #define LIBPFF_CODEPAGE_ISO_LATIN_8 LIBPFF_CODEPAGE_ISO_8859_14
  86. #define LIBPFF_CODEPAGE_ISO_LATIN_9 LIBPFF_CODEPAGE_ISO_8859_15
  87. #define LIBPFF_CODEPAGE_ISO_LATIN_10 LIBPFF_CODEPAGE_ISO_8859_16
  88. #define LIBPFF_CODEPAGE_KOI8_RUSSIAN LIBPFF_CODEPAGE_KOI8_R
  89. #define LIBPFF_CODEPAGE_KOI8_UKRAINIAN LIBPFF_CODEPAGE_KOI8_U
  90. #define LIBPFF_CODEPAGE_WINDOWS_THAI LIBPFF_CODEPAGE_WINDOWS_874
  91. #define LIBPFF_CODEPAGE_WINDOWS_JAPANESE LIBPFF_CODEPAGE_WINDOWS_932
  92. #define LIBPFF_CODEPAGE_WINDOWS_CHINESE_SIMPLIFIED LIBPFF_CODEPAGE_WINDOWS_936
  93. #define LIBPFF_CODEPAGE_WINDOWS_KOREAN LIBPFF_CODEPAGE_WINDOWS_949
  94. #define LIBPFF_CODEPAGE_WINDOWS_CHINESE_TRADITIONAL LIBPFF_CODEPAGE_WINDOWS_950
  95. #define LIBPFF_CODEPAGE_WINDOWS_CENTRAL_EUROPEAN LIBPFF_CODEPAGE_WINDOWS_1250
  96. #define LIBPFF_CODEPAGE_WINDOWS_CYRILLIC LIBPFF_CODEPAGE_WINDOWS_1251
  97. #define LIBPFF_CODEPAGE_WINDOWS_WESTERN_EUROPEAN LIBPFF_CODEPAGE_WINDOWS_1252
  98. #define LIBPFF_CODEPAGE_WINDOWS_GREEK LIBPFF_CODEPAGE_WINDOWS_1253
  99. #define LIBPFF_CODEPAGE_WINDOWS_TURKISH LIBPFF_CODEPAGE_WINDOWS_1254
  100. #define LIBPFF_CODEPAGE_WINDOWS_HEBREW LIBPFF_CODEPAGE_WINDOWS_1255
  101. #define LIBPFF_CODEPAGE_WINDOWS_ARABIC LIBPFF_CODEPAGE_WINDOWS_1256
  102. #define LIBPFF_CODEPAGE_WINDOWS_BALTIC LIBPFF_CODEPAGE_WINDOWS_1257
  103. #define LIBPFF_CODEPAGE_WINDOWS_VIETNAMESE LIBPFF_CODEPAGE_WINDOWS_1258
  104. #if defined( __cplusplus )
  105. }
  106. #endif
  107. #endif /* !defined( _LIBPFF_CODEPAGE_H ) */