diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-11-03 16:08:53 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-11-04 08:21:24 +0100 |
commit | fb17dce09e29c4518129587d347cc3787f74c396 (patch) | |
tree | 86c88a45ca5332ad315e6aa0d33a21d1ed0e2cf3 /sal/inc | |
parent | 08488edd45b7b4fa6b255c4a3e5b882765e6fc13 (diff) |
Added OUStringBuffer::append(char) so that b.append(' ') does what one expects.
Diffstat (limited to 'sal/inc')
-rw-r--r-- | sal/inc/rtl/ustrbuf.hxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sal/inc/rtl/ustrbuf.hxx b/sal/inc/rtl/ustrbuf.hxx index 47569e5800b3..60bb750a1dc7 100644 --- a/sal/inc/rtl/ustrbuf.hxx +++ b/sal/inc/rtl/ustrbuf.hxx @@ -421,6 +421,24 @@ public: } /** + Appends the string representation of the ASCII <code>char</code> + argument to this string buffer. + + The argument is appended to the contents of this string buffer. + The length of this string buffer increases by <code>1</code>. + + @param ch an ASCII <code>char</code>. + @return this string buffer. + + @since LibreOffice 3.5 + */ + OUStringBuffer & append(char c) + { + OSL_ASSERT(static_cast< unsigned char >(c) <= 0x7F); + return append(sal_Unicode(c)); + } + + /** Appends the string representation of the <code>char</code> argument to this string buffer. |