tolower
Converte un carattere in minuscolo.
template<Class CharType>
CharType tolower(
CharType _Ch,
const locale& _Loc
)
Parametri
_Ch
Il carattere da convertire in minuscolo._Loc
Le impostazioni locali che contengono il carattere da convertire.
Valore restituito
Il carattere convertito in minuscolo.
Note
La funzione di modello restituisce use_facet<tipo C<char> > (_Loc).tolower(_Ch).
Esempio
// locale_tolower.cpp
// compile with: /EHsc
#include <locale>
#include <iostream>
using namespace std;
int main( )
{
locale loc ( "German_Germany" );
char result1 = tolower ( 'H', loc );
cout << "The lower case of 'H' in the locale is: "
<< result1 << "." << endl;
char result2 = tolower ( 'h', loc );
cout << "The lower case of 'h' in the locale is: "
<< result2 << "." << endl;
char result3 = tolower ( '$', loc );
cout << "The lower case of '$' in the locale is: "
<< result3 << "." << endl;
}
Output
The lower case of 'H' in the locale is: h.
The lower case of 'h' in the locale is: h.
The lower case of '$' in the locale is: $.
Requisiti
intestazione: <locale>
Spazio dei nomi: deviazione standard