<regex>
Defines a template class to parse 정규식(C++), and several template classes and functions to search text for matches to a regular expression object.
#include <regex>
설명
To create a regular expression object, use the template class basic_regex 클래스 or one of its specializations, regex Typedef and wregex Typedef, together with the syntax flags of type regex_constants::syntax_option_type.
To search text for matches to a regular expression object, use the template functions regex_match 함수 and regex_search 함수, together with the match flags of type regex_constants::match_flag_type. These functions return results by using the template class match_results 클래스 and its specializations, cmatch Typedef, wcmatch Typedef, smatch Typedef, and wsmatch Typedef, together with the template class sub_match 클래스 and its specializations, csub_match Typedef, wcsub_match Typedef, ssub_match Typedef, and wssub_match Typedef.
To replace text that matches a regular expression object, use the template function regex_replace 함수, together with the match flags of type regex_constants::match_flag_type.
To iterate through multiple matches of a regular expression object, use the template classes regex_iterator 클래스 and regex_token_iterator 클래스 or one of their specializations, cregex_iterator Typedef, sregex_iterator Typedef, wcregex_iterator Typedef, wsregex_iterator Typedef, cregex_token_iterator Typedef, sregex_token_iterator Typedef, wcregex_token_iterator Typedef, or wsregex_token_iterator Typedef, together with the match flags of type regex_constants::match_flag_type.
To modify the details of the grammar of regular expressions, write a class that implements the regular expression traits.
클래스
Wraps a regular expression. |
|
Holds a sequence of submatches. |
|
Holds assorted constants. |
|
Reports a bad regular expression. |
|
Iterates through match results. |
|
Describes characteristics of elements for matching. |
|
Describes characteristics of char for matching. |
|
Describes characteristics of wchar_t for matching. |
|
Iterates through submatches. |
|
Describes a submatch. |
형식 정의
Type definition for char match_results. |
|
Type definition for char regex_iterator. |
|
Type definition for char regex_token_iterator. |
|
Type definition for char sub_match. |
|
Type definition for char basic_regex. |
|
Type definition for string match_results. |
|
Type definition for string regex_iterator. |
|
Type definition for string regex_token_iterator. |
|
Type definition for string sub_match. |
|
Type definition for wchar_t match_results. |
|
Type definition for wchar_t regex_iterator. |
|
Type definition for wchar_t regex_token_iterator. |
|
Type definition for wchar_t sub_match. |
|
Type definition for wchar_t basic_regex. |
|
Type definition for wstring match_results. |
|
Type definition for wstring regex_iterator. |
|
Type definition for wstring regex_token_iterator. |
|
Type definition for wstring sub_match. |
함수
Exactly matches a regular expression. |
|
Replaces matched regular expressions. |
|
Searches for a regular expression match. |
|
Swaps basic_regex or match_results objects. |
연산자
Comparison of various objects, equal. |
|
Comparison of various objects, not equal. |
|
Comparison of various objects, less than. |
|
Comparison of various objects, less than or equal. |
|
Comparison of various objects, greater than. |
|
Comparison of various objects, greater than or equal. |
|
Inserts a sub_match in a stream. |