Zorba
The XQuery Processor
Documentation
Live Demo
Modules
Download
Tools
Blog
Code
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
include
zorba
locale.h
Go to the documentation of this file.
1
/*
2
* Copyright 2006-2008 The FLWOR Foundation.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef ZORBA_LOCALE_API_H
18
#define ZORBA_LOCALE_API_H
19
20
namespace
zorba {
21
namespace
locale {
22
23
///////////////////////////////////////////////////////////////////////////
24
25
/**
26
* Defines constants for all ISO 639-1 language codes.
27
*/
28
namespace
iso639_1 {
29
enum
type
{
30
unknown
,
31
aa
,
///< Afar
32
ab
,
///< Abkhazian
33
ae
,
///< Avestan
34
af
,
///< Afrikaans
35
ak
,
///< Akan
36
am
,
///< Amharic
37
an
,
///< Aragonese
38
ar
,
///< Arabic
39
as
,
///< Assamese
40
av
,
///< Avaric
41
ay
,
///< Aymara
42
az
,
///< Azerbaijani
43
ba
,
///< Bashkir
44
be
,
///< Byelorussian
45
bg
,
///< Bulgarian
46
bh
,
///< Bihari
47
bi
,
///< Bislama
48
bm
,
///< Bambara
49
bn
,
///< Bengali; Bangla
50
bo
,
///< Tibetan
51
br
,
///< Breton
52
bs
,
///< Bosnian
53
ca
,
///< Catalan
54
ce
,
///< Chechen
55
ch
,
///< Chamorro
56
co
,
///< Corsican
57
cr
,
///< Cree
58
cs
,
///< Czech
59
cu
,
///< Church Slavic; Church Slavonic
60
cv
,
///< Chuvash
61
cy
,
///< Welsh
62
da
,
///< Danish
63
de
,
///< German
64
dv
,
///< Divehi
65
dz
,
///< Bhutani
66
ee
,
///< Ewe
67
el
,
///< Greek
68
en
,
///< English
69
eo
,
///< Esperanto
70
es
,
///< Spanish
71
et
,
///< Estonian
72
eu
,
///< Basque
73
fa
,
///< Persian
74
ff
,
///< Fulah
75
fi
,
///< Finnish
76
fj
,
///< Fiji
77
fo
,
///< Faroese
78
fr
,
///< French
79
fy
,
///< Frisian
80
ga
,
///< Irish
81
gd
,
///< Scots Gaelic
82
gl
,
///< Galician
83
gn
,
///< Guarani
84
gu
,
///< Gujarati
85
gv
,
///< Manx
86
ha
,
///< Hausa
87
he
,
///< Hebrew (formerly iw)
88
hi
,
///< Hindi
89
ho
,
///< Hiri Motu
90
hr
,
///< Croatian
91
ht
,
///< Haitian Creole
92
hu
,
///< Hungarian
93
hy
,
///< Armenian
94
hz
,
///< Herero
95
ia
,
///< Interlingua
96
id
,
///< Indonesian (formerly in)
97
ie
,
///< Interlingue
98
ig
,
///< Igbo
99
ii
,
///< Nuosu
100
ik
,
///< Inupiak
101
io
,
///< Ido
102
is
,
///< Icelandic
103
it
,
///< Italian
104
iu
,
///< Inuktitut
105
ja
,
///< Japanese
106
jv
,
///< Javanese
107
ka
,
///< Georgian
108
kg
,
///< Kongo
109
ki
,
///< Gikuyu
110
kj
,
///< Kuanyama
111
kk
,
///< Kazakh
112
kl
,
///< Greenlandic
113
km
,
///< Cambodian
114
kn
,
///< Kannada
115
ko
,
///< Korean
116
kr
,
///< Kanuri
117
ks
,
///< Kashmiri
118
ku
,
///< Kurdish
119
kv
,
///< Komi
120
kw
,
///< Cornish
121
ky
,
///< Kirghiz
122
la
,
///< Latin
123
lb
,
///< Letzeburgesch
124
lg
,
///< Ganda
125
li
,
///< Limburgan; Limburger; Limburgish
126
ln
,
///< Lingala
127
lo
,
///< Laothian
128
lt
,
///< Lithuanian
129
lu
,
///< Luba-Katanga
130
lv
,
///< Latvian
131
mg
,
///< Malagasy
132
mh
,
///< Marshallese
133
mi
,
///< Maori
134
mk
,
///< Macedonian
135
ml
,
///< Malayalam
136
mn
,
///< Mongolian
137
mo
,
///< Moldavian
138
mr
,
///< Marathi
139
ms
,
///< Malay
140
mt
,
///< Maltese
141
my
,
///< Burmese
142
na
,
///< Nauru
143
nb
,
///< Norwegian Bokmal
144
nd
,
///< Ndebele, North
145
ne
,
///< Nepali
146
ng
,
///< Ndonga
147
nl
,
///< Dutch
148
nn
,
///< Norwegian Nynorsk
149
no
,
///< Norwegian
150
nr
,
///< Ndebele, South
151
nv
,
///< Navajo; Navaho
152
ny
,
///< Chichewa; Chewa; Nyanja
153
oc
,
///< Occitan
154
oj
,
///< Ojibwa
155
om
,
///< Oromo
156
or_
,
///< Oriya
157
os
,
///< Ossetian; Ossetic
158
pa
,
///< Panjabi; Punjabi
159
pi
,
///< Pali
160
pl
,
///< Polish
161
ps
,
///< Pashto, Pushto
162
pt
,
///< Portuguese
163
qu
,
///< Quechua
164
rm
,
///< Romansh
165
rn
,
///< Kirundi
166
ro
,
///< Romanian
167
ru
,
///< Russian
168
rw
,
///< Kinyarwanda
169
sa
,
///< Sanskrit
170
sc
,
///< Sardinian
171
sd
,
///< Sindhi
172
se
,
///< Northern Sami
173
sg
,
///< Sangho
174
sh
,
///< Serbo-Croatian
175
si
,
///< Sinhalese
176
sk
,
///< Slovak
177
sl
,
///< Slovenian
178
sm
,
///< Samoan
179
sn
,
///< Shona
180
so
,
///< Somali
181
sq
,
///< Albanian
182
sr
,
///< Serbian
183
ss
,
///< Siswati
184
st
,
///< Sesotho
185
su
,
///< Sundanese
186
sv
,
///< Swedish
187
sw
,
///< Swahili
188
ta
,
///< Tamil
189
te
,
///< Telugu
190
tg
,
///< Tajik
191
th
,
///< Thai
192
ti
,
///< Tigrinya
193
tk
,
///< Turkmen
194
tl
,
///< Tagalog
195
tn
,
///< Setswana
196
to
,
///< Tonga
197
tr
,
///< Turkish
198
ts
,
///< Tsonga
199
tt
,
///< Tatar
200
tw
,
///< Twi
201
ty
,
///< Tahitian
202
ug
,
///< Uighur
203
uk
,
///< Ukrainian
204
ur
,
///< Urdu
205
uz
,
///< Uzbek
206
ve
,
///< Venda
207
vi
,
///< Vietnamese
208
vo
,
///< Volapuk
209
wa
,
///< Walloon
210
wo
,
///< Wolof
211
xh
,
///< Xhosa
212
yi
,
///< Yiddish
213
yo
,
///< Yoruba
214
za
,
///< Zhuang
215
zh
,
///< Chinese
216
zu
,
///< Zulu
217
NUM_ENTRIES
218
};
219
}
220
221
/**
222
* Defines constants for all ISO 3166-1 country codes.
223
*/
224
namespace
iso3166_1 {
225
enum
type
{
226
unknown
,
227
AD
,
///< Andorra
228
AE
,
///< United Arab Emirates
229
AF
,
///< Afghanistan
230
AG
,
///< Antigua and Barbuda
231
AI
,
///< Anguilla
232
AL
,
///< Albania
233
AM
,
///< Armenia
234
AN
,
///< Netherlands Antilles
235
AO
,
///< Angola
236
AQ
,
///< Antarctica
237
AR
,
///< Argentina
238
AS
,
///< American Samoa
239
AT
,
///< Austria
240
AU
,
///< Australia
241
AW
,
///< Aruba
242
AX
,
///< Aland Islands
243
AZ
,
///< Azerbaijan
244
BA
,
///< Bosnia and Herzegovina
245
BB
,
///< Barbados
246
BD
,
///< Bangladesh
247
BE
,
///< Belgium
248
BF
,
///< Burkina Faso
249
BG
,
///< Bulgaria
250
BH
,
///< Bahrain
251
BI
,
///< Burundi
252
BJ
,
///< Benin
253
BL
,
///< Saint Barthelemy
254
BM
,
///< Bermuda
255
BN
,
///< Brunei Darussalam
256
BO
,
///< Bolivia
257
BR
,
///< Brazil
258
BS
,
///< Bahamas
259
BT
,
///< Bhutan
260
BV
,
///< Bouvet Island
261
BW
,
///< Botswana
262
BY
,
///< Belarus
263
BZ
,
///< Belize
264
CA
,
///< Canada
265
CC
,
///< Cocos Islands
266
CD
,
///< Congo, the Democratic Republic of the
267
CF
,
///< Central African Republic
268
CG
,
///< Congo
269
CH
,
///< Switzerland
270
CI
,
///< Cote D'Ivoire
271
CK
,
///< Cook Islands
272
CL
,
///< Chile
273
CM
,
///< Cameroon
274
CN
,
///< China
275
CO
,
///< Colombia
276
CR
,
///< Costa Rica
277
CU
,
///< Cuba
278
CV
,
///< Cape Verde
279
CX
,
///< Christmas Island
280
CY
,
///< Cyprus
281
CZ
,
///< Czech Republic
282
DE
,
///< Germany
283
DJ
,
///< Djibouti
284
DK
,
///< Denmark
285
DM
,
///< Dominica
286
DO
,
///< Dominican Republic
287
DZ
,
///< Algeria
288
EC
,
///< Ecuador
289
EE
,
///< Estonia
290
EG
,
///< Egypt
291
EH
,
///< Western Sahara
292
ER
,
///< Eritrea
293
ES
,
///< Spain
294
ET
,
///< Ethiopia
295
FI
,
///< Finland
296
FJ
,
///< Fiji
297
FK
,
///< Falkland Islands
298
FM
,
///< Micronesia
299
FO
,
///< Faroe Islands
300
FR
,
///< France
301
GA
,
///< Gabon
302
GB
,
///< United Kingdom
303
GD
,
///< Grenada
304
GE
,
///< Georgia
305
GF
,
///< French Guiana
306
GG
,
///< Guernsey
307
GH
,
///< Ghana
308
GI
,
///< Gibraltar
309
GL
,
///< Greenland
310
GM
,
///< Gambia
311
GN
,
///< Guinea
312
GP
,
///< Guadeloupe
313
GQ
,
///< Equatorial Guinea
314
GR
,
///< Greece
315
GS
,
///< South Georgia and the South Sandwich Islands
316
GT
,
///< Guatemala
317
GU
,
///< Guam
318
GW
,
///< Guinea-Bissau
319
GY
,
///< Guyana
320
HK
,
///< Hong Kong
321
HM
,
///< Heard Island and Mcdonald Islands
322
HN
,
///< Honduras
323
HR
,
///< Croatia
324
HT
,
///< Haiti
325
HU
,
///< Hungary
326
ID
,
///< Indonesia
327
IE
,
///< Ireland
328
IL
,
///< Israel
329
IM
,
///< Isle of Man
330
IN_
,
///< India [without '_', it clashes with an identifier on Windows]
331
IO
,
///< British Indian Ocean Territory
332
IQ
,
///< Iraq
333
IR
,
///< Iran
334
IS
,
///< Iceland
335
IT
,
///< Italy
336
JE
,
///< Jersey
337
JM
,
///< Jamaica
338
JO
,
///< Jordan
339
JP
,
///< Japan
340
KE
,
///< Kenya
341
KG
,
///< Kyrgyzstan
342
KH
,
///< Cambodia
343
KI
,
///< Kiribati
344
KM
,
///< Comoros
345
KN
,
///< Saint Kitts and Nevis
346
KP
,
///< Korea (Democratic People's Republic)
347
KR
,
///< Korea
348
KW
,
///< Kuwait
349
KY
,
///< Cayman Islands
350
KZ
,
///< Kazakhstan
351
LA
,
///< Lao
352
LB
,
///< Lebanon
353
LC
,
///< Saint Lucia
354
LI
,
///< Liechtenstein
355
LK
,
///< Sri Lanka
356
LR
,
///< Liberia
357
LS
,
///< Lesotho
358
LT
,
///< Lithuania
359
LU
,
///< Luxembourg
360
LV
,
///< Latvia
361
LY
,
///< Libyan Arab Jamahiriya
362
MA
,
///< Morocco
363
MC
,
///< Monaco
364
MD
,
///< Moldova
365
ME
,
///< Montenegro
366
MF
,
///< Saint Martin
367
MG
,
///< Madagascar
368
MH
,
///< Marshall Islands
369
MK
,
///< Macedonia
370
ML
,
///< Mali
371
MM
,
///< Myanmar
372
MN
,
///< Mongolia
373
MO
,
///< Macao
374
MP
,
///< Northern Mariana Islands
375
MQ
,
///< Martinique
376
MR
,
///< Mauritania
377
MS
,
///< Montserrat
378
MT
,
///< Malta
379
MU
,
///< Mauritius
380
MV
,
///< Maldives
381
MW
,
///< Malawi
382
MX
,
///< Mexico
383
MY
,
///< Malaysia
384
MZ
,
///< Mozambique
385
NA
,
///< Namibia
386
NC
,
///< New Caledonia
387
NE
,
///< Niger
388
NF
,
///< Norfolk Island
389
NG
,
///< Nigeria
390
NI
,
///< Nicaragua
391
NL
,
///< Netherlands
392
NO
,
///< Norway
393
NP
,
///< Nepal
394
NR
,
///< Nauru
395
NU
,
///< Niue
396
NZ
,
///< New Zealand
397
OM
,
///< Oman
398
PA
,
///< Panama
399
PE
,
///< Peru
400
PF
,
///< French Polynesia
401
PG
,
///< Papua New Guinea
402
PH
,
///< Philippines
403
PK
,
///< Pakistan
404
PL
,
///< Poland
405
PM
,
///< Saint Pierre and Miquelon
406
PN
,
///< Pitcairn
407
PR
,
///< Puerto Rico
408
PS
,
///< Palestinian Territory
409
PT
,
///< Portugal
410
PW
,
///< Palau
411
PY
,
///< Paraguay
412
QA
,
///< Qatar
413
RE
,
///< Reunion
414
RO
,
///< Romania
415
RS
,
///< Serbia
416
RU
,
///< Russian Federation
417
RW
,
///< Rwanda
418
SA
,
///< Saudi Arabia
419
SB
,
///< Solomon Islands
420
SC
,
///< Seychelles
421
SD
,
///< Sudan
422
SE
,
///< Sweden
423
SG
,
///< Singapore
424
SH
,
///< Saint Helena
425
SI
,
///< Slovenia
426
SJ
,
///< Svalbard and Jan Mayen
427
SK
,
///< Slovakia
428
SL
,
///< Sierra Leone
429
SM
,
///< San Marino
430
SN
,
///< Senegal
431
SO
,
///< Somalia
432
SR
,
///< Suriname
433
ST
,
///< Sao Tome and Principe
434
SV
,
///< El Salvador
435
SY
,
///< Syria
436
SZ
,
///< Swaziland
437
TC
,
///< Turks and Caicos Islands
438
TD
,
///< Chad
439
TF
,
///< French Southern Territories
440
TG
,
///< Togo
441
TH
,
///< Thailand
442
TJ
,
///< Tajikistan
443
TK
,
///< Tokelau
444
TL
,
///< Timor-Leste
445
TM
,
///< Turkmenistan
446
TN
,
///< Tunisia
447
TO
,
///< Tonga
448
TR
,
///< Turkey
449
TT
,
///< Trinidad and Tobago
450
TV
,
///< Tuvalu
451
TW
,
///< Taiwan
452
TZ
,
///< Tanzania
453
UA
,
///< Ukraine
454
UG
,
///< Uganda
455
UM
,
///< United States Minor Outlying Islands
456
US
,
///< United States
457
UY
,
///< Uruguay
458
UZ
,
///< Uzbekistan
459
VA
,
///< Vatican
460
VC
,
///< Saint Vincent and the Grenadines
461
VE
,
///< Venezuela
462
VG
,
///< Virgin Islands (British)
463
VI
,
///< Virgin Islands (USA)
464
VN
,
///< Viet Nam
465
VU
,
///< Vanuatu
466
WF
,
///< Wallis and Futuna
467
WS
,
///< Samoa
468
YE
,
///< Yemen
469
YT
,
///< Mayotte
470
ZA
,
///< South Africa
471
ZM
,
///< Zambia
472
ZW
,
///< Zimbabwe
473
NUM_ENTRIES
474
};
475
}
476
477
///////////////////////////////////////////////////////////////////////////
478
479
}
// namespace locale
480
}
// namespace zorba
481
482
#endif
/* ZORBA_LOCALE_API_H */
483
/* vim:set et sw=2 ts=2: */