summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@collabora.com>2013-12-10 18:59:44 +0530
committerMuthu Subramanian <sumuthu@collabora.com>2014-03-07 18:01:14 +0530
commite11566ac3210f06696122657002c29942df705b4 (patch)
treeeac0298f67d3259b59b698c820761028c3d7aaf8
parentcb471d3420d4bd10f03eb69534bdd20d9ffd2e4d (diff)
Add append(bool) to OStringBuffer.
-rw-r--r--include/rtl/strbuf.hxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/rtl/strbuf.hxx b/include/rtl/strbuf.hxx
index 9ebd495239cd..4e0b55c9b7b3 100644
--- a/include/rtl/strbuf.hxx
+++ b/include/rtl/strbuf.hxx
@@ -531,6 +531,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.