PageRenderTime 279ms CodeModel.GetById 131ms app.highlight 63ms RepoModel.GetById 78ms app.codeStats 0ms

/src/libtomahawk/infosystem/infoplugins/generic/chartsplugin_data_p.h

http://github.com/tomahawk-player/tomahawk
C++ Header | 805 lines | 773 code | 13 blank | 19 comment | 9 complexity | 9fec1bf7c3740aea65f64b03241aada6 MD5 | raw file
  1/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
  2 *
  3 *   Copyright 2011, Leo Franchi <lfranchi@kde.org>
  4 *   Parts copied from qlocale_data_p.h, copyright 2011 Nokia Corporation and/or its subsidiary(-ies).
  5 *
  6 *   Tomahawk is free software: you can redistribute it and/or modify
  7 *   it under the terms of the GNU General Public License as published by
  8 *   the Free Software Foundation, either version 3 of the License, or
  9 *   (at your option) any later version.
 10 *
 11 *   Tomahawk is distributed in the hope that it will be useful,
 12 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 13 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 14 *   GNU General Public License for more details.
 15 *
 16 *   You should have received a copy of the GNU General Public License
 17 *   along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
 18 */
 19#ifndef CHARTSPLUGIN_DATA_P_H
 20#define CHARTSPLUGIN_DATA_P_H
 21
 22#include <QtCore/qchar.h>
 23#include <QLocale>
 24
 25namespace Tomahawk {
 26namespace CountryUtils {
 27
 28static const unsigned char country_code_list[] =
 29"  \0" // AnyCountry
 30"AF\0" // Afghanistan
 31"AL\0" // Albania
 32"DZ\0" // Algeria
 33"AS\0" // AmericanSamoa
 34"AD\0" // Andorra
 35"AO\0" // Angola
 36"AI\0" // Anguilla
 37"AQ\0" // Antarctica
 38"AG\0" // AntiguaAndBarbuda
 39"AR\0" // Argentina
 40"AM\0" // Armenia
 41"AW\0" // Aruba
 42"AU\0" // Australia
 43"AT\0" // Austria
 44"AZ\0" // Azerbaijan
 45"BS\0" // Bahamas
 46"BH\0" // Bahrain
 47"BD\0" // Bangladesh
 48"BB\0" // Barbados
 49"BY\0" // Belarus
 50"BE\0" // Belgium
 51"BZ\0" // Belize
 52"BJ\0" // Benin
 53"BM\0" // Bermuda
 54"BT\0" // Bhutan
 55"BO\0" // Bolivia
 56"BA\0" // BosniaAndHerzegowina
 57"BW\0" // Botswana
 58"BV\0" // BouvetIsland
 59"BR\0" // Brazil
 60"IO\0" // BritishIndianOceanTerritory
 61"BN\0" // BruneiDarussalam
 62"BG\0" // Bulgaria
 63"BF\0" // BurkinaFaso
 64"BI\0" // Burundi
 65"KH\0" // Cambodia
 66"CM\0" // Cameroon
 67"CA\0" // Canada
 68"CV\0" // CapeVerde
 69"KY\0" // CaymanIslands
 70"CF\0" // CentralAfricanRepublic
 71"TD\0" // Chad
 72"CL\0" // Chile
 73"CN\0" // China
 74"CX\0" // ChristmasIsland
 75"CC\0" // CocosIslands
 76"CO\0" // Colombia
 77"KM\0" // Comoros
 78"CD\0" // DemocraticRepublicOfCongo
 79"CG\0" // PeoplesRepublicOfCongo
 80"CK\0" // CookIslands
 81"CR\0" // CostaRica
 82"CI\0" // IvoryCoast
 83"HR\0" // Croatia
 84"CU\0" // Cuba
 85"CY\0" // Cyprus
 86"CZ\0" // CzechRepublic
 87"DK\0" // Denmark
 88"DJ\0" // Djibouti
 89"DM\0" // Dominica
 90"DO\0" // DominicanRepublic
 91"TL\0" // EastTimor
 92"EC\0" // Ecuador
 93"EG\0" // Egypt
 94"SV\0" // ElSalvador
 95"GQ\0" // EquatorialGuinea
 96"ER\0" // Eritrea
 97"EE\0" // Estonia
 98"ET\0" // Ethiopia
 99"FK\0" // FalklandIslands
100"FO\0" // FaroeIslands
101"FJ\0" // Fiji
102"FI\0" // Finland
103"FR\0" // France
104"FX\0" // MetropolitanFrance
105"GF\0" // FrenchGuiana
106"PF\0" // FrenchPolynesia
107"TF\0" // FrenchSouthernTerritories
108"GA\0" // Gabon
109"GM\0" // Gambia
110"GE\0" // Georgia
111"DE\0" // Germany
112"GH\0" // Ghana
113"GI\0" // Gibraltar
114"GR\0" // Greece
115"GL\0" // Greenland
116"GD\0" // Grenada
117"GP\0" // Guadeloupe
118"GU\0" // Guam
119"GT\0" // Guatemala
120"GN\0" // Guinea
121"GW\0" // GuineaBissau
122"GY\0" // Guyana
123"HT\0" // Haiti
124"HM\0" // HeardAndMcDonaldIslands
125"HN\0" // Honduras
126"HK\0" // HongKong
127"HU\0" // Hungary
128"IS\0" // Iceland
129"IN\0" // India
130"ID\0" // Indonesia
131"IR\0" // Iran
132"IQ\0" // Iraq
133"IE\0" // Ireland
134"IL\0" // Israel
135"IT\0" // Italy
136"JM\0" // Jamaica
137"JP\0" // Japan
138"JO\0" // Jordan
139"KZ\0" // Kazakhstan
140"KE\0" // Kenya
141"KI\0" // Kiribati
142"KP\0" // DemocraticRepublicOfKorea
143"KR\0" // RepublicOfKorea
144"KW\0" // Kuwait
145"KG\0" // Kyrgyzstan
146"LA\0" // Lao
147"LV\0" // Latvia
148"LB\0" // Lebanon
149"LS\0" // Lesotho
150"LR\0" // Liberia
151"LY\0" // LibyanArabJamahiriya
152"LI\0" // Liechtenstein
153"LT\0" // Lithuania
154"LU\0" // Luxembourg
155"MO\0" // Macau
156"MK\0" // Macedonia
157"MG\0" // Madagascar
158"MW\0" // Malawi
159"MY\0" // Malaysia
160"MV\0" // Maldives
161"ML\0" // Mali
162"MT\0" // Malta
163"MH\0" // MarshallIslands
164"MQ\0" // Martinique
165"MR\0" // Mauritania
166"MU\0" // Mauritius
167"YT\0" // Mayotte
168"MX\0" // Mexico
169"FM\0" // Micronesia
170"MD\0" // Moldova
171"MC\0" // Monaco
172"MN\0" // Mongolia
173"MS\0" // Montserrat
174"MA\0" // Morocco
175"MZ\0" // Mozambique
176"MM\0" // Myanmar
177"NA\0" // Namibia
178"NR\0" // Nauru
179"NP\0" // Nepal
180"NL\0" // Netherlands
181"AN\0" // NetherlandsAntilles
182"NC\0" // NewCaledonia
183"NZ\0" // NewZealand
184"NI\0" // Nicaragua
185"NE\0" // Niger
186"NG\0" // Nigeria
187"NU\0" // Niue
188"NF\0" // NorfolkIsland
189"MP\0" // NorthernMarianaIslands
190"NO\0" // Norway
191"OM\0" // Oman
192"PK\0" // Pakistan
193"PW\0" // Palau
194"PS\0" // PalestinianTerritory
195"PA\0" // Panama
196"PG\0" // PapuaNewGuinea
197"PY\0" // Paraguay
198"PE\0" // Peru
199"PH\0" // Philippines
200"PN\0" // Pitcairn
201"PL\0" // Poland
202"PT\0" // Portugal
203"PR\0" // PuertoRico
204"QA\0" // Qatar
205"RE\0" // Reunion
206"RO\0" // Romania
207"RU\0" // RussianFederation
208"RW\0" // Rwanda
209"KN\0" // SaintKittsAndNevis
210"LC\0" // StLucia
211"VC\0" // StVincentAndTheGrenadines
212"WS\0" // Samoa
213"SM\0" // SanMarino
214"ST\0" // SaoTomeAndPrincipe
215"SA\0" // SaudiArabia
216"SN\0" // Senegal
217"SC\0" // Seychelles
218"SL\0" // SierraLeone
219"SG\0" // Singapore
220"SK\0" // Slovakia
221"SI\0" // Slovenia
222"SB\0" // SolomonIslands
223"SO\0" // Somalia
224"ZA\0" // SouthAfrica
225"GS\0" // SouthGeorgiaAndTheSouthSandwichIslands
226"ES\0" // Spain
227"LK\0" // SriLanka
228"SH\0" // StHelena
229"PM\0" // StPierreAndMiquelon
230"SD\0" // Sudan
231"SR\0" // Suriname
232"SJ\0" // SvalbardAndJanMayenIslands
233"SZ\0" // Swaziland
234"SE\0" // Sweden
235"CH\0" // Switzerland
236"SY\0" // SyrianArabRepublic
237"TW\0" // Taiwan
238"TJ\0" // Tajikistan
239"TZ\0" // Tanzania
240"TH\0" // Thailand
241"TG\0" // Togo
242"TK\0" // Tokelau
243"TO\0" // Tonga
244"TT\0" // TrinidadAndTobago
245"TN\0" // Tunisia
246"TR\0" // Turkey
247"TM\0" // Turkmenistan
248"TC\0" // TurksAndCaicosIslands
249"TV\0" // Tuvalu
250"UG\0" // Uganda
251"UA\0" // Ukraine
252"AE\0" // UnitedArabEmirates
253"GB\0" // UnitedKingdom
254"US\0" // UnitedStates
255"UM\0" // UnitedStatesMinorOutlyingIslands
256"UY\0" // Uruguay
257"UZ\0" // Uzbekistan
258"VU\0" // Vanuatu
259"VA\0" // VaticanCityState
260"VE\0" // Venezuela
261"VN\0" // VietNam
262"VG\0" // BritishVirginIslands
263"VI\0" // USVirginIslands
264"WF\0" // WallisAndFutunaIslands
265"EH\0" // WesternSahara
266"YE\0" // Yemen
267"YU\0" // Yugoslavia
268"ZM\0" // Zambia
269"ZW\0" // Zimbabwe
270"CS\0" // SerbiaAndMontenegro
271"ME\0" // Montenegro
272"RS\0" // Serbia
273"BL\0" // Saint Barthelemy
274"MF\0" // Saint Martin
275"419" // LatinAmericaAndTheCaribbean
276;
277
278
279static const char country_name_list[] =
280"Default\0"
281"Afghanistan\0"
282"Albania\0"
283"Algeria\0"
284"AmericanSamoa\0"
285"Andorra\0"
286"Angola\0"
287"Anguilla\0"
288"Antarctica\0"
289"AntiguaAndBarbuda\0"
290"Argentina\0"
291"Armenia\0"
292"Aruba\0"
293"Australia\0"
294"Austria\0"
295"Azerbaijan\0"
296"Bahamas\0"
297"Bahrain\0"
298"Bangladesh\0"
299"Barbados\0"
300"Belarus\0"
301"Belgium\0"
302"Belize\0"
303"Benin\0"
304"Bermuda\0"
305"Bhutan\0"
306"Bolivia\0"
307"BosniaAndHerzegowina\0"
308"Botswana\0"
309"BouvetIsland\0"
310"Brazil\0"
311"BritishIndianOceanTerritory\0"
312"BruneiDarussalam\0"
313"Bulgaria\0"
314"BurkinaFaso\0"
315"Burundi\0"
316"Cambodia\0"
317"Cameroon\0"
318"Canada\0"
319"CapeVerde\0"
320"CaymanIslands\0"
321"CentralAfricanRepublic\0"
322"Chad\0"
323"Chile\0"
324"China\0"
325"ChristmasIsland\0"
326"CocosIslands\0"
327"Colombia\0"
328"Comoros\0"
329"DemocraticRepublicOfCongo\0"
330"PeoplesRepublicOfCongo\0"
331"CookIslands\0"
332"CostaRica\0"
333"IvoryCoast\0"
334"Croatia\0"
335"Cuba\0"
336"Cyprus\0"
337"CzechRepublic\0"
338"Denmark\0"
339"Djibouti\0"
340"Dominica\0"
341"DominicanRepublic\0"
342"EastTimor\0"
343"Ecuador\0"
344"Egypt\0"
345"ElSalvador\0"
346"EquatorialGuinea\0"
347"Eritrea\0"
348"Estonia\0"
349"Ethiopia\0"
350"FalklandIslands\0"
351"FaroeIslands\0"
352"Fiji\0"
353"Finland\0"
354"France\0"
355"MetropolitanFrance\0"
356"FrenchGuiana\0"
357"FrenchPolynesia\0"
358"FrenchSouthernTerritories\0"
359"Gabon\0"
360"Gambia\0"
361"Georgia\0"
362"Germany\0"
363"Ghana\0"
364"Gibraltar\0"
365"Greece\0"
366"Greenland\0"
367"Grenada\0"
368"Guadeloupe\0"
369"Guam\0"
370"Guatemala\0"
371"Guinea\0"
372"GuineaBissau\0"
373"Guyana\0"
374"Haiti\0"
375"HeardAndMcDonaldIslands\0"
376"Honduras\0"
377"HongKong\0"
378"Hungary\0"
379"Iceland\0"
380"India\0"
381"Indonesia\0"
382"Iran\0"
383"Iraq\0"
384"Ireland\0"
385"Israel\0"
386"Italy\0"
387"Jamaica\0"
388"Japan\0"
389"Jordan\0"
390"Kazakhstan\0"
391"Kenya\0"
392"Kiribati\0"
393"DemocraticRepublicOfKorea\0"
394"RepublicOfKorea\0"
395"Kuwait\0"
396"Kyrgyzstan\0"
397"Lao\0"
398"Latvia\0"
399"Lebanon\0"
400"Lesotho\0"
401"Liberia\0"
402"LibyanArabJamahiriya\0"
403"Liechtenstein\0"
404"Lithuania\0"
405"Luxembourg\0"
406"Macau\0"
407"Macedonia\0"
408"Madagascar\0"
409"Malawi\0"
410"Malaysia\0"
411"Maldives\0"
412"Mali\0"
413"Malta\0"
414"MarshallIslands\0"
415"Martinique\0"
416"Mauritania\0"
417"Mauritius\0"
418"Mayotte\0"
419"Mexico\0"
420"Micronesia\0"
421"Moldova\0"
422"Monaco\0"
423"Mongolia\0"
424"Montserrat\0"
425"Morocco\0"
426"Mozambique\0"
427"Myanmar\0"
428"Namibia\0"
429"Nauru\0"
430"Nepal\0"
431"Netherlands\0"
432"NetherlandsAntilles\0"
433"NewCaledonia\0"
434"NewZealand\0"
435"Nicaragua\0"
436"Niger\0"
437"Nigeria\0"
438"Niue\0"
439"NorfolkIsland\0"
440"NorthernMarianaIslands\0"
441"Norway\0"
442"Oman\0"
443"Pakistan\0"
444"Palau\0"
445"PalestinianTerritory\0"
446"Panama\0"
447"PapuaNewGuinea\0"
448"Paraguay\0"
449"Peru\0"
450"Philippines\0"
451"Pitcairn\0"
452"Poland\0"
453"Portugal\0"
454"PuertoRico\0"
455"Qatar\0"
456"Reunion\0"
457"Romania\0"
458"RussianFederation\0"
459"Rwanda\0"
460"SaintKittsAndNevis\0"
461"StLucia\0"
462"StVincentAndTheGrenadines\0"
463"Samoa\0"
464"SanMarino\0"
465"SaoTomeAndPrincipe\0"
466"SaudiArabia\0"
467"Senegal\0"
468"Seychelles\0"
469"SierraLeone\0"
470"Singapore\0"
471"Slovakia\0"
472"Slovenia\0"
473"SolomonIslands\0"
474"Somalia\0"
475"SouthAfrica\0"
476"SouthGeorgiaAndTheSouthSandwichIslands\0"
477"Spain\0"
478"SriLanka\0"
479"StHelena\0"
480"StPierreAndMiquelon\0"
481"Sudan\0"
482"Suriname\0"
483"SvalbardAndJanMayenIslands\0"
484"Swaziland\0"
485"Sweden\0"
486"Switzerland\0"
487"SyrianArabRepublic\0"
488"Taiwan\0"
489"Tajikistan\0"
490"Tanzania\0"
491"Thailand\0"
492"Togo\0"
493"Tokelau\0"
494"Tonga\0"
495"TrinidadAndTobago\0"
496"Tunisia\0"
497"Turkey\0"
498"Turkmenistan\0"
499"TurksAndCaicosIslands\0"
500"Tuvalu\0"
501"Uganda\0"
502"Ukraine\0"
503"UnitedArabEmirates\0"
504"UnitedKingdom\0"
505"UnitedStates\0"
506"UnitedStatesMinorOutlyingIslands\0"
507"Uruguay\0"
508"Uzbekistan\0"
509"Vanuatu\0"
510"VaticanCityState\0"
511"Venezuela\0"
512"VietNam\0"
513"BritishVirginIslands\0"
514"USVirginIslands\0"
515"WallisAndFutunaIslands\0"
516"WesternSahara\0"
517"Yemen\0"
518"Yugoslavia\0"
519"Zambia\0"
520"Zimbabwe\0"
521"SerbiaAndMontenegro\0"
522"Montenegro\0"
523"Serbia\0"
524"Saint Barthelemy\0"
525"Saint Martin\0"
526"LatinAmericaAndTheCaribbean\0"
527;
528
529static const quint16 country_name_index[] = {
530    0, // AnyCountry
531    8, // Afghanistan
532    20, // Albania
533    28, // Algeria
534    36, // AmericanSamoa
535    50, // Andorra
536    58, // Angola
537    65, // Anguilla
538    74, // Antarctica
539    85, // AntiguaAndBarbuda
540    103, // Argentina
541    113, // Armenia
542    121, // Aruba
543    127, // Australia
544    137, // Austria
545    145, // Azerbaijan
546    156, // Bahamas
547    164, // Bahrain
548    172, // Bangladesh
549    183, // Barbados
550    192, // Belarus
551    200, // Belgium
552    208, // Belize
553    215, // Benin
554    221, // Bermuda
555    229, // Bhutan
556    236, // Bolivia
557    244, // BosniaAndHerzegowina
558    265, // Botswana
559    274, // BouvetIsland
560    287, // Brazil
561    294, // BritishIndianOceanTerritory
562    322, // BruneiDarussalam
563    339, // Bulgaria
564    348, // BurkinaFaso
565    360, // Burundi
566    368, // Cambodia
567    377, // Cameroon
568    386, // Canada
569    393, // CapeVerde
570    403, // CaymanIslands
571    417, // CentralAfricanRepublic
572    440, // Chad
573    445, // Chile
574    451, // China
575    457, // ChristmasIsland
576    473, // CocosIslands
577    486, // Colombia
578    495, // Comoros
579    503, // DemocraticRepublicOfCongo
580    529, // PeoplesRepublicOfCongo
581    552, // CookIslands
582    564, // CostaRica
583    574, // IvoryCoast
584    585, // Croatia
585    593, // Cuba
586    598, // Cyprus
587    605, // CzechRepublic
588    619, // Denmark
589    627, // Djibouti
590    636, // Dominica
591    645, // DominicanRepublic
592    663, // EastTimor
593    673, // Ecuador
594    681, // Egypt
595    687, // ElSalvador
596    698, // EquatorialGuinea
597    715, // Eritrea
598    723, // Estonia
599    731, // Ethiopia
600    740, // FalklandIslands
601    756, // FaroeIslands
602    769, // Fiji
603    774, // Finland
604    782, // France
605    789, // MetropolitanFrance
606    808, // FrenchGuiana
607    821, // FrenchPolynesia
608    837, // FrenchSouthernTerritories
609    863, // Gabon
610    869, // Gambia
611    876, // Georgia
612    884, // Germany
613    892, // Ghana
614    898, // Gibraltar
615    908, // Greece
616    915, // Greenland
617    925, // Grenada
618    933, // Guadeloupe
619    944, // Guam
620    949, // Guatemala
621    959, // Guinea
622    966, // GuineaBissau
623    979, // Guyana
624    986, // Haiti
625    992, // HeardAndMcDonaldIslands
626    1016, // Honduras
627    1025, // HongKong
628    1034, // Hungary
629    1042, // Iceland
630    1050, // India
631    1056, // Indonesia
632    1066, // Iran
633    1071, // Iraq
634    1076, // Ireland
635    1084, // Israel
636    1091, // Italy
637    1097, // Jamaica
638    1105, // Japan
639    1111, // Jordan
640    1118, // Kazakhstan
641    1129, // Kenya
642    1135, // Kiribati
643    1144, // DemocraticRepublicOfKorea
644    1170, // RepublicOfKorea
645    1186, // Kuwait
646    1193, // Kyrgyzstan
647    1204, // Lao
648    1208, // Latvia
649    1215, // Lebanon
650    1223, // Lesotho
651    1231, // Liberia
652    1239, // LibyanArabJamahiriya
653    1260, // Liechtenstein
654    1274, // Lithuania
655    1284, // Luxembourg
656    1295, // Macau
657    1301, // Macedonia
658    1311, // Madagascar
659    1322, // Malawi
660    1329, // Malaysia
661    1338, // Maldives
662    1347, // Mali
663    1352, // Malta
664    1358, // MarshallIslands
665    1374, // Martinique
666    1385, // Mauritania
667    1396, // Mauritius
668    1406, // Mayotte
669    1414, // Mexico
670    1421, // Micronesia
671    1432, // Moldova
672    1440, // Monaco
673    1447, // Mongolia
674    1456, // Montserrat
675    1467, // Morocco
676    1475, // Mozambique
677    1486, // Myanmar
678    1494, // Namibia
679    1502, // Nauru
680    1508, // Nepal
681    1514, // Netherlands
682    1526, // NetherlandsAntilles
683    1546, // NewCaledonia
684    1559, // NewZealand
685    1570, // Nicaragua
686    1580, // Niger
687    1586, // Nigeria
688    1594, // Niue
689    1599, // NorfolkIsland
690    1613, // NorthernMarianaIslands
691    1636, // Norway
692    1643, // Oman
693    1648, // Pakistan
694    1657, // Palau
695    1663, // PalestinianTerritory
696    1684, // Panama
697    1691, // PapuaNewGuinea
698    1706, // Paraguay
699    1715, // Peru
700    1720, // Philippines
701    1732, // Pitcairn
702    1741, // Poland
703    1748, // Portugal
704    1757, // PuertoRico
705    1768, // Qatar
706    1774, // Reunion
707    1782, // Romania
708    1790, // RussianFederation
709    1808, // Rwanda
710    1815, // SaintKittsAndNevis
711    1834, // StLucia
712    1842, // StVincentAndTheGrenadines
713    1868, // Samoa
714    1874, // SanMarino
715    1884, // SaoTomeAndPrincipe
716    1903, // SaudiArabia
717    1915, // Senegal
718    1923, // Seychelles
719    1934, // SierraLeone
720    1946, // Singapore
721    1956, // Slovakia
722    1965, // Slovenia
723    1974, // SolomonIslands
724    1989, // Somalia
725    1997, // SouthAfrica
726    2009, // SouthGeorgiaAndTheSouthSandwichIslands
727    2048, // Spain
728    2054, // SriLanka
729    2063, // StHelena
730    2072, // StPierreAndMiquelon
731    2092, // Sudan
732    2098, // Suriname
733    2107, // SvalbardAndJanMayenIslands
734    2134, // Swaziland
735    2144, // Sweden
736    2151, // Switzerland
737    2163, // SyrianArabRepublic
738    2182, // Taiwan
739    2189, // Tajikistan
740    2200, // Tanzania
741    2209, // Thailand
742    2218, // Togo
743    2223, // Tokelau
744    2231, // Tonga
745    2237, // TrinidadAndTobago
746    2255, // Tunisia
747    2263, // Turkey
748    2270, // Turkmenistan
749    2283, // TurksAndCaicosIslands
750    2305, // Tuvalu
751    2312, // Uganda
752    2319, // Ukraine
753    2327, // UnitedArabEmirates
754    2346, // UnitedKingdom
755    2360, // UnitedStates
756    2373, // UnitedStatesMinorOutlyingIslands
757    2406, // Uruguay
758    2414, // Uzbekistan
759    2425, // Vanuatu
760    2433, // VaticanCityState
761    2450, // Venezuela
762    2460, // VietNam
763    2468, // BritishVirginIslands
764    2489, // USVirginIslands
765    2505, // WallisAndFutunaIslands
766    2528, // WesternSahara
767    2542, // Yemen
768    2548, // Yugoslavia
769    2559, // Zambia
770    2566, // Zimbabwe
771    2575, // SerbiaAndMontenegro
772    2595, // Montenegro
773    2606, // Serbia
774    2613, // Saint Barthelemy
775    2630, // Saint Martin
776    2643, // LatinAmericaAndTheCaribbean
777};
778
779// Assumes that code is a 2 letter code
780static QString fullCountryFromCode(const QString& countryCode)
781{
782    ushort uc1 = countryCode[0].toUpper().unicode();
783    ushort uc2 = countryCode[1].toUpper().unicode();
784    ushort uc3 = QChar('\0').unicode(); // No, not dealign with LatinAmericaAndTheCaribbean for convenience
785
786    const unsigned char *c = country_code_list;
787    for (; *c != 0; c += 3) {
788        if (uc1 == c[0] && uc2 == c[1] && uc3 == c[2])
789        {
790            uint country = (uint)((c - country_code_list)/3);
791
792            if (country > uint(QLocale::LastCountry))
793                return QLatin1String("Unknown");
794
795            return QString(country_name_list + country_name_index[country]);
796        }
797    }
798
799    return QString("Unknown");
800}
801
802}
803}
804
805#endif