From b608fb79a0100a178fe682ff6d0ba96c90f78bff Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 26 Dec 2025 21:01:46 +0100 Subject: feat: tproc: add methods and fix inline definitions. Signed-off-by: Amlal El Mahrouss --- include/ocl/tproc/detail/rope_fwd.hpp | 15 +++++++++++++-- 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::pointer; using const_pointer = std::allocator_traits::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& 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& 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&& other) { impl_ = std::exchange(other.impl_); - rope.impl_ = nullptr; } template -- cgit v1.2.3