aA bB cC dD eE fF gG hH iI jJ kK lL mM nN oO pP qQ rR sS tT uU vV wW xX yY zZ in iso8859-1, toupper('0xb8') gives 0xb8 in iso8859-15, toupper('0xb8') gives 0xb4 引用 C11 standard (ISO/IEC 9899:2011): 7.4.2.2 The toupper function (p: 204) C99 standard (ISO/...
// C++ program to demonstrate// how to use thetoupper() function#include<iostream>usingnamespacestd;intmain(){charc ='g';cout<< c <<" in uppercase is represented as = ";//toupper() returns an int value there for typecasting// with char is requiredcout<< (char)toupper(c);return0...
In this C++ Tutorial we will explore the toupper() function, which can be used to convert a single character to it’s uppercase version. We will proceed to show exactly how one can convert an entireC++ Stringto uppercase, using the toupper() function. ...
输出: aA bB cC dD eE fF gG hH iI jJ kK lL mM nN oO pP qQ rR sS tT uU vV wW xX yY zZ in iso8859-1, toupper('0xb8') gives 0xb8 in iso8859-15, toupper('0xb8') gives 0xb4引用C11 standard (ISO/IEC 9899:2011): 7.4.2.2 The toupper function (p: 204) C99 standard ...
Uppercase version ofchor unmodifiedchif no uppercase version is listed in the current C locale. Example References C23 standard (ISO/IEC 9899:2024): 7.4.2.2 The toupper function (p: TBD) C17 standard (ISO/IEC 9899:2018): 7.4.2.2 The toupper function (p: 147-148) ...
输出: aA bB cC dD eE fF gG hH iI jJ kK lL mM nN oO pP qQ rR sS tT uU vV wW xX yY zZ in iso8859-1, toupper('0xb8') gives 0xb8 in iso8859-15, toupper('0xb8') gives 0xb4 引用 C11 standard (ISO/IEC 9899:2011): 7.4.2.2 The toupper function (p: 204) ...
7.4.2.2 The toupper function (p: 204) C99 standard (ISO/IEC 9899:1999): 7.4.2.2 The toupper function (p: 185) C89/C90 standard (ISO/IEC 9899:1990): 4.3.2.2 The toupper function See also tolower converts a character to lowercase ...
The template function returnsuse_facet<ctype<CharType> >(_Loc).toupper(_Ch). Example // locale_toupper.cpp // compile with: /EHsc #include <locale> #include <iostream> using namespace std; int main( ) { locale loc ( "German_Germany" ); char result1 = toupper ( 'h', loc ); cou...
std::toupper Defined in header<cctype> inttoupper(intch); Converts the given character to uppercase according to the character conversion rules defined by the currently installed C locale. In the default"C"locale, the following lowercase lettersabcdefghijklmnopqrstuvwxyzare replaced with respective ...
setting of the locale. For more information, seesetlocale. The version of this function without the_lsuffix uses the current locale for this locale-dependent behavior; the version with the_lsuffix is identical except that it uses the locale parameter passed in instead. For more ...