DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
Cloud Backup
True Drop Box
FTP/SFTP Hosting
Group Account
DriveHQ Start Menu
Online File Server
My Storage
|
Manage Shares
|
Publishes
|
Drop Boxes
|
Group Account
WebDAV Drive Mapping
Cloud Drive Home
|
WebDAV Guide
|
Drive Mapping Tool
|
Drive Mapping URL
Complete Data Backup
Backup Guide
|
Online Backup Tool
|
Cloud-to-Cloud Backup
FTP, Email & Web Service
FTP Home
|
FTP Hosting FAQ
|
Email Hosting
|
EmailManager
|
Web Hosting
Help & Resources
About
|
Enterprise Service
|
Partnership
|
Comparisons
|
Support
Quick Links
Security and Privacy
Download Software
Service Manual
Use Cases
Group Account
Online Help
Blog
Contact
Cloud Surveillance
Sign Up
Login
Features
Business Features
Online File Server
FTP Hosting
Cloud Drive Mapping
Cloud File Backup
Email Backup & Hosting
Cloud File Sharing
Folder Synchronization
Group Management
True Drop Box
Full-text Search
AD Integration/SSO
Mobile Access
IP Camera & DVR Solution
More...
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
More...
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Mobile Apps
Pricing
Business Plans & Pricing
Personal Plans & Pricing
Price Comparison with Others
Feature Comparison with Others
Install Mobile App
Sign up
Creating account...
Invalid character in username! Only 0-9, a-z, A-Z, _, -, . allowed.
Username is required!
Invalid email address!
E-mail is required!
Password is required!
Password is invalid!
Password and confirmation do not match.
Confirm password is required!
I accept
Membership Agreement
Please read the Membership Agreement and check "I accept"!
Free Quick Sign-up
Sign-up Page
Log in
Signing in...
Username or e-mail address is required!
Password is required!
Keep me logged in
Quick Login
Forgot Password
Up
Upload
Download
Share
Publish
New Folder
New File
Copy
Cut
Delete
Paste
Rate
Upgrade
Rotate
Effect
Edit
Slide
History
/////////////////////////////////////////////////////////////////////////////// // linker.hpp // // Copyright 2007 Eric Niebler. Distributed under 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) #ifndef BOOST_XPRESSIVE_DETAIL_CORE_LINKER_HPP_EAN_10_04_2005 #define BOOST_XPRESSIVE_DETAIL_CORE_LINKER_HPP_EAN_10_04_2005 // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif #include
#ifndef BOOST_NO_STD_LOCALE # include
#endif #include
#include
#include
#include
#include
#include
#if BOOST_VERSION >= 103500 # include
#else # include
#endif #include
#include
#include
#include
#include
namespace boost { namespace xpressive { namespace detail { /////////////////////////////////////////////////////////////////////////////// // icase_modifier // // wrapped by the modifier<> template and inserted into the xpression // template with the icase() helper function. icase_modifier morphs // a case-sensitive visitor into a case-insensitive visitor, which // causes all matchers visited to become case-insensitive. // struct icase_modifier { template
struct apply {}; template
struct apply
> { typedef xpression_visitor
type; }; template
static typename apply
::type call(Visitor &visitor) { return typename apply
::type(visitor.traits(), visitor.self()); } }; /////////////////////////////////////////////////////////////////////////////// // regex_traits_type : wrap a locale in the appropriate regex_traits // template
struct regex_traits_type { #ifndef BOOST_NO_STD_LOCALE typedef typename iterator_value
::type char_type; // if Locale is std::locale, wrap it in a cpp_regex_traits
typedef typename mpl::if_ < is_same
, cpp_regex_traits
, Locale >::type type; #else typedef Locale type; #endif }; /////////////////////////////////////////////////////////////////////////////// // locale_modifier // // wrapped by the modifier<> template and inserted into the xpression // template with the imbue() helper function. Causes a sub-xpression to // use the specified Locale // template
struct locale_modifier { typedef Locale locale_type; locale_modifier(Locale const &loc) : loc_(loc) { } template
struct apply {}; template
struct apply
> { typedef typename regex_traits_type
::type traits_type; typedef xpression_visitor
type; }; template
typename apply
::type call(Visitor &visitor) const { return typename apply
::type(this->loc_, visitor.self()); } Locale getloc() const { return this->loc_; } private: Locale loc_; }; /////////////////////////////////////////////////////////////////////////////// // xpression_linker // template
struct xpression_linker { template
explicit xpression_linker(Traits const &traits) : back_stack_() , traits_(&traits) , traits_type_(&typeid(Traits)) { } template
void accept(Matcher const &, void const *) { // no-op } void accept(repeat_begin_matcher const &, void const *next) { this->back_stack_.push(next); } template
void accept(repeat_end_matcher
const &matcher, void const *) { matcher.back_ = this->back_stack_.top(); this->back_stack_.pop(); } template
void accept(alternate_matcher
const &matcher, void const *next) { xpression_peeker
peeker(matcher.bset_, this->get_traits
()); this->alt_link(matcher.alternates_, next, &peeker); } void accept(alternate_end_matcher const &matcher, void const *) { matcher.back_ = this->back_stack_.top(); this->back_stack_.pop(); } template
void accept(optional_matcher
const &matcher, void const *next) { this->back_stack_.push(next); matcher.xpr_.link(*this); } template
void accept(optional_mark_matcher
const &matcher, void const *next) { this->back_stack_.push(next); matcher.xpr_.link(*this); } template
void accept(keeper_matcher
const &matcher, void const *) { matcher.xpr_.link(*this); } template
void accept(lookahead_matcher
const &matcher, void const *) { matcher.xpr_.link(*this); } template
void accept(lookbehind_matcher
const &matcher, void const *) { matcher.xpr_.link(*this); } template
void accept(simple_repeat_matcher
const &matcher, void const *) { matcher.xpr_.link(*this); } // for use by alt_link_pred below template
void alt_branch_link(Xpr const &xpr, void const *next, xpression_peeker
*peeker) { this->back_stack_.push(next); xpr.link(*this); xpr.peek(*peeker); } private: /////////////////////////////////////////////////////////////////////////////// // alt_link_pred // struct alt_link_pred { xpression_linker
*linker_; xpression_peeker
*peeker_; void const *next_; alt_link_pred ( xpression_linker
*linker , xpression_peeker
*peeker , void const *next ) : linker_(linker) , peeker_(peeker) , next_(next) { } template
void operator ()(Xpr const &xpr) const { this->linker_->alt_branch_link(xpr, this->next_, this->peeker_); } }; template
void alt_link ( alternates_vector
const &alternates , void const *next , xpression_peeker
*peeker ) { std::for_each(alternates.begin(), alternates.end(), alt_link_pred(this, peeker, next)); } template
void alt_link ( fusion::sequence_base
const &alternates , void const *next , xpression_peeker
*peeker ) { #if BOOST_VERSION >= 103500 fusion::for_each(alternates.derived(), alt_link_pred(this, peeker, next)); #else fusion::for_each(alternates.cast(), alt_link_pred(this, peeker, next)); #endif } template
Traits const &get_traits() const { BOOST_ASSERT(*this->traits_type_ == typeid(Traits)); return *static_cast
(this->traits_); } std::stack
back_stack_; void const *traits_; std::type_info const *traits_type_; }; }}} // namespace boost::xpressive::detail #endif
linker.hpp
Page URL
File URL
Prev
7/16
Next
Download
( 8 KB )
Note: The DriveHQ service banners will NOT be displayed if the file owner is a paid member.
Comments
Total ratings:
0
Average rating:
Not Rated
Would you like to comment?
Join DriveHQ
for a free account, or
Logon
if you are already a member.