diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-26 21:01:46 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-26 21:01:46 +0100 |
| commit | b608fb79a0100a178fe682ff6d0ba96c90f78bff (patch) | |
| tree | de4311826e5eaedfa2cc3de5ca58f287c66e87f3 /include/ocl | |
| parent | 62dc37371aa95fed51c30447c2596697d7421ead (diff) | |
feat: tproc: add methods and fix inline definitions.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/ocl')
| -rw-r--r-- | include/ocl/tproc/detail/rope_fwd.hpp | 15 | ||||
| -rw-r--r-- | include/ocl/tproc/detail/rope_fwd.inl | 1 |
2 files changed, 13 insertions, 3 deletions
diff --git a/include/ocl/tproc/detail/rope_fwd.hpp b/include/ocl/tproc/detail/rope_fwd.hpp index 4a0264f..1691f93 100644 --- a/include/ocl/tproc/detail/rope_fwd.hpp +++ b/include/ocl/tproc/detail/rope_fwd.hpp @@ -30,11 +30,22 @@ namespace ocl::tproc using pointer = std::allocator_traits<Allocator>::pointer; using const_pointer = std::allocator_traits<Allocator>::pointer; - CharT* begin(); - CharT* end(); + CharT* begin(); + CharT* end(); + + const CharT* cbegin() const; + const CharT* cend() const; + + /// \brief Extarcts a needle from a position of n length. + basic_rope<CharT, Traits, Allocator>& substr(size_type pos, const size_type n = 0); + + /// \brief Rope's version of the find method. + size_type find(const boost::core::string_view& needle); + size_type size(); bool empty() const; + public: ~basic_rope(); basic_rope(const boost::core::basic_string_view<CharT>& in = {}); diff --git a/include/ocl/tproc/detail/rope_fwd.inl b/include/ocl/tproc/detail/rope_fwd.inl index 46b095d..b1c5c4e 100644 --- a/include/ocl/tproc/detail/rope_fwd.inl +++ b/include/ocl/tproc/detail/rope_fwd.inl @@ -50,7 +50,6 @@ namespace ocl::tproc basic_rope<CharT, Traits, Allocator>&& other) { impl_ = std::exchange(other.impl_); - rope.impl_ = nullptr; } template <class CharT, class Traits, class Allocator> |
