DOKK / manpages / debian 12 / libcourier-unicode-dev / unicode::tolower.3.en
UNICODE::TOLOWER(3) Courier Unicode Library UNICODE::TOLOWER(3)

unicode::tolower, unicode::toupper - unicode version of tolower(3) and toupper(3)

#include <courier-unicode.h>

std::string unicode::tolower(const std::string &string);

std::string unicode::tolower(const std::string &string, const std::string &charset);

std::u32string unicode::tolower(const std::u32string &u);

std::string unicode::toupper(const std::string &string);

std::string unicode::toupper(const std::string &string, const std::string &charset);

std::u32string unicode::toupper(const std::u32string &u);

These functions convert the string parameter, in charset or unicode_default_chset(3), to unicode, replace each character with unicode_lc(3) or unicode_uc(3), then convert it back to the same character set, returning the resulting string.

Passing a const std::u32string & directly also converts it accordingly, returning the converted unicode string.

courier-unicode(7).

Sam Varshavchik

Author
11/25/2020 Courier Unicode Library