aboutsummaryrefslogtreecommitdiff
path: root/src/stable/string.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2023-07-10 11:54:00 -0700
committerMike Buland <eichlan@xagasoft.com>2023-07-10 11:54:00 -0700
commit658b5c946e49d72266377750d6b96107113f7677 (patch)
treea97907c7ccf10df5c0cc25d300c767cf7131e822 /src/stable/string.h
parentfd7583acc0adcce2fa63d21755091ddb3077aa14 (diff)
downloadlibbu++-658b5c946e49d72266377750d6b96107113f7677.tar.gz
libbu++-658b5c946e49d72266377750d6b96107113f7677.tar.bz2
libbu++-658b5c946e49d72266377750d6b96107113f7677.tar.xz
libbu++-658b5c946e49d72266377750d6b96107113f7677.zip
String is now not shared.
Diffstat (limited to '')
-rw-r--r--src/stable/string.h12
1 files changed, 7 insertions, 5 deletions
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
58 58
59 /** 59 /**
60 */ 60 */
61 class String : public SharedCore<String, StringCore> 61 class String
62 { 62 {
63 protected:
64 using SharedCore<String, StringCore >::core;
65 using SharedCore<String, StringCore >::_hardCopy;
66
67 private: 63 private:
68 typedef StringCore::Chunk Chunk; 64 typedef StringCore::Chunk Chunk;
69 65
@@ -696,6 +692,9 @@ namespace Bu
696 */ 692 */
697 void clear(); 693 void clear();
698 694
695 const String &clone() const;
696 void unshare();
697
699 String replace( const String &fnd, const String &rep ) const; 698 String replace( const String &fnd, const String &rep ) const;
700 699
701 /** 700 /**
@@ -1054,6 +1053,9 @@ namespace Bu
1054 { 1053 {
1055 return FormatProxy( *this, pEndAction ); 1054 return FormatProxy( *this, pEndAction );
1056 } 1055 }
1056
1057 protected:
1058 StringCore *core;
1057 }; 1059 };
1058 1060
1059 template<class T> String operator+( const T *pLeft, const String &rRight ) 1061 template<class T> String operator+( const T *pLeft, const String &rRight )