std::regex_traits::translate_nocase
De cppreference.com
< cpp | regex | regex traits
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
CharT translate_nocase(CharT c) const; |
||
Obtient la clé de comparaison pour la
c
caractère, de sorte que tous les caractères qui sont équivalentes à ce personnage dans le lieu imprégné, en ignorant les différences de casse, le cas échéant, de produire la même touche .Original:
Obtains the comparison key for the character
c
, such that all characters that are equivalent to this character in the imbued locale, ignoring the case differences, if any, produce the same key.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Lorsque la bibliothèque regex doit correspondre à deux personnages
c1
et c2
et le drapeau est std::regex_constants::icase true, il exécute regex_traits<>::translate_nocase(c1) == regex_traits<>::translate_nocase(c2) .Original:
When the regex library needs to match two characters
c1
and c2
and the flag std::regex_constants::icase is true, it executes regex_traits<>::translate_nocase(c1) == regex_traits<>::translate_nocase(c2).The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Spécialisations de la bibliothèque standard de std::regex_traits retour std::use_facet<std::ctype<CharT>>(getloc()).tolower(c), c'est-à convertir
c
en minuscules, en utilisant les paramètres régionaux actuellement imprégnée .Original:
Standard library specializations of std::regex_traits return std::use_facet<std::ctype<CharT>>(getloc()).tolower(c), that is, convert
c
to lowercase, using the currently imbued locale.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifier] Paramètres
c | - | caractère qui doit être examinée d'équivalence, en ignorant les casses
Original: character that needs to be examined for equivalence, ignoring case The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifier] Retourne la valeur
La comparaison clé insensible à la casse pour
c
dans la locale courante imprégné .Original:
The case-insensitive comparison key for
c
in the currently imbued locale.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifier] Exemple
This section is incomplete Reason: no example |