/
usr
/
include
/
boost
/
regex
/
v4
/
/usr/include/boost/regex/v4
mkdir
upload
Name
Size
Mode
Actions
basic_regex.hpp
24089
0644
edit
dl
rm
basic_regex_creator.hpp
54206
0644
edit
dl
rm
basic_regex_parser.hpp
112851
0644
edit
dl
rm
char_regex_traits.hpp
1726
0644
edit
dl
rm
cpp_regex_traits.hpp
39425
0644
edit
dl
rm
cregex.hpp
10987
0644
edit
dl
rm
c_regex_traits.hpp
5497
0644
edit
dl
rm
error_type.hpp
1258
0644
edit
dl
rm
fileiter.hpp
14377
0644
edit
dl
rm
indexed_bit_flag.hpp
1316
0644
edit
dl
rm
instances.hpp
9080
0644
edit
dl
rm
iterator_category.hpp
1960
0644
edit
dl
rm
iterator_traits.hpp
3802
0644
edit
dl
rm
match_flags.hpp
6934
0644
edit
dl
rm
match_results.hpp
22773
0644
edit
dl
rm
mem_block_cache.hpp
3132
0644
edit
dl
rm
perl_matcher.hpp
18847
0644
edit
dl
rm
perl_matcher_common.hpp
30476
0644
edit
dl
rm
perl_matcher_non_recursive.hpp
63238
0644
edit
dl
rm
perl_matcher_recursive.hpp
34540
0644
edit
dl
rm
primary_transform.hpp
3347
0644
edit
dl
rm
protected_call.hpp
1688
0644
edit
dl
rm
regbase.hpp
5972
0644
edit
dl
rm
regex.hpp
4590
0644
edit
dl
rm
regex_format.hpp
34231
0644
edit
dl
rm
regex_fwd.hpp
1646
0644
edit
dl
rm
regex_grep.hpp
4879
0644
edit
dl
rm
regex_iterator.hpp
6474
0644
edit
dl
rm
regex_match.hpp
14475
0644
edit
dl
rm
regex_merge.hpp
2765
0644
edit
dl
rm
regex_raw_buffer.hpp
3686
0644
edit
dl
rm
regex_replace.hpp
2925
0644
edit
dl
rm
regex_search.hpp
7097
0644
edit
dl
rm
regex_split.hpp
4956
0644
edit
dl
rm
regex_token_iterator.hpp
12613
0644
edit
dl
rm
regex_traits.hpp
4965
0644
edit
dl
rm
regex_traits_defaults.hpp
11555
0644
edit
dl
rm
regex_workaround.hpp
6171
0644
edit
dl
rm
states.hpp
11915
0644
edit
dl
rm
sub_match.hpp
23155
0644
edit
dl
rm
syntax_type.hpp
4374
0644
edit
dl
rm
u32regex_iterator.hpp
6475
0644
edit
dl
rm
u32regex_token_iterator.hpp
15068
0644
edit
dl
rm
w32_regex_traits.hpp
24455
0644
edit
dl
rm
Edit:
/usr/include/boost/regex/v4/regex_raw_buffer.hpp
(3686B)
/* * * Copyright (c) 1998-2002 * John Maddock * * Use, modification and distribution are 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) * */ /* * LOCATION: see http://www.boost.org for most recent version. * FILE regex_raw_buffer.hpp * VERSION see <boost/version.hpp> * DESCRIPTION: Raw character buffer for regex code. * Note this is an internal header file included * by regex.hpp, do not include on its own. */ #ifndef BOOST_REGEX_RAW_BUFFER_HPP #define BOOST_REGEX_RAW_BUFFER_HPP #ifndef BOOST_REGEX_CONFIG_HPP #include <boost/regex/config.hpp> #endif #include <algorithm> #include <cstddef> namespace boost{ namespace BOOST_REGEX_DETAIL_NS{ #ifdef BOOST_MSVC #pragma warning(push) #pragma warning(disable: 4103) #endif #ifdef BOOST_HAS_ABI_HEADERS # include BOOST_ABI_PREFIX #endif #ifdef BOOST_MSVC #pragma warning(pop) #endif struct empty_padding{}; union padding { void* p; unsigned int i; }; template <int N> struct padding3 { enum{ padding_size = 8, padding_mask = 7 }; }; template<> struct padding3<2> { enum{ padding_size = 2, padding_mask = 1 }; }; template<> struct padding3<4> { enum{ padding_size = 4, padding_mask = 3 }; }; template<> struct padding3<8> { enum{ padding_size = 8, padding_mask = 7 }; }; template<> struct padding3<16> { enum{ padding_size = 16, padding_mask = 15 }; }; enum{ padding_size = padding3<sizeof(padding)>::padding_size, padding_mask = padding3<sizeof(padding)>::padding_mask }; // // class raw_storage // basically this is a simplified vector<unsigned char> // this is used by basic_regex for expression storage // class BOOST_REGEX_DECL raw_storage { public: typedef std::size_t size_type; typedef unsigned char* pointer; private: pointer last, start, end; public: raw_storage(); raw_storage(size_type n); ~raw_storage() { ::operator delete(start); } void BOOST_REGEX_CALL resize(size_type n); void* BOOST_REGEX_CALL extend(size_type n) { if(size_type(last - end) < n) resize(n + (end - start)); pointer result = end; end += n; return result; } void* BOOST_REGEX_CALL insert(size_type pos, size_type n); size_type BOOST_REGEX_CALL size() { return size_type(end - start); } size_type BOOST_REGEX_CALL capacity() { return size_type(last - start); } void* BOOST_REGEX_CALL data()const { return start; } size_type BOOST_REGEX_CALL index(void* ptr) { return size_type(static_cast<pointer>(ptr) - static_cast<pointer>(data())); } void BOOST_REGEX_CALL clear() { end = start; } void BOOST_REGEX_CALL align() { // move end up to a boundary: end = start + (((end - start) + padding_mask) & ~padding_mask); } void swap(raw_storage& that) { std::swap(start, that.start); std::swap(end, that.end); std::swap(last, that.last); } }; inline raw_storage::raw_storage() { last = start = end = 0; } inline raw_storage::raw_storage(size_type n) { start = end = static_cast<pointer>(::operator new(n)); BOOST_REGEX_NOEH_ASSERT(start) last = start + n; } #ifdef BOOST_MSVC #pragma warning(push) #pragma warning(disable: 4103) #endif #ifdef BOOST_HAS_ABI_HEADERS # include BOOST_ABI_SUFFIX #endif #ifdef BOOST_MSVC #pragma warning(pop) #endif } // namespace BOOST_REGEX_DETAIL_NS } // namespace boost #endif
Save
cmd:
run