(C++) std::nouppercase
February 24, 2017 · View on GitHub
(C++) std::nouppercase
std::nouppercase is a stream manipulator: when a number's base and/or non-decimal digits are show, std::nouppercase displays these in lowercase.
#include <iostream> int main() { const int x = 255; //0xFF std::cout << std::showbase << std::hex << std::uppercase << x << '\n' << std::nouppercase << x << '\n'; }
Screen output:
0XFF 0xff