Aracılığıyla paylaş


tolower

Bir karakter, küçük harflere dönüştürür.

template<Class CharType>
   CharType tolower(
      CharType _Ch, 
      const locale& _Loc
   )

Parametreler

  • _Ch
    Küçük harflere dönüştürmek için karakter.

  • _Loc
    Dönüştürülecek karakter içeren yerel ayarı.

Dönüş Değeri

Karakter, küçük harflere dönüştürülür.

Notlar

Şablon işlevini verir use_facet<ctype<CharType> >(_Loc).tolower(_Ch).

Örnek

// 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;
}

Çıktı

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: $.

Gereksinimler

Başlık: <locale>

Namespace: std