From 481f986b59e7782458dcc5fe98ad59a57480e5db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 5 Aug 2010 11:23:01 +0000 Subject: [PATCH] * Added missing clear() method. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37924 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/cpp/std/bastring.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/headers/cpp/std/bastring.h b/headers/cpp/std/bastring.h index 8f95a7c92c..1fdff54d0e 100644 --- a/headers/cpp/std/bastring.h +++ b/headers/cpp/std/bastring.h @@ -289,6 +289,8 @@ public: replace (__o, l-f, (size_type)0, (charT)0);selfish (); return ibegin() + __o; } + void clear() + { erase(begin(), end()); } basic_string& replace (size_type pos1, size_type n1, const basic_string& str, size_type pos2 = 0, size_type n2 = npos); basic_string& replace (size_type pos, size_type n1, const charT* s,