Пространства имён
Варианты
Действия

std::ctype_byname<char>

Материал из cppreference.com

 
 
Локализация библиотеки
Языки и граней
Original:
Locales and facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
locale
Персонаж классификации
Original:
Character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Преобразования
Original:
Conversions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Facet классов категории базу
Original:
Facet category base classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Facet категорий
Original:
Facet categories
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Язык конкретных аспектов
Original:
Locale-specific facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Код аспекты преобразования
Original:
Code conversion facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
codecvt_utf8(C++11)
codecvt_utf16(C++11)
C локали
Original:
C locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
Заголовочный файл <locale>
template<>
class ctype_byname : public std::ctype<char>;
Эта специализация std::ctype_byname инкапсулирует характер классификационные признаки типа char. Как и его std::ctype<char> базовый класс и в отличие от общего назначения std::ctype_byname, поиск в таблице используется для классификации символов
Original:
This specialization of std::ctype_byname encapsulates character classification features for type char. Like its base class std::ctype<char> and unlike general-purpose std::ctype_byname, table lookup is used to classify characters
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Содержание

[править] Член типов

Член типа
Original:
Member type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
mask ctype<char>::mask

[править] Член функций

строит новую грань <char> ctype_byname
Original:
constructs a new ctype_byname<char> facet
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член)
разрушает грань ctype_byname <char>
Original:
destructs a ctype_byname<char> facet
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(protected функция-член)

Унаследован от std::ctype<char>

Member types

Член типа
Original:
Member type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
char_type char

Member objects

Имя пользователя
Original:
Member name
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Type
id (статическим) std::locale::id
table_size (статического сопзЬ)
std::size_t размер таблице классификации, по крайней мере 256
Original:
std::size_t size of the classification table, at least 256
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Member functions

получает таблицу символов классификации
Original:
obtains the character classification table
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::ctype<char>) [edit]
получает "C" локали характер классификационной таблице
Original:
obtains the "C" locale character classification table
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public static функция-член std::ctype<char>) [edit]
классифицирует символ или последовательность символов, используя классификацию таблице
Original:
classifies a character or a character sequence, using the classification table
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::ctype<char>) [edit]
находит первый символ в последовательности, которая соответствует данной классификации, с использованием классификационной таблице
Original:
locates the first character in a sequence that conforms to given classification, using the classification table
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::ctype<char>) [edit]
locates the first character in a sequence that fails given classification, using the classification table
(public функция-член std::ctype<char>) [edit]
Вызывает do_toupper
Original:
invokes do_toupper
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::ctype) [edit]
Вызывает do_tolower
Original:
invokes do_tolower
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::ctype) [edit]
Вызывает do_widen
Original:
invokes do_widen
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::ctype) [edit]
Вызывает do_narrow
Original:
invokes do_narrow
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public функция-член std::ctype) [edit]

Protected member functions

[virtual]
преобразует символ или символы в верхний регистр
Original:
converts a character or characters to uppercase
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected std::ctype функция-член) [edit]
[virtual]
преобразует символ или символы в нижний регистр
Original:
converts a character or characters to lowercase
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected std::ctype функция-член) [edit]
[virtual]
преобразует символ или символы из char в charT
Original:
converts a character or characters from char to charT
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected std::ctype функция-член) [edit]
[virtual]
преобразует символ или символы из charT в char
Original:
converts a character or characters from charT to char
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protected std::ctype функция-член) [edit]

Унаследован от std::ctype_base

Member types

Type
Original:
Type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
mask
неопределенного типа битовой маски (перечисление целого типа, или BitSet)
Original:
unspecified bitmask type (enumeration, integer type, or bitset)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Member constants

space
[static]
Значение mask выявление классификации символ пробела
Original:
the value of mask identifying whitespace character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public static константа-член)
print
[static]
Значение mask выявления печати классификации характера
Original:
the value of mask identifying printable character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public static константа-член)
cntrl
[static]
Значение mask определении классификации управляющих символов
Original:
the value of mask identifying control character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public static константа-член)
upper
[static]
Значение mask выявления заглавными классификации характера
Original:
the value of mask identifying uppercase character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public static константа-член)
lower
[static]
Значение mask выявления строчной классификации характера
Original:
the value of mask identifying lowercase character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public static константа-член)
alpha
[static]
Значение mask выявления алфавитном классификации характера
Original:
the value of mask identifying alphabetic character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public static константа-член)
digit
[static]
Значение mask выявлении цифры классификации характера
Original:
the value of mask identifying digit character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public static константа-член)
punct
[static]
Значение mask определении классификации символов пунктуации
Original:
the value of mask identifying punctuation character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public static константа-член)
xdigit
[static]
Значение mask выявления шестнадцатеричная цифра классификации характера
Original:
the value of mask identifying hexadecimal digit character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public static константа-член)
blank
[static] (C++11)
Значение mask выявления пустых классификации характера
Original:
the value of mask identifying blank character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(public static константа-член)
alnum
[static]
alpha | digit
(public static константа-член)
graph
[static]
alnum | punct
(public static константа-член)

[править] Пример

#include <iostream>
#include <locale>
 
int main()
{
    char c = '\xde'; // capital letter thorn
 
    std::locale loc("C");
 
    std::cout << "isupper('Þ', C locale) returned "
               << std::boolalpha << std::isupper(c, loc) << '\n';
 
    loc = std::locale(loc, new std::ctype_byname<char>("en_US.utf8"));
 
    std::cout << "isupper('Þ', C locale with Unicode ctype<char>) returned "
              << std::boolalpha << std::isupper(c, loc) << '\n';
 
    loc = std::locale(loc, new std::ctype_byname<char>("is_IS.iso88591"));
 
    std::cout << "isupper('Þ', C locale with Islandic ctype<char>) returned "
              << std::boolalpha << std::isupper(c, loc) << '\n';
}

Вывод:

isupper('Þ', C locale) returned false
isupper('Þ', C locale with Unicode ctype<char>) returned false
isupper('Þ', C locale with Islandic ctype<char>) returned true

[править] См. также

определяет таблицы символов классификации
Original:
defines character classification tables
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(шаблон класса) [edit]
Специализация std::ctype типа char
Original:
specialization of std::ctype for type char
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(специализация шаблона класса) [edit]