diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-10-03 05:14:18 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-10-03 18:26:30 +0200 |
commit | 563fa900ba22bf83dfa58e67807ed0337f810576 (patch) | |
tree | 740ff4941af9bd147998f3093210e1a76bfd3838 /sal | |
parent | fix indentation (diff) | |
download | core-563fa900ba22bf83dfa58e67807ed0337f810576.tar.gz core-563fa900ba22bf83dfa58e67807ed0337f810576.zip |
add rtl::OUStringBuffer::append(bool)
Change-Id: I2cbb4d126b27c5cb7a1be3606807fcbda25d3e72
Diffstat (limited to 'sal')
-rw-r--r-- | sal/inc/rtl/ustrbuf.hxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sal/inc/rtl/ustrbuf.hxx b/sal/inc/rtl/ustrbuf.hxx index a11dff178442..0b4586bcdfbe 100644 --- a/sal/inc/rtl/ustrbuf.hxx +++ b/sal/inc/rtl/ustrbuf.hxx @@ -501,6 +501,25 @@ 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. + + @since LibreOffice 3.7 + */ + OUStringBuffer & append(bool b) + { + sal_Unicode sz[RTL_USTR_MAX_VALUEOFBOOLEAN]; + return append( sz, rtl_ustr_valueOfBoolean( sz, b ) ); + } + + /** Appends the string representation of the <code>sal_Bool</code> argument to the string buffer. |