DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
True Drop Box
FTP/SFTP Hosting
Group Account
Team Anywhere
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
|
Cloud-to-Cloud Backup
|
DVR/Camera Backup
FTP, Email & Web Service
FTP/SFTP Hosting
|
Email Hosting
|
Web Hosting
|
Webcam Hosting
Other Products & Services
Team Anywhere
|
Connect to Remote PC
|
Cloud Surveillance
|
Virtual CCTV NVR
Quick Links
Security and Privacy
Customer Support
Service Manual
Use Cases
Group Account
Online Help
Support Forum
Contact Us
About DriveHQ
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
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
Other Features
Team Anywhere (Remote Desktop Service)
CameraFTP Cloud Surveillance
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Team Anywhere for Windows (Beta)
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
/*============================================================================= Copyright (c) 2001-2003 Joel de Guzman Copyright (c) 2001-2003 Daniel Nuffer http://spirit.sourceforge.net/ Use, modification and distribution is 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) =============================================================================*/ #ifndef BOOST_XPRESSIVE_SPIRIT_BASIC_CHSET_HPP_EAN_10_04_2005 #define BOOST_XPRESSIVE_SPIRIT_BASIC_CHSET_HPP_EAN_10_04_2005 /////////////////////////////////////////////////////////////////////////////// #include
#include
#include
namespace boost { namespace xpressive { namespace detail { /////////////////////////////////////////////////////////////////////////// // // basic_chset: basic character set implementation using range_run // /////////////////////////////////////////////////////////////////////////// template
struct basic_chset { basic_chset(); basic_chset(basic_chset const &arg); bool empty() const; void set(Char from, Char to); template
void set(Char from, Char to, Traits const &traits); void set(Char c); template
void set(Char c, Traits const &traits); void clear(Char from, Char to); template
void clear(Char from, Char to, Traits const &traits); void clear(Char c); template
void clear(Char c, Traits const &traits); void clear(); template
bool test(Char v, Traits const &traits, mpl::false_) const; // case-sensitive template
bool test(Char v, Traits const &traits, mpl::true_) const; // case-insensitive void inverse(); void swap(basic_chset& x); basic_chset &operator |=(basic_chset const &x); basic_chset &operator &=(basic_chset const &x); basic_chset &operator -=(basic_chset const &x); basic_chset &operator ^=(basic_chset const &x); private: range_run
rr_; }; #if(CHAR_BIT == 8) /////////////////////////////////////////////////////////////////////////// // // basic_chset: specializations for 8 bit chars using std::bitset // /////////////////////////////////////////////////////////////////////////// template
struct basic_chset_8bit { basic_chset_8bit(); basic_chset_8bit(basic_chset_8bit const &arg); bool empty() const; void set(Char from, Char to); template
void set(Char from, Char to, Traits const &traits); void set(Char c); template
void set(Char c, Traits const &traits); void clear(Char from, Char to); template
void clear(Char from, Char to, Traits const &traits); void clear(Char c); template
void clear(Char c, Traits const &traits); void clear(); template
bool test(Char v, Traits const &traits, mpl::false_) const; // case-sensitive template
bool test(Char v, Traits const &traits, mpl::true_) const; // case-insensitive void inverse(); void swap(basic_chset_8bit& x); basic_chset_8bit &operator |=(basic_chset_8bit const &x); basic_chset_8bit &operator &=(basic_chset_8bit const &x); basic_chset_8bit &operator -=(basic_chset_8bit const &x); basic_chset_8bit &operator ^=(basic_chset_8bit const &x); std::bitset<256> const &base() const; private: std::bitset<256> bset_; // BUGBUG range-checking slows this down }; ///////////////////////////////// template<> struct basic_chset
: basic_chset_8bit
{ }; ///////////////////////////////// template<> struct basic_chset
: basic_chset_8bit
{ }; ///////////////////////////////// template<> struct basic_chset
: basic_chset_8bit
{ }; #endif /////////////////////////////////////////////////////////////////////////////// // is_narrow_char template
struct is_narrow_char : mpl::false_ {}; template<> struct is_narrow_char
: mpl::true_ {}; template<> struct is_narrow_char
: mpl::true_ {}; template<> struct is_narrow_char
: mpl::true_ {}; /////////////////////////////////////////////////////////////////////////////// // helpers template
void set_char(basic_chset
&chset, Char ch, Traits const &traits, bool icase); template
void set_range(basic_chset
&chset, Char from, Char to, Traits const &traits, bool icase); template
void set_class(basic_chset
&chset, typename Traits::char_class_type char_class, bool no, Traits const &traits); }}} // namespace boost::xpressive::detail #endif
basic_chset.hpp
Page URL
File URL
Prev 1/5
Next
Download
( 5 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.