Sdílet prostřednictvím


regex_traits – třída

Popisuje charakteristiky prvků pro porovnávání.

template<class Elem>
    struct regex_traits {
    regex_traits();

    static size_type length(const char_type *str);
    char_type translate(char_type ch) const;
    char_type translate_nocase(char_type ch) const;
    template<class FwdIt>
        string_type transform(FwdIt first, FwdIt last) const;
    template<class FwdIt>
        string_type transform_primary(FwdIt first, FwdIt last) const;
    template<class FwdIt>
        char_class_type lookup_classname(FwdIt first, FwdIt last) const;
    template<class FwdIt>
        string_type lookup_collatename(FwdIt first, FwdIt last) const;
    bool isctype(char_type ch, char_class_type cls) const;
    int value(Elem ch, int base) const;
    locale_type imbue(locale_type loc);
    locale_type getloc() const;

    typedef Elem char_type;
    typedef T6 size_type;
    typedef basic_string<Elem> string_type;
    typedef T7 locale_type;
    typedef T8 char_class_type;
    };

Parametry

  • Elem
    Popsat typ prvku.

Poznámky

Popisuje šablony třídy různé vlastnosti regulárního výrazu pro typ Elem.Třída šablony basic_regex – třída tyto informace používá k manipulaci s prvky typu Elem.

Každý regex_traits objekt obsahuje objekt typu regex_traits::locale která je používána některými jeho členské funkce.Výchozí národní prostředí je kopie regex_traits::locale().Členské funkce imbue nahrazuje objektu národního prostředí a členské funkce getloc vrátí kopii objektu národního prostředí.

Požadavky

Záhlaví:<regex>

Obor názvů: std

Viz také

Referenční dokumentace

<regex>

regex_traits – třída

regex_traits<char> – třída

regex_traits<wchar_t> – třída

Další zdroje

<regex> Členové