aboutsummaryrefslogtreecommitdiff
path: root/src/stable/string.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2014-01-30 03:36:23 +0000
committerMike Buland <eichlan@xagasoft.com>2014-01-30 03:36:23 +0000
commit9072b0c98ba4f9412885a1a32002ee7214fd3dc0 (patch)
tree1f6f205c8f28da415fd12ce4a835b83efc52fb8c /src/stable/string.cpp
parent86e37bec7b2101555635201f83352c0e054f1849 (diff)
downloadlibbu++-9072b0c98ba4f9412885a1a32002ee7214fd3dc0.tar.gz
libbu++-9072b0c98ba4f9412885a1a32002ee7214fd3dc0.tar.bz2
libbu++-9072b0c98ba4f9412885a1a32002ee7214fd3dc0.tar.xz
libbu++-9072b0c98ba4f9412885a1a32002ee7214fd3dc0.zip
Attempting to fix OSX compatibility, it's not 100%, but it builds and most things seem to work. We've also tested against LLVM.
Diffstat (limited to '')
-rw-r--r--src/stable/string.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/stable/string.cpp b/src/stable/string.cpp
index bf3aac0..1ceaec1 100644
--- a/src/stable/string.cpp
+++ b/src/stable/string.cpp
@@ -173,6 +173,17 @@ Bu::String::String( const Bu::String::const_iterator &s,
173 append( s, e ); 173 append( s, e );
174} 174}
175 175
176Bu::String::String( const Bu::String::iterator &s )
177{
178 append( s );
179}
180
181Bu::String::String( const Bu::String::iterator &s,
182 const Bu::String::iterator &e )
183{
184 append( s, e );
185}
186
176Bu::String::~String() 187Bu::String::~String()
177{ 188{
178} 189}
@@ -317,6 +328,11 @@ void Bu::String::append( const const_iterator &s, const const_iterator &e )
317 } 328 }
318} 329}
319 330
331void Bu::String::append( const iterator &s, const iterator &e )
332{
333 append( const_iterator( s ), const_iterator( e ) );
334}
335
320void Bu::String::prepend( const String & sData ) 336void Bu::String::prepend( const String & sData )
321{ 337{
322 prepend( sData.getStr(), sData.getSize() ); 338 prepend( sData.getStr(), sData.getSize() );