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
/////////////////////////////////////////////////////////////////////////////// // transmogrify.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_STATIC_TRANSMOGRIFY_HPP_EAN_10_04_2005 #define BOOST_XPRESSIVE_DETAIL_STATIC_TRANSMOGRIFY_HPP_EAN_10_04_2005 // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif #include
// for std::strlen #include
#include
#include
#include
#include
#include
#include
#include
#include
#include
namespace boost { namespace xpressive { namespace detail { template
struct is_char_literal : mpl::or_
, is_same
> {}; /////////////////////////////////////////////////////////////////////////////// // transmogrify // template
struct default_transmogrify { typedef typename Traits::char_type char_type; typedef typename Traits::string_type string_type; typedef typename mpl::if_ < is_char_literal
, literal_matcher
, string_matcher
>::type type; template
static type call(Matcher2 const &m, Visitor &visitor) { return default_transmogrify::call_(m, visitor, is_char_literal
()); } template
static type call_(Matcher2 const &m, Visitor &visitor, mpl::true_) { char_type ch = char_cast
(m, visitor.traits()); return type(ch, visitor.traits()); } template
static type call_(Matcher2 const &m, Visitor &visitor, mpl::false_) { string_type str = string_cast
(m, visitor.traits()); return type(str, visitor.traits()); } }; template
struct default_transmogrify
{ typedef Matcher type; template
static Matcher2 const &call(Matcher2 const &m, dont_care) { return m; } }; template
struct transmogrify : default_transmogrify
{}; template
struct transmogrify
{ typedef assert_bol_matcher
type; template
static type call(Matcher2, Visitor &visitor) { return type(visitor.traits()); } }; template
struct transmogrify
{ typedef assert_eol_matcher
type; template
static type call(Matcher2, Visitor &visitor) { return type(visitor.traits()); } }; template
struct transmogrify
{ typedef logical_newline_matcher
type; template
static type call(Matcher2, Visitor &visitor) { return type(visitor.traits()); } }; template
struct transmogrify
> { // By design, we don't widen character ranges. typedef typename iterator_value
::type char_type; BOOST_MPL_ASSERT((is_same
)); typedef range_matcher
type; template
static type call(Matcher2 const &m, Visitor &visitor) { return type(m.ch_min_, m.ch_max_, m.not_, visitor.traits()); } }; template
struct transmogrify
{ typedef mark_matcher
type; template
static type call(Matcher2 const &m, Visitor &visitor) { return type(m.mark_number_, visitor.traits()); } }; template
struct transmogrify
{ typedef posix_charset_matcher
type; template
static type call(Matcher2 const &m, Visitor &visitor) { char const *name_end = m.name_ + std::strlen(m.name_); return type(visitor.traits().lookup_classname(m.name_, name_end, ICase::value), m.not_); } }; template
struct transmogrify
> { typedef set_matcher
type; template
static type call(Matcher2 m, Visitor &visitor) { m.nocase(visitor.traits()); return m; } }; template
struct transmogrify
> { typedef assert_word_matcher
type; template
static type call(dont_care, Visitor &visitor) { return type(visitor.traits()); } }; template
struct transmogrify
> > { typedef regex_byref_matcher
type; template
static type call(Matcher2 const &m, dont_care) { return type(detail::core_access
::get_regex_impl(m.get())); } }; template
struct transmogrify
const> > { typedef regex_byref_matcher
type; template
static type call(Matcher2 const &m, dont_care) { return type(detail::core_access
::get_regex_impl(m.get())); } }; template
struct transmogrify
> > { typedef regex_matcher
type; template
static type call(Matcher2 const &m, dont_care) { return type(m.get()); } }; template
struct transmogrify
{ typedef regex_byref_matcher
type; template
static type call(Matcher2, Visitor &visitor) { return type(visitor.self()); } }; }}} #endif
transmogrify.hpp
Page URL
File URL
Prev
7/10
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.