std::ctype<CharT>::toupper,std::ctype<CharT>::do_toupper (3) - Linux Manuals
std::ctype<CharT>::toupper,std::ctype<CharT>::do_toupper: std::ctype<CharT>::toupper,std::ctype<CharT>::do_toupper
NAME
std::ctype<CharT>::toupper,std::ctype<CharT>::do_toupper - std::ctype<CharT>::toupper,std::ctype<CharT>::do_toupper
Synopsis
Defined in header <locale>
public: (1)
CharT toupper( CharT c ) const;
public: (2)
const CharT* toupper( CharT* beg, const CharT* end ) const;
protected: (3)
virtual CharT do_toupper( CharT c ) const;
protected: (4)
virtual const CharT* do_toupper( CharT* beg, const CharT* end ) const;
1,2) public member function, calls the protected virtual member function do_toupper of the most derived class.
3) Converts the character c to upper case if an upper case form is defined by this locale.
4) For every character in the character array [beg, end), for which an upper case form exists, replaces the character with that upper 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) upper case character or c if no upper 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 uppercase form of 'ß' is (with some exceptions) the two-character string "SS", which cannot be obtained by do_toupper.
Example
// Run this code
Output:
See also
tolower (public member function)
toupper (function)
towupper (function)