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.
 
 
 
 
 
 

91 lines
2.5 KiB

  1. /*
  2. * Codepage functions
  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_INTERNAL_CODEPAGE_H )
  22. #define _LIBPFF_INTERNAL_CODEPAGE_H
  23. #include <common.h>
  24. #include <types.h>
  25. #if defined( __cplusplus )
  26. extern "C" {
  27. #endif
  28. #if !defined( HAVE_LOCAL_LIBPFF )
  29. #include <libpff/codepage.h>
  30. /* Define HAVE_LOCAL_LIBPFF for local use of libpff
  31. * The definitions in <libpff/codepage.h> are copied here
  32. * for local use of libpff
  33. */
  34. #else
  35. /* The codepage definitions
  36. */
  37. enum LIBPFF_CODEPAGES
  38. {
  39. LIBPFF_CODEPAGE_ASCII = 20127,
  40. LIBPFF_CODEPAGE_ISO_8859_1 = 28591,
  41. LIBPFF_CODEPAGE_ISO_8859_2 = 28592,
  42. LIBPFF_CODEPAGE_ISO_8859_3 = 28593,
  43. LIBPFF_CODEPAGE_ISO_8859_4 = 28594,
  44. LIBPFF_CODEPAGE_ISO_8859_5 = 28595,
  45. LIBPFF_CODEPAGE_ISO_8859_6 = 28596,
  46. LIBPFF_CODEPAGE_ISO_8859_7 = 28597,
  47. LIBPFF_CODEPAGE_ISO_8859_8 = 28598,
  48. LIBPFF_CODEPAGE_ISO_8859_9 = 28599,
  49. LIBPFF_CODEPAGE_ISO_8859_10 = 28600,
  50. LIBPFF_CODEPAGE_ISO_8859_11 = 28601,
  51. LIBPFF_CODEPAGE_ISO_8859_13 = 28603,
  52. LIBPFF_CODEPAGE_ISO_8859_14 = 28604,
  53. LIBPFF_CODEPAGE_ISO_8859_15 = 28605,
  54. LIBPFF_CODEPAGE_ISO_8859_16 = 28606,
  55. LIBPFF_CODEPAGE_KOI8_R = 20866,
  56. LIBPFF_CODEPAGE_KOI8_U = 21866,
  57. LIBPFF_CODEPAGE_WINDOWS_874 = 874,
  58. LIBPFF_CODEPAGE_WINDOWS_932 = 932,
  59. LIBPFF_CODEPAGE_WINDOWS_936 = 936,
  60. LIBPFF_CODEPAGE_WINDOWS_949 = 949,
  61. LIBPFF_CODEPAGE_WINDOWS_950 = 950,
  62. LIBPFF_CODEPAGE_WINDOWS_1250 = 1250,
  63. LIBPFF_CODEPAGE_WINDOWS_1251 = 1251,
  64. LIBPFF_CODEPAGE_WINDOWS_1252 = 1252,
  65. LIBPFF_CODEPAGE_WINDOWS_1253 = 1253,
  66. LIBPFF_CODEPAGE_WINDOWS_1254 = 1254,
  67. LIBPFF_CODEPAGE_WINDOWS_1255 = 1255,
  68. LIBPFF_CODEPAGE_WINDOWS_1256 = 1256,
  69. LIBPFF_CODEPAGE_WINDOWS_1257 = 1257,
  70. LIBPFF_CODEPAGE_WINDOWS_1258 = 1258
  71. };
  72. #endif /* !defined( HAVE_LOCAL_LIBPFF ) */
  73. #if defined( __cplusplus )
  74. }
  75. #endif
  76. #endif /* !defined( _LIBPFF_INTERNAL_CODEPAGE_H ) */