CountryCode.cc

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #include <iostream>
00013 #include <map>
00014 
00015 #include "zypp/base/Logger.h"
00016 #include "zypp/base/String.h"
00017 #include "zypp/base/Gettext.h"
00018 
00019 #include "zypp/CountryCode.h"
00020 
00021 using std::endl;
00022 
00024 namespace zypp
00025 { 
00026 
00028   namespace
00029   { 
00030 
00032     struct CodeMaps // singleton
00033     {
00034       typedef std::map<std::string,std::string> CodeMap;
00035       typedef CodeMap::const_iterator Index;
00036 
00038       static Index getIndex( const std::string & code_r )
00039       {
00040         static CodeMaps _maps; // the singleton instance
00041         return _maps.lookup( code_r );
00042       }
00043 
00044     private:
00048       CodeMaps();
00049 
00051       inline Index lookup( const std::string & code_r );
00052 
00054       inline Index lookupCode( const std::string & code_r );
00055 
00056     private:
00058       CodeMap iso3166;
00060       CodeMap others;
00061     };
00062 
00063     inline CodeMaps::Index CodeMaps::lookupCode( const std::string & code_r )
00064     {
00065       switch ( code_r.size() )
00066         {
00067         case 2:
00068           {
00069             Index it = iso3166.find( code_r );
00070             if ( it != iso3166.end() )
00071               return it;
00072           }
00073           break;
00074         }
00075       // not found: check others
00076       // !!! not found at all returns others.end()
00077       return others.find( code_r );
00078     }
00079 
00080     inline CodeMaps::Index CodeMaps::lookup( const std::string & code_r )
00081     {
00082       Index it = lookupCode( code_r );
00083       if ( it != others.end() )
00084         return it;
00085 
00086       // not found: Remember a new code
00087       CodeMap::value_type nval( code_r, std::string() );
00088 
00089       if ( code_r.size() != 2 )
00090         WAR << "Malformed CountryCode '" << code_r << "' (expect 2-letter)" << endl;
00091 
00092       std::string lcode( str::toUpper( code_r ) );
00093       if ( lcode != code_r )
00094         {
00095           WAR << "Malformed CountryCode '" << code_r << "' (not upper case)" << endl;
00096           // but maybe we're lucky with the upper case code
00097           // and find a country name.
00098           it = lookupCode( lcode );
00099           if ( it != others.end() )
00100             nval.second = it->second;
00101         }
00102 
00103       MIL << "Remember CountryCode '" << code_r << "': '" << nval.second << "'" << endl;
00104       return others.insert( nval ).first;
00105     }
00106 
00108   } // namespace
00110 
00112   //
00113   //    CLASS NAME : CountryCode::Impl
00114   //
00119   struct CountryCode::Impl
00120   {
00121     Impl()
00122     : _index( CodeMaps::getIndex( std::string() ) )
00123     {}
00124 
00125     Impl( const std::string & code_r )
00126     : _index( CodeMaps::getIndex( code_r ) )
00127     {}
00128 
00129     std::string code() const
00130     { return _index->first; }
00131 
00132     std::string name() const {
00133       if ( _index->second.empty() )
00134         {
00135           std::string ret( _("Unknown country: ") );
00136           ret += "'";
00137           ret += _index->first;
00138           ret += "'";
00139           return ret;
00140         }
00141       return _( _index->second.c_str() );
00142     }
00143 
00144   private:
00146     CodeMaps::Index _index;
00147 
00148   public:
00150     static shared_ptr<Impl> nullimpl()
00151     {
00152       static shared_ptr<Impl> _nullimpl( new Impl );
00153       return _nullimpl;
00154     }
00155   };
00157 
00159   //
00160   //    CLASS NAME : CountryCode
00161   //
00163 
00164   const CountryCode CountryCode::noCode;
00165 
00167   //
00168   //    METHOD NAME : CountryCode::CountryCode
00169   //    METHOD TYPE : Ctor
00170   //
00171   CountryCode::CountryCode()
00172   : _pimpl( Impl::nullimpl() )
00173   {}
00174 
00176   //
00177   //    METHOD NAME : CountryCode::CountryCode
00178   //    METHOD TYPE : Ctor
00179   //
00180   CountryCode::CountryCode( const std::string & code_r )
00181   : _pimpl( new Impl( code_r ) )
00182   {}
00183 
00185   //
00186   //    METHOD NAME : CountryCode::~CountryCode
00187   //    METHOD TYPE : Dtor
00188   //
00189   CountryCode::~CountryCode()
00190   {}
00191 
00193   //
00194   //    METHOD NAME : CountryCode::code
00195   //    METHOD TYPE : std::string
00196   //
00197   std::string CountryCode::code() const
00198   { return _pimpl->code(); }
00199 
00201   //
00202   //    METHOD NAME : CountryCode::name
00203   //    METHOD TYPE : std::string
00204   //
00205   std::string CountryCode::name() const
00206   { return _pimpl->name(); }
00207 
00209   namespace
00210   { 
00211 
00212     CodeMaps::CodeMaps()
00213     {
00214       // Defined CountryCode constants
00215       others[""]        = N_( "noCode" );
00216 
00217       iso3166["AD"] = N_( "Andorra" );                          // :AND:020:
00218       iso3166["AE"] = N_( "United Arab Emirates" );             // :ARE:784:
00219       iso3166["AF"] = N_( "Afghanistan" );                      // :AFG:004:
00220       iso3166["AG"] = N_( "Antigua and Barbuda" );              // :ATG:028:
00221       iso3166["AI"] = N_( "Anguilla" );                         // :AIA:660:
00222       iso3166["AL"] = N_( "Albania" );                          // :ALB:008:
00223       iso3166["AM"] = N_( "Armenia" );                          // :ARM:051:
00224       iso3166["AN"] = N_( "Netherlands Antilles" );             // :ANT:530:
00225       iso3166["AO"] = N_( "Angola" );                           // :AGO:024:
00226       iso3166["AQ"] = N_( "Antarctica" );                       // :ATA:010:
00227       iso3166["AR"] = N_( "Argentina" );                        // :ARG:032:
00228       iso3166["AS"] = N_( "American Samoa" );                   // :ASM:016:
00229       iso3166["AT"] = N_( "Austria" );                          // :AUT:040:
00230       iso3166["AU"] = N_( "Australia" );                        // :AUS:036:
00231       iso3166["AW"] = N_( "Aruba" );                            // :ABW:533:
00232       iso3166["AX"] = N_( "Aland Islands" );                    // :ALA:248:
00233       iso3166["AZ"] = N_( "Azerbaijan" );                       // :AZE:031:
00234       iso3166["BA"] = N_( "Bosnia and Herzegovina" );           // :BIH:070:
00235       iso3166["BB"] = N_( "Barbados" );                         // :BRB:052:
00236       iso3166["BD"] = N_( "Bangladesh" );                       // :BGD:050:
00237       iso3166["BE"] = N_( "Belgium" );                          // :BEL:056:
00238       iso3166["BF"] = N_( "Burkina Faso" );                     // :BFA:854:
00239       iso3166["BG"] = N_( "Bulgaria" );                         // :BGR:100:
00240       iso3166["BH"] = N_( "Bahrain" );                          // :BHR:048:
00241       iso3166["BI"] = N_( "Burundi" );                          // :BDI:108:
00242       iso3166["BJ"] = N_( "Benin" );                            // :BEN:204:
00243       iso3166["BM"] = N_( "Bermuda" );                          // :BMU:060:
00244       iso3166["BN"] = N_( "Brunei Darussalam" );                // :BRN:096:
00245       iso3166["BO"] = N_( "Bolivia" );                          // :BOL:068:
00246       iso3166["BR"] = N_( "Brazil" );                           // :BRA:076:
00247       iso3166["BS"] = N_( "Bahamas" );                          // :BHS:044:
00248       iso3166["BT"] = N_( "Bhutan" );                           // :BTN:064:
00249       iso3166["BV"] = N_( "Bouvet Island" );                    // :BVT:074:
00250       iso3166["BW"] = N_( "Botswana" );                         // :BWA:072:
00251       iso3166["BY"] = N_( "Belarus" );                          // :BLR:112:
00252       iso3166["BZ"] = N_( "Belize" );                           // :BLZ:084:
00253       iso3166["CA"] = N_( "Canada" );                           // :CAN:124:
00254       iso3166["CC"] = N_( "Cocos (Keeling) Islands" );          // :CCK:166:
00255       iso3166["CD"] = N_( "Congo" );                            // :COD:180:
00256       iso3166["CF"] = N_( "Centruual African Republic" );       // :CAF:140:
00257       iso3166["CG"] = N_( "Congo" );                            // :COG:178:
00258       iso3166["CH"] = N_( "Switzerland" );                      // :CHE:756:
00259       iso3166["CI"] = N_( "Cote D'Ivoire" );                    // :CIV:384:
00260       iso3166["CK"] = N_( "Cook Islands" );                     // :COK:184:
00261       iso3166["CL"] = N_( "Chile" );                            // :CHL:152:
00262       iso3166["CM"] = N_( "Cameroon" );                         // :CMR:120:
00263       iso3166["CN"] = N_( "China" );                            // :CHN:156:
00264       iso3166["CO"] = N_( "Colombia" );                         // :COL:170:
00265       iso3166["CR"] = N_( "Costa Rica" );                       // :CRI:188:
00266       iso3166["CS"] = N_( "Serbia and Montenegro" );            // :SCG:891:
00267       iso3166["CU"] = N_( "Cuba" );                             // :CUB:192:
00268       iso3166["CV"] = N_( "Cape Verde" );                       // :CPV:132:
00269       iso3166["CX"] = N_( "Christmas Island" );                 // :CXR:162:
00270       iso3166["CY"] = N_( "Cyprus" );                           // :CYP:196:
00271       iso3166["CZ"] = N_( "Czech Republic" );                   // :CZE:203:
00272       iso3166["DE"] = N_( "Germany" );                          // :DEU:276:
00273       iso3166["DJ"] = N_( "Djibouti" );                         // :DJI:262:
00274       iso3166["DK"] = N_( "Denmark" );                          // :DNK:208:
00275       iso3166["DM"] = N_( "Dominica" );                         // :DMA:212:
00276       iso3166["DO"] = N_( "Dominican Republic" );               // :DOM:214:
00277       iso3166["DZ"] = N_( "Algeria" );                          // :DZA:012:
00278       iso3166["EC"] = N_( "Ecuador" );                          // :ECU:218:
00279       iso3166["EE"] = N_( "Estonia" );                          // :EST:233:
00280       iso3166["EG"] = N_( "Egypt" );                            // :EGY:818:
00281       iso3166["EH"] = N_( "Western Sahara" );                   // :ESH:732:
00282       iso3166["ER"] = N_( "Eritrea" );                          // :ERI:232:
00283       iso3166["ES"] = N_( "Spain" );                            // :ESP:724:
00284       iso3166["ET"] = N_( "Ethiopia" );                         // :ETH:231:
00285       iso3166["FI"] = N_( "Finland" );                          // :FIN:246:
00286       iso3166["FJ"] = N_( "Fiji" );                             // :FJI:242:
00287       iso3166["FK"] = N_( "Falkland Islands (Malvinas)" );      // :FLK:238:
00288       iso3166["FM"] = N_( "Federated States of Micronesia" );   // :FSM:583:
00289       iso3166["FO"] = N_( "Faroe Islands" );                    // :FRO:234:
00290       iso3166["FR"] = N_( "France" );                           // :FRA:250:
00291       iso3166["FX"] = N_( "Metropolitan France" );              // :FXX:249:
00292       iso3166["GA"] = N_( "Gabon" );                            // :GAB:266:
00293       iso3166["GB"] = N_( "United Kingdom" );                   // :GBR:826:
00294       iso3166["GD"] = N_( "Grenada" );                          // :GRD:308:
00295       iso3166["GE"] = N_( "Georgia" );                          // :GEO:268:
00296       iso3166["GF"] = N_( "French Guiana" );                    // :GUF:254:
00297       iso3166["GH"] = N_( "Ghana" );                            // :GHA:288:
00298       iso3166["GI"] = N_( "Gibraltar" );                        // :GIB:292:
00299       iso3166["GL"] = N_( "Greenland" );                        // :GRL:304:
00300       iso3166["GM"] = N_( "Gambia" );                           // :GMB:270:
00301       iso3166["GN"] = N_( "Guinea" );                           // :GIN:324:
00302       iso3166["GP"] = N_( "Guadeloupe" );                       // :GLP:312:
00303       iso3166["GQ"] = N_( "Equatorial Guinea" );                // :GNQ:226:
00304       iso3166["GR"] = N_( "Greece" );                           // :GRC:300:
00305       iso3166["GS"] = N_( "South Georgia and the South Sandwich Islands" );     // :SGS:239:
00306       iso3166["GT"] = N_( "Guatemala" );                        // :GTM:320:
00307       iso3166["GU"] = N_( "Guam" );                             // :GUM:316:
00308       iso3166["GW"] = N_( "Guinea-Bissau" );                    // :GNB:624:
00309       iso3166["GY"] = N_( "Guyana" );                           // :GUY:328:
00310       iso3166["HK"] = N_( "Hong Kong" );                        // :HKG:344:
00311       iso3166["HM"] = N_( "Heard Island and McDonald Islands" ); // :HMD:334:
00312       iso3166["HN"] = N_( "Honduras" );                         // :HND:340:
00313       iso3166["HR"] = N_( "Croatia" );                          // :HRV:191:
00314       iso3166["HT"] = N_( "Haiti" );                            // :HTI:332:
00315       iso3166["HU"] = N_( "Hungary" );                          // :HUN:348:
00316       iso3166["ID"] = N_( "Indonesia" );                        // :IDN:360:
00317       iso3166["IE"] = N_( "Ireland" );                          // :IRL:372:
00318       iso3166["IL"] = N_( "Israel" );                           // :ISR:376:
00319       iso3166["IN"] = N_( "India" );                            // :IND:356:
00320       iso3166["IO"] = N_( "British Indian Ocean Territory" );   // :IOT:086:
00321       iso3166["IQ"] = N_( "Iraq" );                             // :IRQ:368:
00322       iso3166["IR"] = N_( "Iran" );                             // :IRN:364:
00323       iso3166["IS"] = N_( "Iceland" );                          // :ISL:352:
00324       iso3166["IT"] = N_( "Italy" );                            // :ITA:380:
00325       iso3166["JM"] = N_( "Jamaica" );                          // :JAM:388:
00326       iso3166["JO"] = N_( "Jordan" );                           // :JOR:400:
00327       iso3166["JP"] = N_( "Japan" );                            // :JPN:392:
00328       iso3166["KE"] = N_( "Kenya" );                            // :KEN:404:
00329       iso3166["KG"] = N_( "Kyrgyzstan" );                       // :KGZ:417:
00330       iso3166["KH"] = N_( "Cambodia" );                         // :KHM:116:
00331       iso3166["KI"] = N_( "Kiribati" );                         // :KIR:296:
00332       iso3166["KM"] = N_( "Comoros" );                          // :COM:174:
00333       iso3166["KN"] = N_( "Saint Kitts and Nevis" );            // :KNA:659:
00334       iso3166["KP"] = N_( "North Korea" );                      // :PRK:408:
00335       iso3166["KR"] = N_( "South Korea" );                      // :KOR:410:
00336       iso3166["KW"] = N_( "Kuwait" );                           // :KWT:414:
00337       iso3166["KY"] = N_( "Cayman Islands" );                   // :CYM:136:
00338       iso3166["KZ"] = N_( "Kazakhstan" );                       // :KAZ:398:
00339       iso3166["LA"] = N_( "Lao People's Democratic Republic" ); // :LAO:418:
00340       iso3166["LB"] = N_( "Lebanon" );                          // :LBN:422:
00341       iso3166["LC"] = N_( "Saint Lucia" );                      // :LCA:662:
00342       iso3166["LI"] = N_( "Liechtenstein" );                    // :LIE:438:
00343       iso3166["LK"] = N_( "Sri Lanka" );                        // :LKA:144:
00344       iso3166["LR"] = N_( "Liberia" );                          // :LBR:430:
00345       iso3166["LS"] = N_( "Lesotho" );                          // :LSO:426:
00346       iso3166["LT"] = N_( "Lithuania" );                        // :LTU:440:
00347       iso3166["LU"] = N_( "Luxembourg" );                       // :LUX:442:
00348       iso3166["LV"] = N_( "Latvia" );                           // :LVA:428:
00349       iso3166["LY"] = N_( "Libya" );                            // :LBY:434:
00350       iso3166["MA"] = N_( "Morocco" );                          // :MAR:504:
00351       iso3166["MC"] = N_( "Monaco" );                           // :MCO:492:
00352       iso3166["MD"] = N_( "Moldova" );                          // :MDA:498:
00353       iso3166["MG"] = N_( "Madagascar" );                       // :MDG:450:
00354       iso3166["MH"] = N_( "Marshall Islands" );                 // :MHL:584:
00355       iso3166["MK"] = N_( "Macedonia" );                        // :MKD:807:
00356       iso3166["ML"] = N_( "Mali" );                             // :MLI:466:
00357       iso3166["MM"] = N_( "Myanmar" );                          // :MMR:104:
00358       iso3166["MN"] = N_( "Mongolia" );                         // :MNG:496:
00359       iso3166["MO"] = N_( "Macao" );                            // :MAC:446:
00360       iso3166["MP"] = N_( "Northern Mariana Islands" );         // :MNP:580:
00361       iso3166["MQ"] = N_( "Martinique" );                       // :MTQ:474:
00362       iso3166["MR"] = N_( "Mauritania" );                       // :MRT:478:
00363       iso3166["MS"] = N_( "Montserrat" );                       // :MSR:500:
00364       iso3166["MT"] = N_( "Malta" );                            // :MLT:470:
00365       iso3166["MU"] = N_( "Mauritius" );                        // :MUS:480:
00366       iso3166["MV"] = N_( "Maldives" );                         // :MDV:462:
00367       iso3166["MW"] = N_( "Malawi" );                           // :MWI:454:
00368       iso3166["MX"] = N_( "Mexico" );                           // :MEX:484:
00369       iso3166["MY"] = N_( "Malaysia" );                         // :MYS:458:
00370       iso3166["MZ"] = N_( "Mozambique" );                       // :MOZ:508:
00371       iso3166["NA"] = N_( "Namibia" );                          // :NAM:516:
00372       iso3166["NC"] = N_( "New Caledonia" );                    // :NCL:540:
00373       iso3166["NE"] = N_( "Niger" );                            // :NER:562:
00374       iso3166["NF"] = N_( "Norfolk Island" );                   // :NFK:574:
00375       iso3166["NG"] = N_( "Nigeria" );                          // :NGA:566:
00376       iso3166["NI"] = N_( "Nicaragua" );                        // :NIC:558:
00377       iso3166["NL"] = N_( "Netherlands" );                      // :NLD:528:
00378       iso3166["NO"] = N_( "Norway" );                           // :NOR:578:
00379       iso3166["NP"] = N_( "Nepal" );                            // :NPL:524:
00380       iso3166["NR"] = N_( "Nauru" );                            // :NRU:520:
00381       iso3166["NU"] = N_( "Niue" );                             // :NIU:570:
00382       iso3166["NZ"] = N_( "New Zealand" );                      // :NZL:554:
00383       iso3166["OM"] = N_( "Oman" );                             // :OMN:512:
00384       iso3166["PA"] = N_( "Panama" );                           // :PAN:591:
00385       iso3166["PE"] = N_( "Peru" );                             // :PER:604:
00386       iso3166["PF"] = N_( "French Polynesia" );                 // :PYF:258:
00387       iso3166["PG"] = N_( "Papua New Guinea" );                 // :PNG:598:
00388       iso3166["PH"] = N_( "Philippines" );                      // :PHL:608:
00389       iso3166["PK"] = N_( "Pakistan" );                         // :PAK:586:
00390       iso3166["PL"] = N_( "Poland" );                           // :POL:616:
00391       iso3166["PM"] = N_( "Saint Pierre and Miquelon" );        // :SPM:666:
00392       iso3166["PN"] = N_( "Pitcairn" );                         // :PCN:612:
00393       iso3166["PR"] = N_( "Puerto Rico" );                      // :PRI:630:
00394       iso3166["PS"] = N_( "Palestinian Territory" );            // :PSE:275:
00395       iso3166["PT"] = N_( "Portugal" );                         // :PRT:620:
00396       iso3166["PW"] = N_( "Palau" );                            // :PLW:585:
00397       iso3166["PY"] = N_( "Paraguay" );                         // :PRY:600:
00398       iso3166["QA"] = N_( "Qatar" );                            // :QAT:634:
00399       iso3166["RE"] = N_( "Reunion" );                          // :REU:638:
00400       iso3166["RO"] = N_( "Romania" );                          // :ROU:642:
00401       iso3166["RU"] = N_( "Russian Federation" );               // :RUS:643:
00402       iso3166["RW"] = N_( "Rwanda" );                           // :RWA:646:
00403       iso3166["SA"] = N_( "Saudi Arabia" );                     // :SAU:682:
00404       iso3166["SB"] = N_( "Solomon Islands" );                  // :SLB:090:
00405       iso3166["SC"] = N_( "Seychelles" );                       // :SYC:690:
00406       iso3166["SD"] = N_( "Sudan" );                            // :SDN:736:
00407       iso3166["SE"] = N_( "Sweden" );                           // :SWE:752:
00408       iso3166["SG"] = N_( "Singapore" );                        // :SGP:702:
00409       iso3166["SH"] = N_( "Saint Helena" );                     // :SHN:654:
00410       iso3166["SI"] = N_( "Slovenia" );                         // :SVN:705:
00411       iso3166["SJ"] = N_( "Svalbard and Jan Mayen" );           // :SJM:744:
00412       iso3166["SK"] = N_( "Slovakia" );                         // :SVK:703:
00413       iso3166["SL"] = N_( "Sierra Leone" );                     // :SLE:694:
00414       iso3166["SM"] = N_( "San Marino" );                       // :SMR:674:
00415       iso3166["SN"] = N_( "Senegal" );                          // :SEN:686:
00416       iso3166["SO"] = N_( "Somalia" );                          // :SOM:706:
00417       iso3166["SR"] = N_( "Suriname" );                         // :SUR:740:
00418       iso3166["ST"] = N_( "Sao Tome and Principe" );            // :STP:678:
00419       iso3166["SV"] = N_( "El Salvador" );                      // :SLV:222:
00420       iso3166["SY"] = N_( "Syria" );                            // :SYR:760:
00421       iso3166["SZ"] = N_( "Swaziland" );                        // :SWZ:748:
00422       iso3166["TC"] = N_( "Turks and Caicos Islands" );         // :TCA:796:
00423       iso3166["TD"] = N_( "Chad" );                             // :TCD:148:
00424       iso3166["TF"] = N_( "French Southern Territories" );      // :ATF:260:
00425       iso3166["TG"] = N_( "Togo" );                             // :TGO:768:
00426       iso3166["TH"] = N_( "Thailand" );                         // :THA:764:
00427       iso3166["TJ"] = N_( "Tajikistan" );                       // :TJK:762:
00428       iso3166["TK"] = N_( "Tokelau" );                          // :TKL:772:
00429       iso3166["TM"] = N_( "Turkmenistan" );                     // :TKM:795:
00430       iso3166["TN"] = N_( "Tunisia" );                          // :TUN:788:
00431       iso3166["TO"] = N_( "Tonga" );                            // :TON:776:
00432       iso3166["TL"] = N_( "East Timor" );                       // :TLS:626:
00433       iso3166["TR"] = N_( "Turkey" );                           // :TUR:792:
00434       iso3166["TT"] = N_( "Trinidad and Tobago" );              // :TTO:780:
00435       iso3166["TV"] = N_( "Tuvalu" );                           // :TUV:798:
00436       iso3166["TW"] = N_( "Taiwan" );                           // :TWN:158:
00437       iso3166["TZ"] = N_( "Tanzania" );                         // :TZA:834:
00438       iso3166["UA"] = N_( "Ukraine" );                          // :UKR:804:
00439       iso3166["UG"] = N_( "Uganda" );                           // :UGA:800:
00440       iso3166["UM"] = N_( "United States Minor Outlying Islands" );     // :UMI:581:
00441       iso3166["US"] = N_( "United States" );                    // :USA:840:
00442       iso3166["UY"] = N_( "Uruguay" );                          // :URY:858:
00443       iso3166["UZ"] = N_( "Uzbekistan" );                       // :UZB:860:
00444       iso3166["VA"] = N_( "Holy See (Vatican City State)" );    // :VAT:336:
00445       iso3166["VC"] = N_( "Saint Vincent and the Grenadines" ); // :VCT:670:
00446       iso3166["VE"] = N_( "Venezuela" );                        // :VEN:862:
00447       iso3166["VG"] = N_( "British Virgin Islands" );           // :VGB:092:
00448       iso3166["VI"] = N_( "Virgin Islands, U.S." );             // :VIR:850:
00449       iso3166["VN"] = N_( "Vietnam" );                          // :VNM:704:
00450       iso3166["VU"] = N_( "Vanuatu" );                          // :VUT:548:
00451       iso3166["WF"] = N_( "Wallis and Futuna" );                // :WLF:876:
00452       iso3166["WS"] = N_( "Samoa" );                            // :WSM:882:
00453       iso3166["YE"] = N_( "Yemen" );                            // :YEM:887:
00454       iso3166["YT"] = N_( "Mayotte" );                          // :MYT:175:
00455       iso3166["ZA"] = N_( "South Africa" );                     // :ZAF:710:
00456       iso3166["ZM"] = N_( "Zambia" );                           // :ZMB:894:
00457       iso3166["ZW"] = N_( "Zimbabwe" );                         // :ZWE:716:
00458     }
00459 
00461   } // namespace
00463 
00465 } // namespace zypp

Generated on Thu Jul 6 00:07:20 2006 for zypp by  doxygen 1.4.6