Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::regex_traits<CharT>::translate

      From cppreference.com
      <cpp‎ |regex‎ |regex traits
       
       
       
      Regular expressions library
      Classes
      (C++11)
      Algorithms
      Iterators
      Exceptions
      Traits
      Constants
      (C++11)
      Regex Grammar
       
       
      CharT translate( CharT c)const;

      Obtains the comparison key for the characterc, such that all characters that are equivalent to this character in the imbued locale produce the same key.

      When the regex library needs to match two charactersc1 andc2 and the flagstd::regex_constants::collate istrue, it executesregex_traits<>::translate(c1)== regex_traits<>::translate(c2).

      Standard library specializations ofstd::regex_traits returnc unmodified.

      [edit]Parameters

      c - character that needs to be examined for equivalence

      [edit]Return value

      The comparison key forc in the currently imbued locale.

      [edit]Example

      This section is incomplete
      Reason: no example
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/regex/regex_traits/translate&oldid=161054"

      [8]ページ先頭

      ©2009-2025 Movatter.jp