• Class / Function / Type

      std::
    • Header file

      <>
    • Other / All

    最終更新日時(UTC):
    が更新

    履歴 編集

    function
    <regex>

    std::regex_traits::translate_nocase

    char_type translate_nocase(char_type c) const;
    

    概要

    与えられた文字列と大文字・小文字を区別せずに等価な文字列を取得する。

    戻り値

    use_facet<ctype<char_type>>(getloc()).tolower(c)
    

    #include <iostream>
    #include <regex>
    
    int main()
    {
      std::regex_traits<char> traits;
    
      char c = traits.translate_nocase('A');
      std::cout << c << std::endl;
    }
    

    出力

    a
    

    バージョン

    言語

    • C++11

    処理系

    • Clang: 3.0 , 3.1 , 3.2 , 3.3 , 3.4 , 3.5 , 3.6
    • GCC: 4.9.0 , 4.9.1 , 4.9.2 , 5.0.0
    • ICC: ??
    • Visual C++: ??