[Libreoffice-commits] core.git: include/rtl
Muthu Subramanian
sumuthu at collabora.com
Tue Dec 10 05:19:41 PST 2013
include/rtl/strbuf.hxx | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
New commits:
commit cd5e4be786319226f77509c7f323af5ec380af41
Author: Muthu Subramanian <sumuthu at collabora.com>
Date: Tue Dec 10 18:59:44 2013 +0530
Add append(bool) to OStringBuffer.
diff --git a/include/rtl/strbuf.hxx b/include/rtl/strbuf.hxx
index e21efbb..9fd9c12 100644
--- a/include/rtl/strbuf.hxx
+++ b/include/rtl/strbuf.hxx
@@ -533,6 +533,23 @@ public:
}
/**
+ Appends the string representation of the <code>bool</code>
+ argument to the string buffer.
+
+ The argument is converted to a string as if by the method
+ <code>String.valueOf</code>, and the characters of that
+ string are then appended to this string buffer.
+
+ @param b a <code>bool</code>.
+ @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 <code>char</code>
argument to this string buffer.
More information about the Libreoffice-commits
mailing list