C ++ towlower () - Libreria standard C ++

La funzione towlower () in C ++ converte un dato carattere largo in minuscolo.

La funzione towlower () è definita nel file di intestazione.

prototipo towlower ()

 wint_t towlower (wint_t ch);

La funzione towlower () converte ch nella sua versione minuscola, se esiste. Se la versione minuscola di un carattere ampio non esiste, rimane invariata.

Le lettere maiuscole dalla A alla Z vengono convertite rispettivamente in lettere minuscole dalla a alla z.

Towlower () Parametri

  • ch: il carattere largo da convertire

Towlower () Restituisce il valore

  • La funzione towlower () restituisce una versione minuscola di ch se esiste. Altrimenti restituisce ch.

Esempio: come funziona la funzione towlower ()?

 #include #include #include #include using namespace std; int main() ( setlocale(LC_ALL, "en_US.UTF-8"); wchar_t str() = L"Ĵōhn Deńvėr"; wcout << L"The lowercase version of "" << str << L" " is "; for (int i=0; i 

When you run the program, the output will be:

 The lowercase version of "Ĵōhn Deńvėr" is ĵōhn deńvėr

Articoli interessanti...