x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
regex_match.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\regex\v4\regex_match.hpp
旋转
特效
属性
历史版本
/* * * 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) { re_detail::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
regex_match.hpp
网页地址
文件地址
上一页
28/43
下一页
下载
( 14 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.