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
/// Contains the definition of the basic_regex\<\> class template and its associated helper functions. // // 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_FINDER_HPP_EAN_10_04_2005 #define BOOST_XPRESSIVE_DETAIL_CORE_FINDER_HPP_EAN_10_04_2005 // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once # pragma warning(push) # pragma warning(disable : 4189) // local variable is initialized but not referenced #endif #include
#include
#include
#include
namespace boost { namespace xpressive { namespace detail { /////////////////////////////////////////////////////////////////////////////// // boyer_moore_finder // template
struct boyer_moore_finder : finder
{ typedef typename iterator_value
::type char_type; boyer_moore_finder(char_type const *begin, char_type const *end, Traits const &tr, bool icase) : bm_(begin, end, tr, icase) { } bool ok_for_partial_matches() const { return false; } bool operator ()(match_state
&state) const { Traits const &traits = traits_cast
(state); state.cur_ = this->bm_.find(state.cur_, state.end_, traits); return state.cur_ != state.end_; } private: boyer_moore_finder(boyer_moore_finder const &); boyer_moore_finder &operator =(boyer_moore_finder const &); boyer_moore
bm_; }; /////////////////////////////////////////////////////////////////////////////// // hash_peek_finder // template
struct hash_peek_finder : finder
{ typedef typename iterator_value
::type char_type; hash_peek_finder(hash_peek_bitset
const &bset) : bset_(bset) { } bool operator ()(match_state
&state) const { Traits const &traits = traits_cast
(state); state.cur_ = (this->bset_.icase() ? this->find_(state.cur_, state.end_, traits, mpl::true_()) : this->find_(state.cur_, state.end_, traits, mpl::false_())); return state.cur_ != state.end_; } private: hash_peek_finder(hash_peek_finder const &); hash_peek_finder &operator =(hash_peek_finder const &); template
BidiIter find_(BidiIter begin, BidiIter end, Traits const &traits, ICase) const { for(; begin != end && !this->bset_.test(*begin, traits, ICase()); ++begin) ; return begin; } hash_peek_bitset
bset_; }; /////////////////////////////////////////////////////////////////////////////// // line_start_finder // template
::type)> struct line_start_finder : finder
{ typedef typename iterator_value
::type char_type; typedef typename iterator_difference
::type diff_type; typedef typename Traits::char_class_type char_class_type; line_start_finder(Traits const &traits) : newline_(lookup_classname(traits, "newline")) { } bool operator ()(match_state
&state) const { if(state.bos() && state.flags_.match_bol_) { return true; } Traits const &traits = traits_cast
(state); BidiIter cur = state.cur_; BidiIter const end = state.end_; std::advance(cur, static_cast
(-!state.bos())); for(; cur != end; ++cur) { if(traits.isctype(*cur, this->newline_)) { state.cur_ = ++cur; return true; } } return false; } private: line_start_finder(line_start_finder const &); line_start_finder &operator =(line_start_finder const &); char_class_type newline_; }; /////////////////////////////////////////////////////////////////////////////// // line_start_finder // template
struct line_start_finder
: finder
{ typedef typename iterator_value
::type char_type; typedef typename iterator_difference
::type diff_type; typedef typename Traits::char_class_type char_class_type; line_start_finder(Traits const &traits) { char_class_type newline = lookup_classname(traits, "newline"); for(int j = 0; j < 256; ++j) { this->bits_[j] = traits.isctype(static_cast
(static_cast
(j)), newline); } } bool operator ()(match_state
&state) const { if(state.bos() && state.flags_.match_bol_) { return true; } BidiIter cur = state.cur_; BidiIter const end = state.end_; std::advance(cur, static_cast
(-!state.bos())); for(; cur != end; ++cur) { if(this->bits_[static_cast
(*cur)]) { state.cur_ = ++cur; return true; } } return false; } private: line_start_finder(line_start_finder const &); line_start_finder &operator =(line_start_finder const &); bool bits_[256]; }; }}} #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma warning(pop) #endif #endif
finder.hpp
Page URL
File URL
Prev
4/16
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.