다음을 통해 공유


regex_traits Class

일치 하는 요소의 특성에 설명 합니다.

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;
    };

매개 변수

  • Elem
    설명할 요소 형식입니다.

설명

템플릿 클래스 형식에 대 한 다양 한 정규식 특성에 설명 합니다. Elem.템플릿 클래스 basic_regex Class 이 정보를 사용 하 여 형식의 요소를 조작할 수 Elem.

각 regex_traits 개체 유형의 개체를 보유 regex_traits::locale 멤버 함수 중 일부는 사용 됩니다.기본 로케일의 복사본 인 regex_traits::locale().멤버 함수 imbue locale 개체와 멤버 함수 대신 getloc locale 개체의 복사본을 반환 합니다.

요구 사항

헤더: <regex>

네임 스페이스: 국방 표준

참고 항목

참조

<regex>

regex_traits Class

regex_traits<char> Class

regex_traits<wchar_t> Class

기타 리소스

<regex> 멤버