From 658b5c946e49d72266377750d6b96107113f7677 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 10 Jul 2023 11:54:00 -0700 Subject: String is now not shared. --- src/stable/string.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/stable/string.h') diff --git a/src/stable/string.h b/src/stable/string.h index 1fc5496..b174031 100644 --- a/src/stable/string.h +++ b/src/stable/string.h @@ -58,12 +58,8 @@ namespace Bu /** */ - class String : public SharedCore + class String { - protected: - using SharedCore::core; - using SharedCore::_hardCopy; - private: typedef StringCore::Chunk Chunk; @@ -696,6 +692,9 @@ namespace Bu */ void clear(); + const String &clone() const; + void unshare(); + String replace( const String &fnd, const String &rep ) const; /** @@ -1054,6 +1053,9 @@ namespace Bu { return FormatProxy( *this, pEndAction ); } + + protected: + StringCore *core; }; template String operator+( const T *pLeft, const String &rRight ) -- cgit v1.2.3