A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/regex/regex_traits/translate/ below:

public member function

<regex>

std::regex_traits::translate
char_type translate (char_type c) const;

Translate character

Returns the character translation of c.

For the standard regex_traits, this function simply returns c unchanged.

This function is called when a regular expression needs to match a character and the regex object has collate as a syntax option. A custom traits class can define a different internal translation: Two characters will be considered equivalent if they translate to the same value using this function.



Parameters
c
A character.
char_type is a member type, alias of the character type. In regex_traits it is an alias of its template parameter (charT).

Return value The character translation of c.
char_type is a member type, alias of the character type. In regex_traits it is an alias of its template parameter (charT).

See also
regex_traits::translate_nocase
Translate character (case insensitive) (public member function)
regex_traits::transform
Transform to string (public member function)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4