Merge lp:~paul-lucas/zorba/pjl-misc into lp:zorba

Proposed by Paul J. Lucas
Status: Merged
Approved by: Matthias Brantner
Approved revision: 11109
Merged at revision: 11278
Proposed branch: lp:~paul-lucas/zorba/pjl-misc
Merge into: lp:zorba
Diff against target: 671 lines (+318/-250)
7 files modified
include/zorba/dynamic_context.h (+21/-0)
include/zorba/locale.h (+256/-0)
src/api/dynamiccontextimpl.cpp (+12/-0)
src/api/dynamiccontextimpl.h (+7/-0)
src/context/dynamic_context.cpp (+4/-0)
src/context/dynamic_context.h (+18/-0)
src/zorbautils/locale.h (+0/-250)
To merge this branch: bzr merge lp:~paul-lucas/zorba/pjl-misc
Reviewer Review Type Date Requested Status
Matthias Brantner Approve
Paul J. Lucas Approve
Review via email: mp+152319@code.launchpad.net

Commit message

Added locale to dynamic context. (This is needed to implement format-date() correctly.)

Description of the change

Added locale to dynamic context. (This is needed to implement format-date() correctly.)

To post a comment you must log in.
Revision history for this message
Paul J. Lucas (paul-lucas) :
review: Approve
Revision history for this message
Matthias Brantner (matthias-brantner) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job pjl-misc-2013-03-08T05-00-48.853Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'include/zorba/dynamic_context.h'
--- include/zorba/dynamic_context.h 2013-02-07 17:24:36 +0000
+++ include/zorba/dynamic_context.h 2013-03-08 04:27:22 +0000
@@ -21,6 +21,7 @@
21#include <memory>21#include <memory>
2222
23#include <zorba/config.h>23#include <zorba/config.h>
24#include <zorba/locale.h>
24#include <zorba/api_shared_types.h>25#include <zorba/api_shared_types.h>
25#include <zorba/static_context_consts.h>26#include <zorba/static_context_consts.h>
26#include <zorba/xmldatamanager.h>27#include <zorba/xmldatamanager.h>
@@ -247,6 +248,26 @@
247 virtual Item248 virtual Item
248 getDefaultCollection() const = 0;249 getDefaultCollection() const = 0;
249250
251 /** \brief Sets the locale.
252 *
253 * @param aLang The language to set.
254 * @param aCountry The country to set.
255 */
256 virtual void
257 setLocale( locale::iso639_1::type aLang,
258 locale::iso3166_1::type aCountry ) = 0;
259
260 /** \brief Gets the locale.
261 *
262 * @param aLang A pointer to a \c iso639_1::type to receive the language.
263 * If \c null, this is not set.
264 * @param aCountry A pointer to a \c iso3166_1::type to receive the country.
265 * If \c null, this is not set.
266 */
267 virtual void
268 getLocale( locale::iso639_1::type *aLang,
269 locale::iso3166_1::type *aCountry ) const = 0;
270
250 /** \brief Add a name-value pair to this context.271 /** \brief Add a name-value pair to this context.
251 * The value can be accessed in the evaluate method272 * The value can be accessed in the evaluate method
252 * of external functions (see ContextualExternalFunction).273 * of external functions (see ContextualExternalFunction).
253274
=== modified file 'include/zorba/locale.h'
--- include/zorba/locale.h 2013-02-07 17:24:36 +0000
+++ include/zorba/locale.h 2013-03-08 04:27:22 +0000
@@ -218,6 +218,262 @@
218 };218 };
219 }219 }
220220
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
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
221 /////////////////////////////////////////////////////////////////////////// 477 ///////////////////////////////////////////////////////////////////////////
222478
223 } // namespace locale479 } // namespace locale
224480
=== modified file 'src/api/dynamiccontextimpl.cpp'
--- src/api/dynamiccontextimpl.cpp 2013-02-07 17:24:36 +0000
+++ src/api/dynamiccontextimpl.cpp 2013-03-08 04:27:22 +0000
@@ -675,6 +675,18 @@
675 return Item();675 return Item();
676}676}
677677
678/****************************************************************************//**
679
680********************************************************************************/
681void DynamicContextImpl::setLocale( locale::iso639_1::type aLang,
682 locale::iso3166_1::type aCountry ) {
683 theCtx->set_locale( aLang, aCountry );
684}
685
686void DynamicContextImpl::getLocale( locale::iso639_1::type *aLang,
687 locale::iso3166_1::type *aCountry ) const {
688 theCtx->get_locale( aLang, aCountry );
689}
678690
679/****************************************************************************//**691/****************************************************************************//**
680692
681693
=== modified file 'src/api/dynamiccontextimpl.h'
--- src/api/dynamiccontextimpl.h 2013-02-07 17:24:36 +0000
+++ src/api/dynamiccontextimpl.h 2013-03-08 04:27:22 +0000
@@ -144,6 +144,13 @@
144 virtual Item144 virtual Item
145 getDefaultCollection() const;145 getDefaultCollection() const;
146146
147 virtual void
148 setLocale( locale::iso639_1::type aLang, locale::iso3166_1::type aCountry );
149
150 virtual void
151 getLocale( locale::iso639_1::type *aLang,
152 locale::iso3166_1::type *aCountry ) const;
153
147 virtual bool154 virtual bool
148 addExternalFunctionParam(const String& aName, void* aValue);155 addExternalFunctionParam(const String& aName, void* aValue);
149156
150157
=== modified file 'src/context/dynamic_context.cpp'
--- src/context/dynamic_context.cpp 2013-02-26 04:12:43 +0000
+++ src/context/dynamic_context.cpp 2013-03-08 04:27:22 +0000
@@ -135,12 +135,16 @@
135 if(parent == NULL)135 if(parent == NULL)
136 {136 {
137 reset_current_date_time();137 reset_current_date_time();
138 theLang = locale::get_host_lang();
139 theCountry = locale::get_host_country();
138 }140 }
139 else141 else
140 {142 {
141 theCurrentDateTime = parent->theCurrentDateTime;143 theCurrentDateTime = parent->theCurrentDateTime;
142 theTimezone = parent->theTimezone;144 theTimezone = parent->theTimezone;
143 theDefaultCollectionUri = parent->theDefaultCollectionUri;145 theDefaultCollectionUri = parent->theDefaultCollectionUri;
146 theLang = parent->theLang;
147 theCountry = parent->theCountry;
144 }148 }
145}149}
146150
147151
=== modified file 'src/context/dynamic_context.h'
--- src/context/dynamic_context.h 2013-02-07 17:24:36 +0000
+++ src/context/dynamic_context.h 2013-03-08 04:27:22 +0000
@@ -21,6 +21,7 @@
2121
22#include "zorbautils/hashmap_zstring.h"22#include "zorbautils/hashmap_zstring.h"
23#include "zorbautils/hashmap_itemp.h"23#include "zorbautils/hashmap_itemp.h"
24#include "zorbautils/locale.h"
2425
25#include "common/shared_types.h"26#include "common/shared_types.h"
2627
@@ -138,6 +139,9 @@
138 //MODIFY139 //MODIFY
139 EnvVarMap * theEnvironmentVariables;140 EnvVarMap * theEnvironmentVariables;
140141
142 locale::iso639_1::type theLang;
143 locale::iso3166_1::type theCountry;
144
141public:145public:
142 double theDocLoadingUserTime;146 double theDocLoadingUserTime;
143 double theDocLoadingTime;147 double theDocLoadingTime;
@@ -171,6 +175,20 @@
171175
172 long get_implicit_timezone() const;176 long get_implicit_timezone() const;
173177
178 void set_locale( locale::iso639_1::type lang,
179 locale::iso3166_1::type country ) {
180 theLang = lang;
181 theCountry = country;
182 }
183
184 void get_locale( locale::iso639_1::type *lang,
185 locale::iso3166_1::type *country ) {
186 if ( lang )
187 *lang = theLang;
188 if ( country )
189 *country = theCountry;
190 }
191
174 const std::vector<VarValue>& get_variables() const { return theVarValues; }192 const std::vector<VarValue>& get_variables() const { return theVarValues; }
175193
176 void add_variable(ulong varid, store::Item_t& value);194 void add_variable(ulong varid, store::Item_t& value);
177195
=== modified file 'src/zorbautils/locale.h'
--- src/zorbautils/locale.h 2013-02-07 17:24:36 +0000
+++ src/zorbautils/locale.h 2013-03-08 04:27:22 +0000
@@ -30,256 +30,6 @@
30 /////////////////////////////////////////////////////////////////////////// 30 ///////////////////////////////////////////////////////////////////////////
3131
32 namespace iso3166_1 {32 namespace iso3166_1 {
33 enum type {
34 unknown,
35 AD, ///< Andorra
36 AE, ///< United Arab Emirates
37 AF, ///< Afghanistan
38 AG, ///< Antigua and Barbuda
39 AI, ///< Anguilla
40 AL, ///< Albania
41 AM, ///< Armenia
42 AN, ///< Netherlands Antilles
43 AO, ///< Angola
44 AQ, ///< Antarctica
45 AR, ///< Argentina
46 AS, ///< American Samoa
47 AT, ///< Austria
48 AU, ///< Australia
49 AW, ///< Aruba
50 AX, ///< Aland Islands
51 AZ, ///< Azerbaijan
52 BA, ///< Bosnia and Herzegovina
53 BB, ///< Barbados
54 BD, ///< Bangladesh
55 BE, ///< Belgium
56 BF, ///< Burkina Faso
57 BG, ///< Bulgaria
58 BH, ///< Bahrain
59 BI, ///< Burundi
60 BJ, ///< Benin
61 BL, ///< Saint Barthelemy
62 BM, ///< Bermuda
63 BN, ///< Brunei Darussalam
64 BO, ///< Bolivia
65 BR, ///< Brazil
66 BS, ///< Bahamas
67 BT, ///< Bhutan
68 BV, ///< Bouvet Island
69 BW, ///< Botswana
70 BY, ///< Belarus
71 BZ, ///< Belize
72 CA, ///< Canada
73 CC, ///< Cocos Islands
74 CD, ///< Congo
75 CF, ///< Central African Republic
76 CG, ///< Congo
77 CH, ///< Switzerland
78 CI, ///< Cote D'Ivoire
79 CK, ///< Cook Islands
80 CL, ///< Chile
81 CM, ///< Cameroon
82 CN, ///< China
83 CO, ///< Colombia
84 CR, ///< Costa Rica
85 CU, ///< Cuba
86 CV, ///< Cape Verde
87 CX, ///< Christmas Island
88 CY, ///< Cyprus
89 CZ, ///< Czech Republic
90 DE, ///< Germany
91 DJ, ///< Djibouti
92 DK, ///< Denmark
93 DM, ///< Dominica
94 DO, ///< Dominican Republic
95 DZ, ///< Algeria
96 EC, ///< Ecuador
97 EE, ///< Estonia
98 EG, ///< Egypt
99 EH, ///< Western Sahara
100 ER, ///< Eritrea
101 ES, ///< Spain
102 ET, ///< Ethiopia
103 FI, ///< Finland
104 FJ, ///< Fiji
105 FK, ///< Falkland Islands
106 FM, ///< Micronesia
107 FO, ///< Faroe Islands
108 FR, ///< France
109 GA, ///< Gabon
110 GB, ///< United Kingdom
111 GD, ///< Grenada
112 GE, ///< Georgia
113 GF, ///< French Guiana
114 GG, ///< Guernsey
115 GH, ///< Ghana
116 GI, ///< Gibraltar
117 GL, ///< Greenland
118 GM, ///< Gambia
119 GN, ///< Guinea
120 GP, ///< Guadeloupe
121 GQ, ///< Equatorial Guinea
122 GR, ///< Greece
123 GS, ///< South Georgia and the South Sandwich Islands
124 GT, ///< Guatemala
125 GU, ///< Guam
126 GW, ///< Guinea-Bissau
127 GY, ///< Guyana
128 HK, ///< Hong Kong
129 HM, ///< Heard Island and Mcdonald Islands
130 HN, ///< Honduras
131 HR, ///< Croatia
132 HT, ///< Haiti
133 HU, ///< Hungary
134 ID, ///< Indonesia
135 IE, ///< Ireland
136 IL, ///< Israel
137 IM, ///< Isle of Man
138 IN_, ///< India [without '_', it clashes with an identifier on Windows]
139 IO, ///< British Indian Ocean Territory
140 IQ, ///< Iraq
141 IR, ///< Iran
142 IS, ///< Iceland
143 IT, ///< Italy
144 JE, ///< Jersey
145 JM, ///< Jamaica
146 JO, ///< Jordan
147 JP, ///< Japan
148 KE, ///< Kenya
149 KG, ///< Kyrgyzstan
150 KH, ///< Cambodia
151 KI, ///< Kiribati
152 KM, ///< Comoros
153 KN, ///< Saint Kitts and Nevis
154 KP, ///< Korea (Democratic People's Republic)
155 KR, ///< Korea
156 KW, ///< Kuwait
157 KY, ///< Cayman Islands
158 KZ, ///< Kazakhstan
159 LA, ///< Lao
160 LB, ///< Lebanon
161 LC, ///< Saint Lucia
162 LI, ///< Liechtenstein
163 LK, ///< Sri Lanka
164 LR, ///< Liberia
165 LS, ///< Lesotho
166 LT, ///< Lithuania
167 LU, ///< Luxembourg
168 LV, ///< Latvia
169 LY, ///< Libyan Arab Jamahiriya
170 MA, ///< Morocco
171 MC, ///< Monaco
172 MD, ///< Moldova
173 ME, ///< Montenegro
174 MF, ///< Saint Martin
175 MG, ///< Madagascar
176 MH, ///< Marshall Islands
177 MK, ///< Macedonia
178 ML, ///< Mali
179 MM, ///< Myanmar
180 MN, ///< Mongolia
181 MO, ///< Macao
182 MP, ///< Northern Mariana Islands
183 MQ, ///< Martinique
184 MR, ///< Mauritania
185 MS, ///< Montserrat
186 MT, ///< Malta
187 MU, ///< Mauritius
188 MV, ///< Maldives
189 MW, ///< Malawi
190 MX, ///< Mexico
191 MY, ///< Malaysia
192 MZ, ///< Mozambique
193 NA, ///< Namibia
194 NC, ///< New Caledonia
195 NE, ///< Niger
196 NF, ///< Norfolk Island
197 NG, ///< Nigeria
198 NI, ///< Nicaragua
199 NL, ///< Netherlands
200 NO, ///< Norway
201 NP, ///< Nepal
202 NR, ///< Nauru
203 NU, ///< Niue
204 NZ, ///< New Zealand
205 OM, ///< Oman
206 PA, ///< Panama
207 PE, ///< Peru
208 PF, ///< French Polynesia
209 PG, ///< Papua New Guinea
210 PH, ///< Philippines
211 PK, ///< Pakistan
212 PL, ///< Poland
213 PM, ///< Saint Pierre and Miquelon
214 PN, ///< Pitcairn
215 PR, ///< Puerto Rico
216 PS, ///< Palestinian Territory
217 PT, ///< Portugal
218 PW, ///< Palau
219 PY, ///< Paraguay
220 QA, ///< Qatar
221 RE, ///< Reunion
222 RO, ///< Romania
223 RS, ///< Serbia
224 RU, ///< Russian Federation
225 RW, ///< Rwanda
226 SA, ///< Saudi Arabia
227 SB, ///< Solomon Islands
228 SC, ///< Seychelles
229 SD, ///< Sudan
230 SE, ///< Sweden
231 SG, ///< Singapore
232 SH, ///< Saint Helena
233 SI, ///< Slovenia
234 SJ, ///< Svalbard and Jan Mayen
235 SK, ///< Slovakia
236 SL, ///< Sierra Leone
237 SM, ///< San Marino
238 SN, ///< Senegal
239 SO, ///< Somalia
240 SR, ///< Suriname
241 ST, ///< Sao Tome and Principe
242 SV, ///< El Salvador
243 SY, ///< Syria
244 SZ, ///< Swaziland
245 TC, ///< Turks and Caicos Islands
246 TD, ///< Chad
247 TF, ///< French Southern Territories
248 TG, ///< Togo
249 TH, ///< Thailand
250 TJ, ///< Tajikistan
251 TK, ///< Tokelau
252 TL, ///< Timor-Leste
253 TM, ///< Turkmenistan
254 TN, ///< Tunisia
255 TO, ///< Tonga
256 TR, ///< Turkey
257 TT, ///< Trinidad and Tobago
258 TV, ///< Tuvalu
259 TW, ///< Taiwan
260 TZ, ///< Tanzania
261 UA, ///< Ukraine
262 UG, ///< Uganda
263 UM, ///< United States Minor Outlying Islands
264 US, ///< United States
265 UY, ///< Uruguay
266 UZ, ///< Uzbekistan
267 VA, ///< Vatican
268 VC, ///< Saint Vincent and the Grenadines
269 VE, ///< Venezuela
270 VG, ///< Virgin Islands (British)
271 VI, ///< Virgin Islands (USA)
272 VN, ///< Viet Nam
273 VU, ///< Vanuatu
274 WF, ///< Wallis and Futuna
275 WS, ///< Samoa
276 YE, ///< Yemen
277 YT, ///< Mayotte
278 ZA, ///< South Africa
279 ZM, ///< Zambia
280 ZW, ///< Zimbabwe
281 NUM_ENTRIES
282 };
283 extern char const *const string_of[];33 extern char const *const string_of[];
28434
285 /**35 /**

Subscribers

People subscribed via source and target branches