Namespaces
Variants

std::regex_constants:: match_flag_type

From cppreference.net
헤더 파일에 정의됨 <regex>
using match_flag_type = /* implementation-defined */ ;
(1) (C++11부터)
constexpr match_flag_type match_default = { } ;

constexpr match_flag_type match_not_bol = /* unspecified */ ;
constexpr match_flag_type match_not_eol = /* unspecified */ ;
constexpr match_flag_type match_not_bow = /* unspecified */ ;
constexpr match_flag_type match_not_eow = /* unspecified */ ;
constexpr match_flag_type match_any = /* unspecified */ ;
constexpr match_flag_type match_not_null = /* unspecified */ ;
constexpr match_flag_type match_continuous = /* unspecified */ ;
constexpr match_flag_type match_prev_avail = /* unspecified */ ;
constexpr match_flag_type format_default = { } ;
constexpr match_flag_type format_sed = /* unspecified */ ;
constexpr match_flag_type format_no_copy = /* unspecified */ ;

constexpr match_flag_type format_first_only = /* unspecified */ ;
(2) (C++11부터)
(C++17부터 인라인)
1) match_flag_type BitmaskType 으로, 추가적인 정규식 매칭 옵션을 지정합니다.

상수

참고: [ first , last ) 는 매칭되는 문자 시퀀스를 나타냅니다.

이름 설명
match_not_bol [ first , last ) 구간의 첫 번째 문자를 줄의 시작 위치가 아닌 것으로 처리합니다
(즉, ^ [ first , first ) 와 매치되지 않습니다).
match_not_eol [ first , last ) 구간의 마지막 문자를 줄의 끝 위치가 아닌 것으로 처리합니다
(즉, $ [ last , last ) 와 매치되지 않습니다).
match_not_bow \b [ first , first ) 와 매치되지 않습니다.
match_not_eow \b [ last , last ) 와 매치되지 않습니다.
match_any 여러 개의 매치가 가능한 경우, 어떤 매치든 허용 가능한 결과로 간주합니다.
match_not_null 빈 시퀀스를 매치하지 않습니다.
match_continuous first 에서 시작하는 부분 시퀀스만 매치합니다.
match_prev_avail -- first 가 유효한 반복자 위치임을 나타냅니다.
설정된 경우, match_not_bol match_not_bow 를 무시합니다.
format_default std::regex_replace 에서 문자열을 구성할 때 ECMAScript 규칙을 사용합니다 ( 문법 문서 ).
format_sed std::regex_replace 에서 POSIX sed 유틸리티 규칙을 사용합니다 ( 문법 문서 ).
format_no_copy std::regex_replace 에서 매치되지 않은 문자열을 출력에 복사하지 않습니다.
format_first_only std::regex_replace 에서 첫 번째 매치만 대체합니다.

match_default format_default 를 제외한 모든 상수는 비트마스크 요소입니다. match_default format_default 상수는 빈 비트마스크입니다.

결함 보고서

다음의 동작 변경 결함 보고서들은 이전에 발표된 C++ 표준에 소급 적용되었습니다.

DR 적용 대상 게시된 동작 올바른 동작
LWG 2053 C++11 1. 상수들이 static 으로 선언됨
2. match_default format_default 0 으로 초기화됨
1. static 지정자 제거
2. { } 로 초기화

참고 항목

정규 표현식을 전체 문자 시퀀스와 일치시키려 시도합니다
(함수 템플릿)
regex 동작을 제어하는 일반 옵션들
(typedef)
(C++11)
다양한 유형의 매칭 오류들을 설명합니다
(typedef)