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
/////////////////////////////////////////////////////////////////////////////// /// \file null_regex_traits.hpp /// Contains the definition of the null_regex_traits\<\> template, which is a /// stub regex traits implementation that can be used by static and dynamic /// regexes for searching non-character data. // // 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_TRAITS_NULL_REGEX_TRAITS_HPP_EAN_10_04_2005 #define BOOST_XPRESSIVE_TRAITS_NULL_REGEX_TRAITS_HPP_EAN_10_04_2005 // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif #include
#include
#include
#include
#include
#include
namespace boost { namespace xpressive { namespace detail { struct not_a_locale {}; } struct regex_traits_version_1_tag; /////////////////////////////////////////////////////////////////////////////// // null_regex_traits // /// \brief stub regex_traits for non-char data /// template
struct null_regex_traits { typedef Elem char_type; typedef std::vector
string_type; typedef detail::not_a_locale locale_type; typedef int char_class_type; typedef regex_traits_version_1_tag version_tag; /// Initialize a null_regex_traits object. /// null_regex_traits(locale_type = locale_type()) { } /// Checks two null_regex_traits objects for equality /// /// \return true. bool operator ==(null_regex_traits
const &that) const { detail::ignore_unused(that); return true; } /// Checks two null_regex_traits objects for inequality /// /// \return false. bool operator !=(null_regex_traits
const &that) const { detail::ignore_unused(that); return false; } /// Convert a char to a Elem /// /// \param ch The source character. /// \return Elem(ch). char_type widen(char ch) const { return char_type(ch); } /// Returns a hash value for a Elem in the range [0, UCHAR_MAX] /// /// \param ch The source character. /// \return a value between 0 and UCHAR_MAX, inclusive. static unsigned char hash(char_type ch) { return static_cast
(ch); } /// No-op /// /// \param ch The source character. /// \return ch static char_type translate(char_type ch) { return ch; } /// No-op /// /// \param ch The source character. /// \return ch static char_type translate_nocase(char_type ch) { return ch; } /// Checks to see if a character is within a character range. /// /// \param first The bottom of the range, inclusive. /// \param last The top of the range, inclusive. /// \param ch The source character. /// \return first <= ch && ch <= last. static bool in_range(char_type first, char_type last, char_type ch) { return first <= ch && ch <= last; } /// Checks to see if a character is within a character range. /// /// \param first The bottom of the range, inclusive. /// \param last The top of the range, inclusive. /// \param ch The source character. /// \return first <= ch && ch <= last. /// \attention Since the null_regex_traits does not do case-folding, /// this function is equivalent to in_range(). static bool in_range_nocase(char_type first, char_type last, char_type ch) { return first <= ch && ch <= last; } /// Returns a sort key for the character sequence designated by the iterator range [F1, F2) /// such that if the character sequence [G1, G2) sorts before the character sequence [H1, H2) /// then v.transform(G1, G2) < v.transform(H1, H2). /// /// \attention Not used in xpressive 1.0 template
static string_type transform(FwdIter begin, FwdIter end) { return string_type(begin, end); } /// Returns a sort key for the character sequence designated by the iterator range [F1, F2) /// such that if the character sequence [G1, G2) sorts before the character sequence [H1, H2) /// when character case is not considered then /// v.transform_primary(G1, G2) < v.transform_primary(H1, H2). /// /// \attention Not used in xpressive 1.0 template
static string_type transform_primary(FwdIter begin, FwdIter end) { return string_type(begin, end); } /// Returns a sequence of characters that represents the collating element /// consisting of the character sequence designated by the iterator range [F1, F2). /// Returns an empty string if the character sequence is not a valid collating element. /// /// \attention Not used in xpressive 1.0 template
static string_type lookup_collatename(FwdIter begin, FwdIter end) { detail::ignore_unused(begin); detail::ignore_unused(end); return string_type(); } /// The null_regex_traits does not have character classifications, so lookup_classname() /// is unused. /// /// \param begin not used /// \param end not used /// \param icase not used /// \return static_cast\
(0) template
static char_class_type lookup_classname(FwdIter begin, FwdIter end, bool icase) { detail::ignore_unused(begin); detail::ignore_unused(end); detail::ignore_unused(icase); return 0; } /// The null_regex_traits does not have character classifications, so isctype() /// is unused. /// /// \param ch not used /// \param mask not used /// \return false static bool isctype(char_type ch, char_class_type mask) { detail::ignore_unused(ch); detail::ignore_unused(mask); return false; } /// The null_regex_traits recognizes no elements as digits, so value() is unused. /// /// \param ch not used /// \param radix not used /// \return -1 static int value(char_type ch, int radix) { detail::ignore_unused(ch); detail::ignore_unused(radix); return -1; } /// Not used /// /// \param loc not used /// \return loc static locale_type imbue(locale_type loc) { return loc; } /// Returns locale_type(). /// /// \return locale_type() static locale_type getloc() { return locale_type(); } }; }} #endif
null_regex_traits.hpp
Page URL
File URL
Prev
3/3 Next
Download
( 6 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.