]> git.lyx.org Git - features.git/blob - src/support/regex.h
Amend 125ed160, removing 3rdparty/boost/Makefile.am
[features.git] / src / support / regex.h
1 // -*- C++ -*-
2 /**
3  * \file regexp.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Peter Kümmel
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef LYX_REGEXP_H
13 #define LYX_REGEXP_H
14
15 #include <regex>
16
17 namespace lyx {
18
19 using std::regex;
20 using std::regex_match;
21 using std::regex_replace;
22 using std::regex_search;
23 using std::sregex_iterator;
24 using std::smatch;
25 using std::basic_regex;
26 using std::regex_error;
27 using std::match_results;
28
29 namespace regex_constants
30 {
31
32 using namespace std::regex_constants;
33 using std::regex_constants::match_flag_type;
34
35 } // namespace regex_constants
36
37 } // namespace lyx
38
39 // Match Begin and End of String when using ECMAScript (default std::regex)
40 #define REGEX_BOS "^"
41 #define REGEX_EOS "$"
42
43 #endif // LYX_REGEXP_H