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
// Boost string_algo library find_regex.hpp header file ---------------------------// // Copyright Pavol Droba 2002-2003. // // 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) // See http://www.boost.org/ for updates, documentation, and revision history. #ifndef BOOST_STRING_FINDER_REGEX_DETAIL_HPP #define BOOST_STRING_FINDER_REGEX_DETAIL_HPP #include
#include
#include
#include
#include
namespace boost { namespace algorithm { namespace detail { // regex find functor -----------------------------------------------// // regex search result template
struct regex_search_result : public iterator_range
{ typedef regex_search_result
type; typedef iterator_range
base_type; typedef BOOST_STRING_TYPENAME base_type::value_type value_type; typedef BOOST_STRING_TYPENAME base_type::difference_type difference_type; typedef BOOST_STRING_TYPENAME base_type::const_iterator const_iterator; typedef BOOST_STRING_TYPENAME base_type::iterator iterator; typedef boost::match_results
match_results_type; // Construction // Construction from the match result regex_search_result( const match_results_type& MatchResults ) : base_type( MatchResults[0].first, MatchResults[0].second ), m_MatchResults( MatchResults ) {} // Construction of empty match. End iterator has to be specified regex_search_result( IteratorT End ) : base_type( End, End ) {} regex_search_result( const regex_search_result& Other ) : base_type( Other.begin(), Other.end() ), m_MatchResults( Other.m_MatchResults ) {} // Assignment regex_search_result& operator=( const regex_search_result& Other ) { base_type::operator=( Other ); m_MatchResults=Other.m_MatchResults; return *this; } // Match result retrival const match_results_type& match_results() const { return m_MatchResults; } private: // Saved matchresult match_results_type m_MatchResults; }; // find_regex /* Regex based search functor */ template
struct find_regexF { typedef RegExT regex_type; typedef const RegExT& regex_reference_type; // Construction find_regexF( regex_reference_type Rx, match_flag_type MatchFlags = match_default ) : m_Rx(Rx), m_MatchFlags(MatchFlags) {} // Operation template< typename ForwardIteratorT > regex_search_result
operator()( ForwardIteratorT Begin, ForwardIteratorT End ) const { typedef ForwardIteratorT input_iterator_type; typedef regex_search_result
result_type; // instantiate match result match_results
result; // search for a match if ( regex_search( Begin, End, result, m_Rx, m_MatchFlags ) ) { // construct a result return result_type( result ); } else { // empty result return result_type( End ); } } private: regex_reference_type m_Rx; // Regexp match_flag_type m_MatchFlags; // match flags }; } // namespace detail } // namespace algorithm } // namespace boost #endif // BOOST_STRING_FIND_DETAIL_HPP
finder_regex.hpp
Page URL
File URL
Prev
8/15
Next
Download
( 4 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.