/packages/palmunits/src/palmlocale.pp

https://github.com/slibre/freepascal · Puppet · 618 lines · 597 code · 21 blank · 0 comment · 6 complexity · ad8ea3bfcbf0998dd2cdc7cc64740e24 MD5 · raw file

  1. (******************************************************************************
  2. *
  3. * Copyright (c) 2000 Palm, Inc. or its subsidiaries.
  4. * All rights reserved.
  5. *
  6. * File: PalmLocale.h
  7. *
  8. * Release: Palm OS SDK 4.0 (63220)
  9. *
  10. * Description:
  11. * Public header for simple constants that support locales (information
  12. * specific to locales and regions). This file is designed to support
  13. * Rez in addition to C/C++.
  14. *
  15. * History:
  16. * 05/31/00 CS Created by Chris Schneider (from LocaleMgr.h).
  17. * 06/02/00 CS Moved character encoding constants in here (from TextMgr.h).
  18. * 06/05/00 kwk Moved character encoding names in here (from TextMgr.h)
  19. * Updated CP1252 charset name to "Windows-1252", as the new
  20. * preferred standard. It was "ISO-8859-1-Windows-3.1-Latin-1".
  21. * Added encodingNameUCS2. Fixed up some encoding constant names.
  22. * 06/05/00 CS Hacked in changes for Rez, which doesn't support macro
  23. * parameters in #defines.
  24. * 06/06/00 CS Changed name form Locale.h to PalmLocale.h to avoid
  25. * name collision with the Metrowerks Standard Library
  26. * header Locale.h.
  27. * CS Now use PALM_LOCALE_HAS_TYPES to control whether to
  28. * use types (rather than just rez).
  29. * 06/07/00 kwk Moved encoding name #defines out of conditional sections,
  30. * since these don't depend on PALM_LOCALE_HAS_TYPES.
  31. * kwk Fixed charEncodingMax - was 76, should be 75.
  32. * 06/27/00 kwk Fixed charEncodingMax in the automatically generated section
  33. * to also be 75.
  34. * kwk Renumbered char encodings so that charEncodingUCS2 stays
  35. * at 9 (where it was before I integrated with Michel), since
  36. * the Sony version of TxtConvertEncoding relies on this.
  37. * Basically swapped charEncodingUCS2 (was 25) with charEncodingEucJp
  38. * (was 9).
  39. * 07/21/00 kwk Added charEncodingUTF16, charEncodingUTF16BE, and charEncodingUTF16LE.
  40. * The UTF16 encoding requires a BOM (byte order mark) in the text
  41. * stream to identify big vs. little endian, while the other two
  42. * are explicit. Note that for Palm OS, charEncodingUCS2 is the
  43. * same as charEncodingUTF16BE without support for surrogates, but
  44. * since we currently don't support characters > 16 bits, in reality
  45. * charEncodingUTF16BE is more like charEncodingUCS2.
  46. * kwk Updated charEncodingMax to be 77 (was 74).
  47. * 08/01/00 kwk Changed cNewCalidonia to cNewCaledonia.
  48. *
  49. *****************************************************************************)
  50. unit palmlocale;
  51. interface
  52. uses localemgr, textmgr;
  53. // Names of the known encodings.
  54. const
  55. encodingNameAscii = 'us-ascii';
  56. encodingNameISO8859_1 = 'ISO-8859-1';
  57. encodingNameCP1252 = 'Windows-1252';
  58. encodingNameShiftJIS = 'Shift_JIS';
  59. encodingNameCP932 = 'Windows-31J';
  60. encodingNameUTF8 = 'UTF-8';
  61. encodingNameUCS2 = 'ISO-10646-UCS-2';
  62. // Maximum length of any encoding name.
  63. const
  64. maxEncodingNameLength = 40;
  65. (***********************************************************************
  66. * Locale constants
  67. ***********************************************************************)
  68. (* Language codes (ISO 639). The first 8 preserve the old values for the deprecated
  69. LanguageType; the rest are sorted by the 2-character language code.
  70. WARNING! Keep in sync with BOTH:
  71. 1) LanguageCode array in OverlayMgr.c
  72. 2) localeLanguage #define in UIResDefs.r
  73. *)
  74. // Leave the following line unchanged before 1st #define to be copied to rez section:
  75. // TAG SOURCE START
  76. const
  77. lEnglish = LanguageType(0); // EN
  78. lFrench = LanguageType(1); // FR
  79. lGerman = LanguageType(2); // DE
  80. lItalian = LanguageType(3); // IT
  81. lSpanish = LanguageType(4); // ES
  82. lUnused = LanguageType(5); // Reserved
  83. // New in 3.1
  84. lJapanese = LanguageType(6); // JA (Palm calls this jp)
  85. lDutch = LanguageType(7); // NL
  86. // New in 4.0
  87. lAfar = LanguageType(8); // AA
  88. lAbkhazian = LanguageType(9); // AB
  89. lAfrikaans = LanguageType(10); // AF
  90. lAmharic = LanguageType(11); // AM
  91. lArabic = LanguageType(12); // AR
  92. lAssamese = LanguageType(13); // AS
  93. lAymara = LanguageType(14); // AY
  94. lAzerbaijani = LanguageType(15); // AZ
  95. lBashkir = LanguageType(16); // BA
  96. lByelorussian = LanguageType(17); // BE
  97. lBulgarian = LanguageType(18); // BG
  98. lBihari = LanguageType(19); // BH
  99. lBislama = LanguageType(20); // BI
  100. lBengali = LanguageType(21); // BN (Bangla)
  101. lTibetan = LanguageType(22); // BO
  102. lBreton = LanguageType(23); // BR
  103. lCatalan = LanguageType(24); // CA
  104. lCorsican = LanguageType(25); // CO
  105. lCzech = LanguageType(26); // CS
  106. lWelsh = LanguageType(27); // CY
  107. lDanish = LanguageType(28); // DA
  108. lBhutani = LanguageType(29); // DZ
  109. lGreek = LanguageType(30); // EL
  110. lEsperanto = LanguageType(31); // EO
  111. lEstonian = LanguageType(32); // ET
  112. lBasque = LanguageType(33); // EU
  113. lPersian = LanguageType(34); // FA (Farsi)
  114. lFinnish = LanguageType(35); // FI
  115. lFiji = LanguageType(36); // FJ
  116. lFaroese = LanguageType(37); // FO
  117. lFrisian = LanguageType(38); // FY
  118. lIrish = LanguageType(39); // GA
  119. lScotsGaelic = LanguageType(40); // GD
  120. lGalician = LanguageType(41); // GL
  121. lGuarani = LanguageType(42); // GN
  122. lGujarati = LanguageType(43); // GU
  123. lHausa = LanguageType(44); // HA
  124. lHindi = LanguageType(45); // HI
  125. lCroatian = LanguageType(46); // HR
  126. lHungarian = LanguageType(47); // HU
  127. lArmenian = LanguageType(48); // HY
  128. lInterlingua = LanguageType(49); // IA
  129. lInterlingue = LanguageType(50); // IE
  130. lInupiak = LanguageType(51); // IK
  131. lIndonesian = LanguageType(52); // IN
  132. lIcelandic = LanguageType(53); // IS
  133. lHebrew = LanguageType(54); // IW
  134. lYiddish = LanguageType(55); // JI
  135. lJavanese = LanguageType(56); // JW
  136. lGeorgian = LanguageType(57); // KA
  137. lKazakh = LanguageType(58); // KK
  138. lGreenlandic = LanguageType(59); // KL
  139. lCambodian = LanguageType(60); // KM
  140. lKannada = LanguageType(61); // KN
  141. lKorean = LanguageType(62); // KO
  142. lKashmiri = LanguageType(63); // KS
  143. lKurdish = LanguageType(64); // KU
  144. lKirghiz = LanguageType(65); // KY
  145. lLatin = LanguageType(66); // LA
  146. lLingala = LanguageType(67); // LN
  147. lLaothian = LanguageType(68); // LO
  148. lLithuanian = LanguageType(69); // LT
  149. lLatvian = LanguageType(70); // LV (Lettish)
  150. lMalagasy = LanguageType(71); // MG
  151. lMaori = LanguageType(72); // MI
  152. lMacedonian = LanguageType(73); // MK
  153. lMalayalam = LanguageType(74); // ML
  154. lMongolian = LanguageType(75); // MN
  155. lMoldavian = LanguageType(76); // MO
  156. lMarathi = LanguageType(77); // MR
  157. lMalay = LanguageType(78); // MS
  158. lMaltese = LanguageType(79); // MT
  159. lBurmese = LanguageType(80); // MY
  160. lNauru = LanguageType(81); // NA
  161. lNepali = LanguageType(82); // NE
  162. lNorwegian = LanguageType(83); // NO
  163. lOccitan = LanguageType(84); // OC
  164. lAfan = LanguageType(85); // OM (Oromo)
  165. lOriya = LanguageType(86); // OR
  166. lPunjabi = LanguageType(87); // PA
  167. lPolish = LanguageType(88); // PL
  168. lPashto = LanguageType(89); // PS (Pushto)
  169. lPortuguese = LanguageType(90); // PT
  170. lQuechua = LanguageType(91); // QU
  171. lRhaetoRomance = LanguageType(92); // RM
  172. lKurundi = LanguageType(93); // RN
  173. lRomanian = LanguageType(94); // RO
  174. lRussian = LanguageType(95); // RU
  175. lKinyarwanda = LanguageType(96); // RW
  176. lSanskrit = LanguageType(97); // SA
  177. lSindhi = LanguageType(98); // SD
  178. lSangho = LanguageType(99); // SG
  179. lSerboCroatian = LanguageType(100); // SH
  180. lSinghalese = LanguageType(101); // SI
  181. lSlovak = LanguageType(102); // SK
  182. lSlovenian = LanguageType(103); // SL
  183. lSamoan = LanguageType(104); // SM
  184. lShona = LanguageType(105); // SN
  185. lSomali = LanguageType(106); // SO
  186. lAlbanian = LanguageType(107); // SQ
  187. lSerbian = LanguageType(108); // SR
  188. lSiswati = LanguageType(109); // SS
  189. lSesotho = LanguageType(110); // ST
  190. lSudanese = LanguageType(111); // SU
  191. lSwedish = LanguageType(112); // SV
  192. lSwahili = LanguageType(113); // SW
  193. lTamil = LanguageType(114); // TA
  194. lTelugu = LanguageType(115); // TE
  195. lTajik = LanguageType(116); // TG
  196. lThai = LanguageType(117); // TH
  197. lTigrinya = LanguageType(118); // TI
  198. lTurkmen = LanguageType(119); // TK
  199. lTagalog = LanguageType(120); // TL
  200. lSetswana = LanguageType(121); // TN
  201. lTonga = LanguageType(122); // TO
  202. lTurkish = LanguageType(123); // TR
  203. lTsonga = LanguageType(124); // TS
  204. lTatar = LanguageType(125); // TT
  205. lTwi = LanguageType(126); // TW
  206. lUkrainian = LanguageType(127); // UK
  207. lUrdu = LanguageType(128); // UR
  208. lUzbek = LanguageType(129); // UZ
  209. lVietnamese = LanguageType(130); // VI
  210. lVolapuk = LanguageType(131); // VO
  211. lWolof = LanguageType(132); // WO
  212. lXhosa = LanguageType(133); // XH
  213. lYoruba = LanguageType(134); // YO
  214. lChinese = LanguageType(135); // ZH
  215. lZulu = LanguageType(136); // ZU
  216. (* Country codes (ISO 3166). The first 33 preserve the old values for the
  217. deprecated CountryType; the rest are sorted by the 2-character country code.
  218. WARNING! Keep in sync with BOTH:
  219. 1) CountryCode array in OverlayMgr.c
  220. 2) localeCountry #define in UIResDefs.r
  221. *)
  222. const
  223. cAustralia = CountryType(0); // AU
  224. cAustria = CountryType(1); // AT
  225. cBelgium = CountryType(2); // BE
  226. cBrazil = CountryType(3); // BR
  227. cCanada = CountryType(4); // CA
  228. cDenmark = CountryType(5); // DK
  229. cFinland = CountryType(6); // FI
  230. cFrance = CountryType(7); // FR
  231. cGermany = CountryType(8); // DE
  232. cHongKong = CountryType(9); // HK
  233. cIceland = CountryType(10); // IS
  234. cIreland = CountryType(11); // IE
  235. cItaly = CountryType(12); // IT
  236. cJapan = CountryType(13); // JP
  237. cLuxembourg = CountryType(14); // LU
  238. cMexico = CountryType(15); // MX
  239. cNetherlands = CountryType(16); // NL
  240. cNewZealand = CountryType(17); // NZ
  241. cNorway = CountryType(18); // NO
  242. cSpain = CountryType(19); // ES
  243. cSweden = CountryType(20); // SE
  244. cSwitzerland = CountryType(21); // CH
  245. cUnitedKingdom = CountryType(22); // GB (UK)
  246. cUnitedStates = CountryType(23); // US
  247. cIndia = CountryType(24); // IN
  248. cIndonesia = CountryType(25); // ID
  249. cRepublicOfKorea = CountryType(26); // KR
  250. cMalaysia = CountryType(27); // MY
  251. cChina = CountryType(28); // CN
  252. cPhilippines = CountryType(29); // PH
  253. cSingapore = CountryType(30); // SG
  254. cThailand = CountryType(31); // TH
  255. cTaiwan = CountryType(32); // TW
  256. // New in 4.0
  257. cAndorra = CountryType(33); // AD
  258. cUnitedArabEmirates = CountryType(34); // AE
  259. cAfghanistan = CountryType(35); // AF
  260. cAntiguaAndBarbuda = CountryType(36); // AG
  261. cAnguilla = CountryType(37); // AI
  262. cAlbania = CountryType(38); // AL
  263. cArmenia = CountryType(39); // AM
  264. cNetherlandsAntilles = CountryType(40); // AN
  265. cAngola = CountryType(41); // AO
  266. cAntarctica = CountryType(42); // AQ
  267. cArgentina = CountryType(43); // AR
  268. cAmericanSamoa = CountryType(44); // AS
  269. cAruba = CountryType(45); // AW
  270. cAzerbaijan = CountryType(46); // AZ
  271. cBosniaAndHerzegovina = CountryType(47); // BA
  272. cBarbados = CountryType(48); // BB
  273. cBangladesh = CountryType(49); // BD
  274. cBurkinaFaso = CountryType(50); // BF
  275. cBulgaria = CountryType(51); // BG
  276. cBahrain = CountryType(52); // BH
  277. cBurundi = CountryType(53); // BI
  278. cBenin = CountryType(54); // BJ
  279. cBermuda = CountryType(55); // BM
  280. cBruneiDarussalam = CountryType(56); // BN
  281. cBolivia = CountryType(57); // BO
  282. cBahamas = CountryType(58); // BS
  283. cBhutan = CountryType(59); // BT
  284. cBouvetIsland = CountryType(60); // BV
  285. cBotswana = CountryType(61); // BW
  286. cBelarus = CountryType(62); // BY
  287. cBelize = CountryType(63); // BZ
  288. cCocosIslands = CountryType(64); // CC
  289. cDemocraticRepublicOfTheCongo = CountryType(65); // CD
  290. cCentralAfricanRepublic = CountryType(66); // CF
  291. cCongo = CountryType(67); // CG
  292. cIvoryCoast = CountryType(68); // CI
  293. cCookIslands = CountryType(69); // CK
  294. cChile = CountryType(70); // CL
  295. cCameroon = CountryType(71); // CM
  296. cColumbia = CountryType(72); // CO
  297. cCostaRica = CountryType(73); // CR
  298. cCuba = CountryType(74); // CU
  299. cCapeVerde = CountryType(75); // CV
  300. cChristmasIsland = CountryType(76); // CX
  301. cCyprus = CountryType(77); // CY
  302. cCzechRepublic = CountryType(78); // CZ
  303. cDjibouti = CountryType(79); // DJ
  304. cDominica = CountryType(80); // DM
  305. cDominicanRepublic = CountryType(81); // DO
  306. cAlgeria = CountryType(82); // DZ
  307. cEcuador = CountryType(83); // EC
  308. cEstonia = CountryType(84); // EE
  309. cEgypt = CountryType(85); // EG
  310. cWesternSahara = CountryType(86); // EH
  311. cEritrea = CountryType(87); // ER
  312. cEthiopia = CountryType(88); // ET
  313. cFiji = CountryType(89); // FJ
  314. cFalklandIslands = CountryType(90); // FK
  315. cMicronesia = CountryType(91); // FM
  316. cFaeroeIslands = CountryType(92); // FO
  317. cMetropolitanFrance = CountryType(93); // FX
  318. cGabon = CountryType(94); // GA
  319. cGrenada = CountryType(95); // GD
  320. cGeorgia = CountryType(96); // GE
  321. cFrenchGuiana = CountryType(97); // GF
  322. cGhana = CountryType(98); // GH
  323. cGibraltar = CountryType(99); // GI
  324. cGreenland = CountryType(100); // GL
  325. cGambia = CountryType(101); // GM
  326. cGuinea = CountryType(102); // GN
  327. cGuadeloupe = CountryType(103); // GP
  328. cEquatorialGuinea = CountryType(104); // GQ
  329. cGreece = CountryType(105); // GR
  330. cSouthGeorgiaAndTheSouthSandwichIslands = CountryType(106); // GS
  331. cGuatemala = CountryType(107); // GT
  332. cGuam = CountryType(108); // GU
  333. cGuineaBisseu = CountryType(109); // GW
  334. cGuyana = CountryType(110); // GY
  335. cHeardAndMcDonaldIslands = CountryType(111); // HM
  336. cHonduras = CountryType(112); // HN
  337. cCroatia = CountryType(113); // HR
  338. cHaiti = CountryType(114); // HT
  339. cHungary = CountryType(115); // HU
  340. cIsrael = CountryType(116); // IL
  341. cBritishIndianOceanTerritory = CountryType(117); // IO
  342. cIraq = CountryType(118); // IQ
  343. cIran = CountryType(119); // IR
  344. cJamaica = CountryType(120); // JM
  345. cJordan = CountryType(121); // JO
  346. cKenya = CountryType(122); // KE
  347. cKyrgyzstan = CountryType(123); // KG (Kirgistan)
  348. cCambodia = CountryType(124); // KH
  349. cKiribati = CountryType(125); // KI
  350. cComoros = CountryType(126); // KM
  351. cStKittsAndNevis = CountryType(127); // KN
  352. cDemocraticPeoplesRepublicOfKorea = CountryType(128); // KP
  353. cKuwait = CountryType(129); // KW
  354. cCaymanIslands = CountryType(130); // KY
  355. cKazakhstan = CountryType(131); // KK
  356. cLaos = CountryType(132); // LA
  357. cLebanon = CountryType(133); // LB
  358. cStLucia = CountryType(134); // LC
  359. cLiechtenstein = CountryType(135); // LI
  360. cSriLanka = CountryType(136); // LK
  361. cLiberia = CountryType(137); // LR
  362. cLesotho = CountryType(138); // LS
  363. cLithuania = CountryType(139); // LT
  364. cLatvia = CountryType(140); // LV
  365. cLibya = CountryType(141); // LY
  366. cMorrocco = CountryType(142); // MA
  367. cMonaco = CountryType(143); // MC
  368. cMoldova = CountryType(144); // MD
  369. cMadagascar = CountryType(145); // MG
  370. cMarshallIslands = CountryType(146); // MH
  371. cMacedonia = CountryType(147); // MK
  372. cMali = CountryType(148); // ML
  373. cMyanmar = CountryType(149); // MM
  374. cMongolia = CountryType(150); // MN
  375. cMacau = CountryType(151); // MO
  376. cNorthernMarianaIslands = CountryType(152); // MP
  377. cMartinique = CountryType(153); // MQ
  378. cMauritania = CountryType(154); // MR
  379. cMontserrat = CountryType(155); // MS
  380. cMalta = CountryType(156); // MT
  381. cMauritius = CountryType(157); // MU
  382. cMaldives = CountryType(158); // MV
  383. cMalawi = CountryType(159); // MW
  384. cMozambique = CountryType(160); // MZ
  385. cNamibia = CountryType(161); // NA
  386. cNewCaledonia = CountryType(162); // NC
  387. cNiger = CountryType(163); // NE
  388. cNorfolkIsland = CountryType(164); // NF
  389. cNigeria = CountryType(165); // NG
  390. cNicaragua = CountryType(166); // NI
  391. cNepal = CountryType(167); // NP
  392. cNauru = CountryType(168); // NR
  393. cNiue = CountryType(169); // NU
  394. cOman = CountryType(170); // OM
  395. cPanama = CountryType(171); // PA
  396. cPeru = CountryType(172); // PE
  397. cFrenchPolynesia = CountryType(173); // PF
  398. cPapuaNewGuinea = CountryType(174); // PG
  399. cPakistan = CountryType(175); // PK
  400. cPoland = CountryType(176); // PL
  401. cStPierreAndMiquelon = CountryType(177); // PM
  402. cPitcairn = CountryType(178); // PN
  403. cPuertoRico = CountryType(179); // PR
  404. cPortugal = CountryType(180); // PT
  405. cPalau = CountryType(181); // PW
  406. cParaguay = CountryType(182); // PY
  407. cQatar = CountryType(183); // QA
  408. cReunion = CountryType(184); // RE
  409. cRomania = CountryType(185); // RO
  410. cRussianFederation = CountryType(186); // RU
  411. cRwanda = CountryType(187); // RW
  412. cSaudiArabia = CountryType(188); // SA
  413. cSolomonIslands = CountryType(189); // SB
  414. cSeychelles = CountryType(190); // SC
  415. cSudan = CountryType(191); // SD
  416. cStHelena = CountryType(192); // SH
  417. cSlovenia = CountryType(193); // SI
  418. cSvalbardAndJanMayenIslands = CountryType(194); // SJ
  419. cSlovakia = CountryType(195); // SK
  420. cSierraLeone = CountryType(196); // SL
  421. cSanMarino = CountryType(197); // SM
  422. cSenegal = CountryType(198); // SN
  423. cSomalia = CountryType(199); // SO
  424. cSuriname = CountryType(200); // SR
  425. cSaoTomeAndPrincipe = CountryType(201); // ST
  426. cElSalvador = CountryType(202); // SV
  427. cSyranArabRepublic = CountryType(203); // SY
  428. cSwaziland = CountryType(204); // SZ
  429. cTurksAndCaicosIslands = CountryType(205); // TC
  430. cChad = CountryType(206); // TD
  431. cFrenchSouthernTerritories = CountryType(207); // TF
  432. cTogo = CountryType(208); // TG
  433. cTajikistan = CountryType(209); // TJ
  434. cTokelau = CountryType(210); // TK
  435. cTurkmenistan = CountryType(211); // TM
  436. cTunisia = CountryType(212); // TN
  437. cTonga = CountryType(213); // TO
  438. cEastTimor = CountryType(214); // TP
  439. cTurkey = CountryType(215); // TR
  440. cTrinidadAndTobago = CountryType(216); // TT
  441. cTuvalu = CountryType(217); // TV
  442. cTanzania = CountryType(218); // TZ
  443. cUkraine = CountryType(219); // UA
  444. cUganda = CountryType(220); // UG
  445. cUnitedStatesMinorOutlyingIslands = CountryType(221); // UM
  446. cUruguay = CountryType(222); // UY
  447. cUzbekistan = CountryType(223); // UZ
  448. cHolySee = CountryType(224); // VA
  449. cStVincentAndTheGrenadines = CountryType(225); // VC
  450. cVenezuela = CountryType(226); // VE
  451. cBritishVirginIslands = CountryType(227); // VG
  452. cUSVirginIslands = CountryType(228); // VI
  453. cVietNam = CountryType(229); // VN
  454. cVanuatu = CountryType(230); // VU
  455. cWallisAndFutunaIslands = CountryType(231); // WF
  456. cSamoa = CountryType(232); // WS
  457. cYemen = CountryType(233); // YE
  458. cMayotte = CountryType(234); // YT
  459. cYugoslavia = CountryType(235); // YU
  460. cSouthAfrica = CountryType(236); // ZA
  461. cZambia = CountryType(237); // ZM
  462. cZimbabwe = CountryType(238); // ZW
  463. (* Various character encodings supported by the PalmOS. Actually these
  464. are a mixture of character sets (repetoires or coded character sets
  465. in Internet lingo) and character encodings (CES - character encoding
  466. standard). Many, however, are some of both (e.g. CP932 is the Shift-JIS
  467. encoding of the JIS character set + Microsoft's extensions).
  468. The following character set values are used by:
  469. a) Palm devices
  470. b) Palm wireless servers
  471. WARNING! Be aware that a device supporting a new character set
  472. will require some character set definition and maybe
  473. some development on the wireless server side.
  474. *)
  475. // Unknown to this version of PalmOS.
  476. charEncodingUnknown = CharEncodingType(0);
  477. // Maximum character encoding _currently_ defined
  478. charEncodingMax = CharEncodingType(77);
  479. // Latin Palm OS character encoding, and subsets.
  480. // PalmOS version of CP1252
  481. charEncodingPalmLatin = CharEncodingType(3);
  482. // Windows variant of 8859-1
  483. charEncodingCP1252 = CharEncodingType(7);
  484. // ISO 8859 Part 1
  485. charEncodingISO8859_1 = CharEncodingType(2);
  486. // ISO 646-1991
  487. charEncodingAscii = CharEncodingType(1);
  488. // Japanese Palm OS character encoding, and subsets.
  489. // PalmOS version of CP932
  490. charEncodingPalmSJIS = CharEncodingType(5);
  491. // Windows variant of ShiftJIS
  492. charEncodingCP932 = CharEncodingType(8);
  493. // Encoding for JIS 0208-1990 + 1-byte katakana
  494. charEncodingShiftJIS = CharEncodingType(4);
  495. // Unicode character encodings
  496. charEncodingUCS2 = CharEncodingType(9);
  497. charEncodingUTF8 = CharEncodingType(6);
  498. charEncodingUTF7 = CharEncodingType(24);
  499. charEncodingUTF16 = CharEncodingType(75);
  500. charEncodingUTF16BE = CharEncodingType(76);
  501. charEncodingUTF16LE = CharEncodingType(77);
  502. // Latin character encodings
  503. charEncodingCP850 = CharEncodingType(12);
  504. charEncodingCP437 = CharEncodingType(13);
  505. charEncodingCP865 = CharEncodingType(14);
  506. charEncodingCP860 = CharEncodingType(15);
  507. charEncodingCP861 = CharEncodingType(16);
  508. charEncodingCP863 = CharEncodingType(17);
  509. charEncodingCP775 = CharEncodingType(18);
  510. charEncodingMacIslande = CharEncodingType(19);
  511. charEncodingMacintosh = CharEncodingType(20);
  512. charEncodingCP1257 = CharEncodingType(21);
  513. charEncodingISO8859_3 = CharEncodingType(22);
  514. charEncodingISO8859_4 = CharEncodingType(23);
  515. // Extended Latin character encodings
  516. charEncodingISO8859_2 = CharEncodingType(26);
  517. charEncodingCP1250 = CharEncodingType(27);
  518. charEncodingCP852 = CharEncodingType(28);
  519. charEncodingXKamenicky = CharEncodingType(29);
  520. charEncodingMacXCroate = CharEncodingType(30);
  521. charEncodingMacXLat2 = CharEncodingType(31);
  522. charEncodingMacXRomania = CharEncodingType(32);
  523. // Japanese character encodings
  524. charEncodingEucJp = CharEncodingType(25);
  525. charEncodingISO2022Jp = CharEncodingType(10);
  526. charEncodingXAutoJp = CharEncodingType(11);
  527. // Greek character encodings
  528. charEncodingISO8859_7 = CharEncodingType(33);
  529. charEncodingCP1253 = CharEncodingType(34);
  530. charEncodingCP869 = CharEncodingType(35);
  531. charEncodingCP737 = CharEncodingType(36);
  532. charEncodingMacXGr = CharEncodingType(37);
  533. // Cyrillic character encodings
  534. charEncodingCP1251 = CharEncodingType(38);
  535. charEncodingISO8859_5 = CharEncodingType(39);
  536. charEncodingKoi8R = CharEncodingType(40);
  537. charEncodingKoi8 = CharEncodingType(41);
  538. charEncodingCP855 = CharEncodingType(42);
  539. charEncodingCP866 = CharEncodingType(43);
  540. charEncodingMacCyr = CharEncodingType(44);
  541. charEncodingMacUkraine = CharEncodingType(45);
  542. // Turkish character encodings
  543. charEncodingCP1254 = CharEncodingType(46);
  544. charEncodingISO8859_9 = CharEncodingType(47);
  545. charEncodingCP857 = CharEncodingType(48);
  546. charEncodingMacTurc = CharEncodingType(49);
  547. charEncodingCP853 = CharEncodingType(50);
  548. // Arabic character encodings
  549. charEncodingISO8859_6 = CharEncodingType(51);
  550. charEncodingAsmo708 = CharEncodingType(52);
  551. charEncodingCP1256 = CharEncodingType(53);
  552. charEncodingCP864 = CharEncodingType(54);
  553. charEncodingAsmo708Plus = CharEncodingType(55);
  554. charEncodingAsmo708Fr = CharEncodingType(56);
  555. charEncodingMacAra = CharEncodingType(57);
  556. // Chinese character encodings
  557. charEncodingGB2312 = CharEncodingType(58);
  558. charEncodingHZ = CharEncodingType(59);
  559. charEncodingBig5 = CharEncodingType(60);
  560. // Vietnamese character encodings
  561. charEncodingViscii = CharEncodingType(61);
  562. charEncodingViqr = CharEncodingType(62);
  563. charEncodingVncii = CharEncodingType(63);
  564. charEncodingVietnet = CharEncodingType(65);
  565. charEncodingCP1258 = CharEncodingType(66);
  566. // Korean character encodings
  567. charEncodingKsc5601 = CharEncodingType(67);
  568. charEncodingCP949 = CharEncodingType(68);
  569. charEncodingISO2022Kr = CharEncodingType(69);
  570. // Hebrew character encodings
  571. charEncodingISO8859_8I = CharEncodingType(70);
  572. charEncodingISO8859_8 = CharEncodingType(71);
  573. charEncodingCP1255 = CharEncodingType(72);
  574. charEncodingCP1255V = CharEncodingType(73);
  575. // Thai character encodings
  576. charEncodingTis620 = CharEncodingType(74);
  577. charEncodingCP874 = CharEncodingType(64);
  578. implementation
  579. end.