std::basic_ios::widen(3)
π NAME
okay so bestie, this page is for std::basic_ios::widen β manual name std::basic_ios::widen(3) β from the C++ Standard Library, and weβre gonna make it make sense. π«Ά
β¨ Synopsis
char_type widen( char c ) const;
So whatβs the tea? It converts a character c to its equivalent in the current locale. The result is converted from char to the character type used within the stream if needed.
It effectively calls std::use_facet< std::ctype<char_type> >(getloc()).widen(c). slay. π
πΈ Parameters
cβ character to convert
π Return value
Character converted to char_type. periodt. β¨
π¦ See also
narrowβ narrows characters (public member function)do_widenβ converts a character or characters fromchartoCharT[virtual] (virtual protected member function ofstd::ctype<CharT>)btowcβ widens a single-byte narrow character to wide character, if possible (function)
mwah π this lil page was brought to you by cppreference.com, dated 2024.06.10 β std::basic_ios::widen(3), and thatβs iconic. ππ
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms