aboutsummaryrefslogtreecommitdiff
path: root/build2/regex
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-01 18:24:31 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-01 19:30:26 +0300
commit70317569c6dcd9809ed4a8c425777e653ec6ca08 (patch)
tree07a538b296933e9e2a1f81088f8fcc8da3f749ad /build2/regex
parentcbec9ea8841c8a58b2d50bb628b28aea7a6fe179 (diff)
Add hxx extension for headers
Diffstat (limited to 'build2/regex')
-rw-r--r--build2/regex57
1 files changed, 0 insertions, 57 deletions
diff --git a/build2/regex b/build2/regex
deleted file mode 100644
index dc6dc96..0000000
--- a/build2/regex
+++ /dev/null
@@ -1,57 +0,0 @@
-// file : build2/regex -*- C++ -*-
-// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
-// license : MIT; see accompanying LICENSE file
-
-#ifndef BUILD2_REGEX
-#define BUILD2_REGEX
-
-#include <regex>
-#include <iosfwd>
-#include <string> // basic_string
-
-#include <build2/types>
-#include <build2/utility>
-
-namespace build2
-{
- // Like std::regex_match() but extends the standard ECMA-262
- // substitution escape sequences with a subset of Perl sequences:
- //
- // \\, \u, \l, \U, \L, \E, \1, ..., \9
- //
- // Also return the resulting string as well as whether the search
- // succeeded.
- //
- // Notes and limitations:
- //
- // - The only valid regex_constants flags are match_default,
- // format_first_only (format_no_copy can easily be supported).
- //
- // - If backslash doesn't start any of the listed sequences then it is
- // silently dropped and the following character is copied as is.
- //
- // - The character case conversion is performed according to the global
- // C++ locale (which is, unless changed, is the same as C locale and
- // both default to the POSIX locale aka "C").
- //
- template <typename C>
- pair<std::basic_string<C>, bool>
- regex_replace_ex (const std::basic_string<C>&,
- const std::basic_regex<C>&,
- const std::basic_string<C>& fmt,
- std::regex_constants::match_flag_type =
- std::regex_constants::match_default);
-}
-
-namespace std
-{
- // Print regex error description but only if it is meaningful (this is also
- // why we have to print leading colon).
- //
- ostream&
- operator<< (ostream&, const regex_error&);
-}
-
-#include <build2/regex.txx>
-
-#endif // BUILD2_REGEX