* fixed broken FindLast() taking a char and an offset
* added two more tests that exhibit the (now fixed) problem in FindLast() git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16586 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1318,7 +1318,7 @@ BString::FindLast(char c, int32 beforeOffset) const
|
||||
return B_ERROR;
|
||||
|
||||
const char *start = String();
|
||||
const char *end = String() + Length() - beforeOffset;
|
||||
const char *end = String() + beforeOffset;
|
||||
|
||||
/* Scans the string backwards until we found the character, */
|
||||
/* or we reach the string's start */
|
||||
|
||||
Reference in New Issue
Block a user