summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ocl/tproc/detail/rope_fwd.hpp12
-rw-r--r--include/ocl/tproc/rope.hpp25
2 files changed, 22 insertions, 15 deletions
diff --git a/include/ocl/tproc/detail/rope_fwd.hpp b/include/ocl/tproc/detail/rope_fwd.hpp
index 5362f9b..6513a01 100644
--- a/include/ocl/tproc/detail/rope_fwd.hpp
+++ b/include/ocl/tproc/detail/rope_fwd.hpp
@@ -29,13 +29,13 @@ namespace ocl::tproc
using const_reference = const CharT&;
using pointer = std::allocator_traits<Allocator>::pointer;
using const_pointer = std::allocator_traits<Allocator>::pointer;
- using iterator_type = basic_rope<CharT, Traits, Allocator>&;
-
+ using iterator_type = basic_rope<CharT, Traits, Allocator>&;
+
iterator_type rbegin();
- iterator_type rend();
-
- iterator_type begin();
- iterator_type end();
+ iterator_type rend();
+
+ iterator_type begin();
+ iterator_type end();
/// \todo do we need const_iterator_type now?
const iterator_type cbegin() const;
diff --git a/include/ocl/tproc/rope.hpp b/include/ocl/tproc/rope.hpp
index e0a41b6..5842f01 100644
--- a/include/ocl/tproc/rope.hpp
+++ b/include/ocl/tproc/rope.hpp
@@ -25,7 +25,7 @@ namespace ocl::tproc::rope
template <typename It>
It operator()(It rbegin, It rend)
- {
+ {
for (auto rbeg{rbegin}; rbegin != rend; ++rbeg)
{
if (*rbeg == cond_)
@@ -49,9 +49,11 @@ namespace ocl::tproc::rope
template <typename It>
It operator()(It begin, It end)
{
- auto cmp = std::transform(cond_.begin(), cond_.end(), [](std::string::char_type& ch) {
- return std::toupper(ch);
- });
+ std::transform(cond_.begin(),
+ cond_.end(),
+ [](std::string::char_type& ch) {
+ return std::toupper(ch);
+ });
for (auto beg{begin}; begin != end; ++beg)
{
@@ -76,9 +78,11 @@ namespace ocl::tproc::rope
template <typename It>
It operator()(It begin, It end)
{
- auto cmp = std::transform(cond_.begin(), cond_.end(), [](std::string::char_type& ch) {
- return std::tolower(ch);
- });
+ std::transform(cond_.begin(),
+ cond_.end(),
+ [](std::string::char_type& ch) {
+ return std::tolower(ch);
+ });
for (auto beg{begin}; begin != end; ++beg)
{
@@ -102,7 +106,7 @@ namespace ocl::tproc::rope
template <typename It>
It operator()(It begin, It end)
- {
+ {
for (auto beg{begin}; begin != end; ++beg)
{
if (*beg == cond_)
@@ -124,7 +128,10 @@ namespace ocl::tproc::rope
}
template <typename It>
- It operator()(It begin, It end) { return end; }
+ It operator()(It begin, It end)
+ {
+ return end;
+ }
};
} // namespace ocl::tproc::rope