diff options
author | Muthu Subramanian <sumuthu@collabora.com> | 2013-12-12 12:53:55 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@collabora.com> | 2013-12-12 12:53:55 +0530 |
commit | a3e222581b3ded07285a5e1ad18f5a5abb5d95b9 (patch) | |
tree | a4e9c760e9ba1667ea7a8d1c579f3061601e4828 | |
parent | 4e09cb4645e1b8b0393acf956c325150fe1c52fc (diff) |
Add append(bool) to OStringBuffer.
-rw-r--r-- | sal/inc/rtl/strbuf.hxx | 17 |
1 files changed, 17 insertions, 0 deletions
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 @@ -510,6 +510,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. |