Aracılığıyla paylaş


locale::name

Depolanan yerel adını döndürür.

string name( ) const;

Dönüş Değeri

Yerel ayar adını vererek bir dize.

Örnek

// locale_name.cpp
// compile with: /EHsc
#include <iostream>
#include <string>
#include <locale>

using namespace std;

int main( ) 
{
   locale loc1( "german" );
   locale loc2 = locale::global( loc1 );
   cout << "The name of the previous locale is: " 
        << loc2.name( ) << "." << endl;
   cout << "The name of the current locale is: " 
        << loc1.name( ) << "." << endl;
}
  
  

Gereksinimler

Başlık: <locale>

Namespace: std

Ayrıca bkz.

Başvuru

locale Class