std::locale::global
Aus cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody>| definiert in Header <locale>
|
||
static locale global( const locale& loc ); |
||
Ersetzt die globale C + + Locale mit
loc, die alle zukünftigen Anrufe an die std::locale Standardkonstruktor wird nun wieder eine Kopie des loc bedeutet. Wenn loc einen Namen hat, ersetzt auch die C locale als ob durch std::setlocale(LC_ALL, loc.name().c_str());. Diese Funktion ist der einzige Weg, um die globale C + + locale, die sonst entspricht std::locale::classic() beim Programmstart ist zu ändern .Original:
Replaces the global C++ locale with
loc, which means all future calls to the std::locale default constructor will now return a copy of loc. If loc has a name, also replaces the C locale as if by std::setlocale(LC_ALL, loc.name().c_str());. This function is the only way to modify the global C++ locale, which is otherwise equivalent to std::locale::classic() at program startup.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Parameter
| loc | - | die neue globale C + + locale
Original: the new global C++ locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Rückgabewert
Der vorherige Wert des globalen C + + locale .
Original:
The previous value of the global C++ locale.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Beispiel
| This section is incomplete Reason: no example |
Siehe auch
baut eine neue locale Original: constructs a new locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) | |
[statisch] |
erhält einen Verweis auf die "C"-Locale Original: obtains a reference to the "C" locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public static Elementfunktion) |
empfängt und setzt die aktuelle C locale Original: gets and sets the current C locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) | |