std::regex_traits<CharT>:: translate_nocase
| Localization library | |||||||||||||||||||||||||
| Regular expressions library (C++11) | |||||||||||||||||||||||||
| Formatting library (C++20) | |||||||||||||||||||||||||
| Null-terminated sequence utilities | |||||||||||||||||||||||||
| Byte strings | |||||||||||||||||||||||||
| Multibyte strings | |||||||||||||||||||||||||
| Wide strings | |||||||||||||||||||||||||
| Primitive numeric conversions | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
| Text encoding identifications | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
| Classes | ||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
| Algorithms | ||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
| Iterators | ||||
|
(C++11)
|
||||
|
(C++11)
|
||||
| Exceptions | ||||
|
(C++11)
|
||||
| Traits | ||||
|
(C++11)
|
||||
| Constants | ||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
| Regex Grammar | ||||
|
(C++11)
|
| Member functions | ||||
|
regex_traits::translate_nocase
|
||||
|
CharT translate_nocase
(
CharT c
)
const
;
|
||
문자 c 에 대한 비교 키를 획득합니다. 이 키는 임뷰드 로케일에서 대소문자 차이를 무시할 경우 이 문자와 동등한 모든 문자가 동일한 키를 생성하도록 합니다.
정규식 라이브러리가 두 문자
c1
과
c2
를 매칭해야 하고 플래그
std::regex_constants::icase
가
true
인 경우, 다음을 실행합니다
regex_traits
<>
::
translate_nocase
(
c1
)
==
regex_traits
<>
::
translate_nocase
(
c2
)
.
표준 라이브러리의 std::regex_traits 특수화는 std:: use_facet < std:: ctype < CharT >> ( getloc ( ) ) . tolower ( c ) 를 반환합니다. 즉, 현재 임베드된 로케일을 사용하여 c 를 소문자로 변환합니다.
매개변수
| c | - | 대소문자를 무시하고 동등성을 검사해야 하는 문자 |
반환값
현재 임뷰드 로케일에서 c 에 대한 대소문자를 구분하지 않는 비교 키.
예제
|
이 섹션은 불완전합니다
이유: 예제 없음 |