std::ctype<CharT>::tolower,std::ctype<CharT>::do_tolower (3) - Linux Manuals
std::ctype<CharT>::tolower,std::ctype<CharT>::do_tolower: std::ctype<CharT>::tolower,std::ctype<CharT>::do_tolower
NAME
std::ctype<CharT>::tolower,std::ctype<CharT>::do_tolower - std::ctype<CharT>::tolower,std::ctype<CharT>::do_tolower
Synopsis
Defined in header <locale>
public: (1)
CharT tolower( CharT c ) const;
public: (2)
const CharT* tolower( CharT* beg, const CharT* end ) const;
protected: (3)
virtual CharT do_tolower( CharT c ) const;
protected: (4)
virtual const CharT* do_tolower( CharT* beg, const CharT* end ) const;
1,2) public member function, calls the protected virtual member function do_tolower of the most derived class.
3) Converts the character c to lower case if a lower case form is defined by this locale.
4) For every character in the character array [beg, end), for which a lower case form exists, replaces the character with that lower case form.
Parameters
c - character to convert
beg - pointer to the first character in an array of characters to convert
end - one past the end pointer for the array of characters to convert
Return value
1,3) lower case character or c if no lower case form is listed by this locale.
2,4) end.
Notes
Only 1:1 character mapping can be performed by this function, e.g. the Greek uppercase letter 'Σ' has two lowercase forms, depending on the position in a word: 'σ' and 'ς'. A call to do_tolower cannot be used to obtain the correct lowercase form in this case.
Example
// Run this code
Output:
See also
toupper (public member function)
tolower (function)
towlower (function)