diff options
author | Muthu Subramanian <sumuthu@collabora.com> | 2013-12-10 18:59:44 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@collabora.com> | 2013-12-10 18:59:44 +0530 |
commit | cd5e4be786319226f77509c7f323af5ec380af41 (patch) | |
tree | 5e8b52cd7bb9c91463a3c5be956c7b8576a80f97 /include/rtl | |
parent | 6fa262338d80f247f9813e86bce81c757caf272f (diff) |
Add append(bool) to OStringBuffer.
Diffstat (limited to 'include/rtl')
-rw-r--r-- | include/rtl/strbuf.hxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/rtl/strbuf.hxx b/include/rtl/strbuf.hxx index e21efbb5b5dc..9fd9c1234ca6 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. |