[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/string/wide/towupper [Back]  [Original]

std::towupper cppreference.com
cppreference.com

std::towupper

cppreference.com
<tbody> </tbody>
std::wint_t towupper( std::wint_t ch );

, .

ch wchar_t WEOF, .

ch

ch ch, C .

1:1, , '' ( ) "SS", std::towupper.

ISO 30112 , .

'' (U+017F) 'S' (U+0053).

#include <clocale>
#include <cwctype>
#include <iostream>

int main()
{
    wchar_t c = L'\u017f'; //     S ('')

    std::cout << std::hex << std::showbase;
    std::cout << "   , towupper("
              << static_cast<std::wint_t>(c) << ") = "
              << std::towupper(c) << '\n';

    std::setlocale(LC_ALL, "en_US.utf8");
    std::cout << "  , towupper("
              << static_cast<std::wint_t>(c) << ") = "
              << std::towupper(c) << '\n';
}

:

   , towupper(0x17f) = 0x17f
  , towupper(0x17f) = 0x53


() []
, ctype
( ) []

() []
C towupper

Web Proxy Viewer  |  New URL  |  Original Page