std::regex_traits<CharT>:: translate
| 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
|
||||
|
CharT translate
(
CharT c
)
const
;
|
||
文字 c の比較キーを取得します。これにより、ロケールでこの文字と等価なすべての文字が同じキーを生成します。
正規表現ライブラリが2つの文字
c1
と
c2
をマッチングする必要があり、フラグ
std::regex_constants::collate
が
true
の場合、ライブラリは
regex_traits
<>
::
translate
(
c1
)
==
regex_traits
<>
::
translate
(
c2
)
を実行します。
Standard library specializations of std::regex_traits return c unmodified.
パラメータ
| c | - | 等価性を検査する必要がある文字 |
戻り値
現在設定されているロケールにおける c の比較キー。
例
|
このセクションは不完全です
理由: 例がありません |