From 769a89545028226bc60b236d0be9c4345cd79ddf Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 18 Nov 2002 13:45:27 +0000 Subject: [PATCH] Corrected some inaccuracies imported from the BeOS headers: CapitalizeEachWord() DOESN'T capitalize words separated by spaces, it capitalizes words separated by non alphabethical characters. FindLast(char, int32) prototype was misleading. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2008 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/support/String.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/headers/os/support/String.h b/headers/os/support/String.h index 2860776da8..dda24f1628 100644 --- a/headers/os/support/String.h +++ b/headers/os/support/String.h @@ -172,7 +172,7 @@ public: int32 FindLast(const BString &, int32 beforeOffset) const; int32 FindLast(const char *, int32 beforeOffset) const; int32 FindLast(char) const; - int32 FindLast(char, int32 fromOffset) const; + int32 FindLast(char, int32 beforeOffset) const; int32 IFindFirst(const BString &) const; int32 IFindFirst(const char *) const; @@ -252,7 +252,8 @@ public: */ BString &CapitalizeEachWord(); - /* Converts first character in each white-space-separated + /* Converts first character in each + * non-alphabethycal-character-separated * word to upper-case, rest to lower-case */ /*----- Escaping and Deescaping --------------------------------------------*/