x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
regex_traits.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\regex\v4\regex_traits.hpp
旋转
特效
属性
历史版本
/* * * Copyright (c) 2003 * 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_traits.hpp * VERSION see
* DESCRIPTION: Declares regular expression traits classes. */ #ifndef BOOST_REGEX_TRAITS_HPP_INCLUDED #define BOOST_REGEX_TRAITS_HPP_INCLUDED #ifndef BOOST_REGEX_CONFIG_HPP #include
#endif #ifndef BOOST_REGEX_WORKAROUND_HPP #include
#endif #ifndef BOOST_REGEX_SYNTAX_TYPE_HPP #include
#endif #ifndef BOOST_REGEX_ERROR_TYPE_HPP #include
#endif #ifndef BOOST_REGEX_TRAITS_DEFAULTS_HPP_INCLUDED #include
#endif #ifndef BOOST_NO_STD_LOCALE # ifndef BOOST_CPP_REGEX_TRAITS_HPP_INCLUDED # include
# endif #endif #if !BOOST_WORKAROUND(__BORLANDC__, < 0x560) # ifndef BOOST_C_REGEX_TRAITS_HPP_INCLUDED # include
# endif #endif #if defined(_WIN32) && !defined(BOOST_REGEX_NO_W32) # ifndef BOOST_W32_REGEX_TRAITS_HPP_INCLUDED # include
# endif #endif #ifndef BOOST_REGEX_FWD_HPP_INCLUDED #include
#endif #include "boost/mpl/has_xxx.hpp" #include
#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 namespace boost{ template
struct regex_traits : public implementationT { regex_traits() : implementationT() {} }; // // class regex_traits_wrapper. // this is what our implementation will actually store; // it provides default implementations of the "optional" // interfaces that we support, in addition to the // required "standard" ones: // namespace re_detail{ #if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) && !BOOST_WORKAROUND(__HP_aCC, < 60000) BOOST_MPL_HAS_XXX_TRAIT_DEF(boost_extensions_tag) #else template
struct has_boost_extensions_tag { BOOST_STATIC_CONSTANT(bool, value = false); }; #endif template
struct default_wrapper : public BaseT { typedef typename BaseT::char_type char_type; std::string error_string(::boost::regex_constants::error_type e)const { return ::boost::re_detail::get_default_error_string(e); } ::boost::regex_constants::syntax_type syntax_type(char_type c)const { return ((c & 0x7f) == c) ? get_default_syntax_type(static_cast
(c)) : ::boost::regex_constants::syntax_char; } ::boost::regex_constants::escape_syntax_type escape_syntax_type(char_type c)const { return ((c & 0x7f) == c) ? get_default_escape_syntax_type(static_cast
(c)) : ::boost::regex_constants::escape_type_identity; } int toi(const char_type*& p1, const char_type* p2, int radix)const { return ::boost::re_detail::global_toi(p1, p2, radix, *this); } char_type translate(char_type c, bool icase)const { return (icase ? this->translate_nocase(c) : this->translate(c)); } char_type translate(char_type c)const { return BaseT::translate(c); } char_type tolower(char_type c)const { return ::boost::re_detail::global_lower(c); } char_type toupper(char_type c)const { return ::boost::re_detail::global_upper(c); } }; template
struct compute_wrapper_base { typedef BaseT type; }; #if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) && !BOOST_WORKAROUND(__HP_aCC, < 60000) template
struct compute_wrapper_base
{ typedef default_wrapper
type; }; #else template <> struct compute_wrapper_base
, false> { typedef default_wrapper
> type; }; #ifndef BOOST_NO_WREGEX template <> struct compute_wrapper_base
, false> { typedef default_wrapper
> type; }; #endif #endif } // namespace re_detail template
struct regex_traits_wrapper : public ::boost::re_detail::compute_wrapper_base< BaseT, ::boost::re_detail::has_boost_extensions_tag
::value >::type { regex_traits_wrapper(){} private: regex_traits_wrapper(const regex_traits_wrapper&); regex_traits_wrapper& operator=(const regex_traits_wrapper&); }; } // namespace boost #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 #endif // include
regex_traits.hpp
网页地址
文件地址
上一页
35/43
下一页
下载
( 5 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.