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

履歴 編集

function
<regex>

std::regex_traits::translate(C++11)

char_type translate(char_type c) const;

概要

与えられた文字と等価の文字を取得する。

戻り値

(c)

#include <iostream>
#include <regex>

int main()
{
  std::regex_traits<char> traits;

  char c = traits.translate('A');
  std::cout << c << std::endl;
}

出力

A

バージョン

言語

  • C++11

処理系