Namespaces
Variants

std::regex_traits<CharT>:: translate_nocase

From cppreference.net
Regular expressions library
Classes
(C++11)
Algorithms
Iterators
Exceptions
Traits
Constants
(C++11)
Regex Grammar
CharT translate_nocase ( CharT c ) const ;
**翻訳結果:**
CharT translate_nocase ( CharT c ) const ;
**注記:** このC++コード部分は翻訳対象外のため、元のまま保持されています。HTMLタグ、属性、および` `内のC++コードはすべて変更せずに維持されています。

文字 c の比較キーを取得します。これにより、インプリュードされたロケールにおいて、大文字小文字の違いを無視した場合にこの文字と等価なすべての文字が同じキーを生成します。

正規表現ライブラリが2つの文字 c1 c2 をマッチングする必要があり、フラグ std::regex_constants::icase true の場合、ライブラリは regex_traits <> :: translate_nocase ( c1 ) == regex_traits <> :: translate_nocase ( c2 ) を実行します。

Standard library specializations of std::regex_traits return std:: use_facet < std:: ctype < CharT >> ( getloc ( ) ) . tolower ( c ) 、つまり、現在設定されているロケールを使用して c を小文字に変換します。

パラメータ

c - 大文字小文字を区別せずに等価性を調べる必要がある文字

戻り値

現在適用されているロケールにおける c の大文字小文字を区別しない比較キー。