codepgid.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #ifndef _CODEPGID_H
  2. #define _CODEPGID_H
  3. //
  4. /////////////////////////////////////////////////////////////////////////////
  5. //
  6. // Copyright 2015 Autodesk, Inc. All rights reserved.
  7. //
  8. // Use of this software is subject to the terms of the Autodesk license
  9. // agreement provided at the time of installation or download, or which
  10. // otherwise accompanies this software in either electronic or hard copy form.
  11. //
  12. //////////////////////////////////////////////////////////////////////////////
  13. //
  14. //
  15. #pragma pack (push, 8)
  16. /* This list contains identifiers for all of the code pages used with
  17. AutoCAD. You can add entries (before the CODE_PAGE_CNT item), but
  18. don't ever delete one.
  19. */
  20. typedef enum {
  21. CODE_PAGE_UNDEFINED = 0,
  22. CODE_PAGE_ASCII,
  23. CODE_PAGE_8859_1,
  24. CODE_PAGE_8859_2,
  25. CODE_PAGE_8859_3,
  26. CODE_PAGE_8859_4,
  27. CODE_PAGE_8859_5,
  28. CODE_PAGE_8859_6,
  29. CODE_PAGE_8859_7,
  30. CODE_PAGE_8859_8,
  31. CODE_PAGE_8859_9,
  32. CODE_PAGE_DOS437,
  33. CODE_PAGE_DOS850,
  34. CODE_PAGE_DOS852,
  35. CODE_PAGE_DOS855,
  36. CODE_PAGE_DOS857,
  37. CODE_PAGE_DOS860,
  38. CODE_PAGE_DOS861,
  39. CODE_PAGE_DOS863,
  40. CODE_PAGE_DOS864,
  41. CODE_PAGE_DOS865,
  42. CODE_PAGE_DOS869,
  43. CODE_PAGE_DOS932,
  44. CODE_PAGE_MACINTOSH,
  45. CODE_PAGE_BIG5,
  46. CODE_PAGE_KSC5601,
  47. CODE_PAGE_JOHAB,
  48. CODE_PAGE_DOS866,
  49. CODE_PAGE_ANSI_1250,
  50. CODE_PAGE_ANSI_1251,
  51. CODE_PAGE_ANSI_1252,
  52. CODE_PAGE_GB2312,
  53. CODE_PAGE_ANSI_1253,
  54. CODE_PAGE_ANSI_1254,
  55. CODE_PAGE_ANSI_1255,
  56. CODE_PAGE_ANSI_1256,
  57. CODE_PAGE_ANSI_1257,
  58. CODE_PAGE_ANSI_874,
  59. CODE_PAGE_ANSI_932,
  60. CODE_PAGE_ANSI_936,
  61. CODE_PAGE_ANSI_949,
  62. CODE_PAGE_ANSI_950,
  63. CODE_PAGE_ANSI_1361,
  64. CODE_PAGE_ANSI_1200,
  65. CODE_PAGE_ANSI_1258,
  66. CODE_PAGE_CNT
  67. } code_page_id;
  68. #pragma pack (pop)
  69. inline bool
  70. isValidCodePageId(code_page_id value)
  71. {
  72. return ((int)value >= 0) && ((int)value < CODE_PAGE_CNT);
  73. }
  74. #endif // CODEPGID_H_