std::ctype_byname (3) - Linux Manuals
std::ctype_byname: std::ctype_byname
NAME
std::ctype_byname - std::ctype_byname
Synopsis
Defined in header <locale>
template< class CharT >
class ctype_byname : public std::ctype<CharT>;
std::ctype_byname is a std::ctype facet which encapsulates character classification rules of the locale specified at its construction.
Two specializations are provided by the standard library
Defined in header <locale>
std::ctype_byname<char> provides narrow character classification. This specialization uses table lookup for character classification
std::ctype_byname<wchar_t> provides wide character classification
Member types
Member type Definition
mask ctype<CharT>::mask
Member functions
constructor (public member function)
destructor (protected member function)
std::ctype_byname::ctype_byname
explicit ctype_byname( const char* name, std::size_t refs = 0 );
explicit ctype_byname( const std::string& name, std::size_t refs = 0 ); (since C++11)
Constructs a new std::ctype_byname facet for a locale with name.
refs is used for resource management: if refs == 0, the implementation destroys the facet, when the last std::locale object holding it is destroyed. Otherwise, the object is not destroyed.
Parameters
name - the name of the locale
refs - the number of references that link to the facet
std::ctype_byname::~ctype_byname
protected:
~ctype_byname();
Destroys the facet.
Inherited from std::ctype<CharT>
Member types
Member type Definition
char_type CharT
Member objects
Member name Type
static std::locale::id id id of the locale
[static]
if CharT is char, the following member of std::ctype<char> is inherited
static const std::size_t table_size size of the classification table, at least 256
[static]
Member functions
is (public member function of std::ctype<CharT>)
scan_is (public member function of std::ctype<CharT>)
scan_not (public member function of std::ctype<CharT>)
toupper (public member function of std::ctype<CharT>)
tolower (public member function of std::ctype<CharT>)
widen (public member function of std::ctype<CharT>)
narrow (public member function of std::ctype<CharT>)
if CharT is char, the following members of std::ctype<char> are inherited
table (public member function of std::ctype<char>)
classic_table obtains the "C" locale character classification table
[static]
Protected member functions
do_toupper converts a character or characters to uppercase
[virtual]
do_tolower converts a character or characters to lowercase
[virtual]
do_widen converts a character or characters from char to charT