From c7636dc954eddfe58f7959392602fbc9072d77e7 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 29 Mar 2011 04:01:45 +0000 Subject: String's replace function now doesn't get false positives on partial matches at the end of strings. Build should work much better now. --- src/string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/string.cpp') 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, if( !iStart ) iStart = begin(); for( ; iStart; iStart++ ) { - if( iStart.compare( rStr ) ) + if( iStart.compare( rStr, rStr.getSize() ) ) return iStart; } return end(); -- cgit v1.2.3