aboutsummaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-03-29 04:01:45 +0000
committerMike Buland <eichlan@xagasoft.com>2011-03-29 04:01:45 +0000
commitc7636dc954eddfe58f7959392602fbc9072d77e7 (patch)
treebef0b41561287ead10b5a17ccaa8a66c45efa6a1 /src/string.cpp
parent86e3e2ed03a4889cf64a9149f1f0f5047a889c56 (diff)
downloadlibbu++-c7636dc954eddfe58f7959392602fbc9072d77e7.tar.gz
libbu++-c7636dc954eddfe58f7959392602fbc9072d77e7.tar.bz2
libbu++-c7636dc954eddfe58f7959392602fbc9072d77e7.tar.xz
libbu++-c7636dc954eddfe58f7959392602fbc9072d77e7.zip
String's replace function now doesn't get false positives on partial matches at
the end of strings. Build should work much better now.
Diffstat (limited to 'src/string.cpp')
-rw-r--r--src/string.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.cpp b/src/string.cpp
index 957d52d..5834da1 100644
--- a/src/string.cpp
+++ b/src/string.cpp
@@ -994,7 +994,7 @@ Bu::String::const_iterator Bu::String::find( const String &rStr,
994 if( !iStart ) iStart = begin(); 994 if( !iStart ) iStart = begin();
995 for( ; iStart; iStart++ ) 995 for( ; iStart; iStart++ )
996 { 996 {
997 if( iStart.compare( rStr ) ) 997 if( iStart.compare( rStr, rStr.getSize() ) )
998 return iStart; 998 return iStart;
999 } 999 }
1000 return end(); 1000 return end();