/usr/include/boost/regex/v4
NameSizeModeActions
basic_regex.hpp240890644editdlrm
basic_regex_creator.hpp542060644editdlrm
basic_regex_parser.hpp1128510644editdlrm
char_regex_traits.hpp17260644editdlrm
cpp_regex_traits.hpp394250644editdlrm
cregex.hpp109870644editdlrm
c_regex_traits.hpp54970644editdlrm
error_type.hpp12580644editdlrm
fileiter.hpp143770644editdlrm
indexed_bit_flag.hpp13160644editdlrm
instances.hpp90800644editdlrm
iterator_category.hpp19600644editdlrm
iterator_traits.hpp38020644editdlrm
match_flags.hpp69340644editdlrm
match_results.hpp227730644editdlrm
mem_block_cache.hpp31320644editdlrm
perl_matcher.hpp188470644editdlrm
perl_matcher_common.hpp304760644editdlrm
perl_matcher_non_recursive.hpp632380644editdlrm
perl_matcher_recursive.hpp345400644editdlrm
primary_transform.hpp33470644editdlrm
protected_call.hpp16880644editdlrm
regbase.hpp59720644editdlrm
regex.hpp45900644editdlrm
regex_format.hpp342310644editdlrm
regex_fwd.hpp16460644editdlrm
regex_grep.hpp48790644editdlrm
regex_iterator.hpp64740644editdlrm
regex_match.hpp144750644editdlrm
regex_merge.hpp27650644editdlrm
regex_raw_buffer.hpp36860644editdlrm
regex_replace.hpp29250644editdlrm
regex_search.hpp70970644editdlrm
regex_split.hpp49560644editdlrm
regex_token_iterator.hpp126130644editdlrm
regex_traits.hpp49650644editdlrm
regex_traits_defaults.hpp115550644editdlrm
regex_workaround.hpp61710644editdlrm
states.hpp119150644editdlrm
sub_match.hpp231550644editdlrm
syntax_type.hpp43740644editdlrm
u32regex_iterator.hpp64750644editdlrm
u32regex_token_iterator.hpp150680644editdlrm
w32_regex_traits.hpp244550644editdlrm
Edit: /usr/include/boost/regex/v4/regex_match.hpp (14475B)
/* * * Copyright (c) 1998-2002 * John Maddock * * Use, modification and distribution are subject to the * Boost Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) * */ /* * LOCATION: see http://www.boost.org for most recent version. * FILE regex_match.hpp * VERSION see * DESCRIPTION: Regular expression matching algorithms. * Note this is an internal header file included * by regex.hpp, do not include on its own. */ #ifndef BOOST_REGEX_MATCH_HPP #define BOOST_REGEX_MATCH_HPP namespace boost{ #ifdef BOOST_MSVC #pragma warning(push) #pragma warning(disable: 4103) #endif #ifdef BOOST_HAS_ABI_HEADERS # include BOOST_ABI_PREFIX #endif #ifdef BOOST_MSVC #pragma warning(pop) #endif // // proc regex_match // returns true if the specified regular expression matches // the whole of the input. Fills in what matched in m. // template bool regex_match(BidiIterator first, BidiIterator last, match_results& m, const basic_regex& e, match_flag_type flags = match_default) { BOOST_REGEX_DETAIL_NS::perl_matcher matcher(first, last, m, e, flags, first); return matcher.match(); } template bool regex_match(iterator first, iterator last, const basic_regex& e, match_flag_type flags = match_default) { match_results m; return regex_match(first, last, m, e, flags | regex_constants::match_any); } // // query_match convenience interfaces: #ifndef BOOST_NO_FUNCTION_TEMPLATE_ORDERING // // this isn't really a partial specialisation, but template function // overloading - if the compiler doesn't support partial specialisation // then it really won't support this either: template inline bool regex_match(const charT* str, match_results& m, const basic_regex& e, match_flag_type flags = match_default) { return regex_match(str, str + traits::length(str), m, e, flags); } template inline bool regex_match(const std::basic_string& s, match_results::const_iterator, Allocator>& m, const basic_regex& e, match_flag_type flags = match_default) { return regex_match(s.begin(), s.end(), m, e, flags); } template inline bool regex_match(const charT* str, const basic_regex& e, match_flag_type flags = match_default) { match_results m; return regex_match(str, str + traits::length(str), m, e, flags | regex_constants::match_any); } template inline bool regex_match(const std::basic_string& s, const basic_regex& e, match_flag_type flags = match_default) { typedef typename std::basic_string::const_iterator iterator; match_results m; return regex_match(s.begin(), s.end(), m, e, flags | regex_constants::match_any); } #else // partial ordering inline bool regex_match(const char* str, cmatch& m, const regex& e, match_flag_type flags = match_default) { return regex_match(str, str + regex::traits_type::length(str), m, e, flags); } inline bool regex_match(const char* str, const regex& e, match_flag_type flags = match_default) { match_results m; return regex_match(str, str + regex::traits_type::length(str), m, e, flags | regex_constants::match_any); } #ifndef BOOST_NO_STD_LOCALE inline bool regex_match(const char* str, cmatch& m, const basic_regex >& e, match_flag_type flags = match_default) { return regex_match(str, str + regex::traits_type::length(str), m, e, flags); } inline bool regex_match(const char* str, const basic_regex >& e, match_flag_type flags = match_default) { match_results m; return regex_match(str, str + regex::traits_type::length(str), m, e, flags | regex_constants::match_any); } #endif inline bool regex_match(const char* str, cmatch& m, const basic_regex >& e, match_flag_type flags = match_default) { return regex_match(str, str + regex::traits_type::length(str), m, e, flags); } inline bool regex_match(const char* str, const basic_regex >& e, match_flag_type flags = match_default) { match_results m; return regex_match(str, str + regex::traits_type::length(str), m, e, flags | regex_constants::match_any); } #if defined(_WIN32) && !defined(BOOST_REGEX_NO_W32) inline bool regex_match(const char* str, cmatch& m, const basic_regex >& e, match_flag_type flags = match_default) { return regex_match(str, str + regex::traits_type::length(str), m, e, flags); } inline bool regex_match(const char* str, const basic_regex >& e, match_flag_type flags = match_default) { match_results m; return regex_match(str, str + regex::traits_type::length(str), m, e, flags | regex_constants::match_any); } #endif #ifndef BOOST_NO_WREGEX inline bool regex_match(const wchar_t* str, wcmatch& m, const wregex& e, match_flag_type flags = match_default) { return regex_match(str, str + wregex::traits_type::length(str), m, e, flags); } inline bool regex_match(const wchar_t* str, const wregex& e, match_flag_type flags = match_default) { match_results m; return regex_match(str, str + wregex::traits_type::length(str), m, e, flags | regex_constants::match_any); } #ifndef BOOST_NO_STD_LOCALE inline bool regex_match(const wchar_t* str, wcmatch& m, const basic_regex >& e, match_flag_type flags = match_default) { return regex_match(str, str + wregex::traits_type::length(str), m, e, flags); } inline bool regex_match(const wchar_t* str, const basic_regex >& e, match_flag_type flags = match_default) { match_results m; return regex_match(str, str + wregex::traits_type::length(str), m, e, flags | regex_constants::match_any); } #endif inline bool regex_match(const wchar_t* str, wcmatch& m, const basic_regex >& e, match_flag_type flags = match_default) { return regex_match(str, str + wregex::traits_type::length(str), m, e, flags); } inline bool regex_match(const wchar_t* str, const basic_regex >& e, match_flag_type flags = match_default) { match_results m; return regex_match(str, str + wregex::traits_type::length(str), m, e, flags | regex_constants::match_any); } #if defined(_WIN32) && !defined(BOOST_REGEX_NO_W32) inline bool regex_match(const wchar_t* str, wcmatch& m, const basic_regex >& e, match_flag_type flags = match_default) { return regex_match(str, str + wregex::traits_type::length(str), m, e, flags); } inline bool regex_match(const wchar_t* str, const basic_regex >& e, match_flag_type flags = match_default) { match_results m; return regex_match(str, str + wregex::traits_type::length(str), m, e, flags | regex_constants::match_any); } #endif #endif inline bool regex_match(const std::string& s, smatch& m, const regex& e, match_flag_type flags = match_default) { return regex_match(s.begin(), s.end(), m, e, flags); } inline bool regex_match(const std::string& s, const regex& e, match_flag_type flags = match_default) { match_results m; return regex_match(s.begin(), s.end(), m, e, flags | regex_constants::match_any); } #ifndef BOOST_NO_STD_LOCALE inline bool regex_match(const std::string& s, smatch& m, const basic_regex >& e, match_flag_type flags = match_default) { return regex_match(s.begin(), s.end(), m, e, flags); } inline bool regex_match(const std::string& s, const basic_regex >& e, match_flag_type flags = match_default) { match_results m; return regex_match(s.begin(), s.end(), m, e, flags | regex_constants::match_any); } #endif inline bool regex_match(const std::string& s, smatch& m, const basic_regex >& e, match_flag_type flags = match_default) { return regex_match(s.begin(), s.end(), m, e, flags); } inline bool regex_match(const std::string& s, const basic_regex >& e, match_flag_type flags = match_default) { match_results m; return regex_match(s.begin(), s.end(), m, e, flags | regex_constants::match_any); } #if defined(_WIN32) && !defined(BOOST_REGEX_NO_W32) inline bool regex_match(const std::string& s, smatch& m, const basic_regex >& e, match_flag_type flags = match_default) { return regex_match(s.begin(), s.end(), m, e, flags); } inline bool regex_match(const std::string& s, const basic_regex >& e, match_flag_type flags = match_default) { match_results m; return regex_match(s.begin(), s.end(), m, e, flags | regex_constants::match_any); } #endif #if !defined(BOOST_NO_WREGEX) inline bool regex_match(const std::basic_string& s, match_results::const_iterator>& m, const wregex& e, match_flag_type flags = match_default) { return regex_match(s.begin(), s.end(), m, e, flags); } inline bool regex_match(const std::basic_string& s, const wregex& e, match_flag_type flags = match_default) { match_results::const_iterator> m; return regex_match(s.begin(), s.end(), m, e, flags | regex_constants::match_any); } #ifndef BOOST_NO_STD_LOCALE inline bool regex_match(const std::basic_string& s, match_results::const_iterator>& m, const basic_regex >& e, match_flag_type flags = match_default) { return regex_match(s.begin(), s.end(), m, e, flags); } inline bool regex_match(const std::basic_string& s, const basic_regex >& e, match_flag_type flags = match_default) { match_results::const_iterator> m; return regex_match(s.begin(), s.end(), m, e, flags | regex_constants::match_any); } #endif inline bool regex_match(const std::basic_string& s, match_results::const_iterator>& m, const basic_regex >& e, match_flag_type flags = match_default) { return regex_match(s.begin(), s.end(), m, e, flags); } inline bool regex_match(const std::basic_string& s, const basic_regex >& e, match_flag_type flags = match_default) { match_results::const_iterator> m; return regex_match(s.begin(), s.end(), m, e, flags | regex_constants::match_any); } #if defined(_WIN32) && !defined(BOOST_REGEX_NO_W32) inline bool regex_match(const std::basic_string& s, match_results::const_iterator>& m, const basic_regex >& e, match_flag_type flags = match_default) { return regex_match(s.begin(), s.end(), m, e, flags); } inline bool regex_match(const std::basic_string& s, const basic_regex >& e, match_flag_type flags = match_default) { match_results::const_iterator> m; return regex_match(s.begin(), s.end(), m, e, flags | regex_constants::match_any); } #endif #endif #endif #ifdef BOOST_MSVC #pragma warning(push) #pragma warning(disable: 4103) #endif #ifdef BOOST_HAS_ABI_HEADERS # include BOOST_ABI_SUFFIX #endif #ifdef BOOST_MSVC #pragma warning(pop) #endif } // namespace boost #endif // BOOST_REGEX_MATCH_HPP