From a3e222581b3ded07285a5e1ad18f5a5abb5d95b9 Mon Sep 17 00:00:00 2001 From: Muthu Subramanian Date: Thu, 12 Dec 2013 12:53:55 +0530 Subject: Add append(bool) to OStringBuffer. --- sal/inc/rtl/strbuf.hxx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/sal/inc/rtl/strbuf.hxx b/sal/inc/rtl/strbuf.hxx index ed627ced949d..d8112eaa518b 100644 --- a/sal/inc/rtl/strbuf.hxx +++ b/sal/inc/rtl/strbuf.hxx @@ -509,6 +509,23 @@ public: return append( sz, rtl_str_valueOfBoolean( sz, b ) ); } + /** + Appends the string representation of the bool + argument to the string buffer. + + The argument is converted to a string as if by the method + String.valueOf, and the characters of that + string are then appended to this string buffer. + + @param b a bool. + @return this string buffer. + */ + OStringBuffer & append(bool b) + { + sal_Char sz[RTL_STR_MAX_VALUEOFBOOLEAN]; + return append( sz, rtl_str_valueOfBoolean( sz, b ) ); + } + /** Appends the string representation of the char argument to this string buffer. -- cgit v1.2.3