summaryrefslogtreecommitdiffstats
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-12-09 12:31:49 +0100
committerStephan Bergmann <sbergman@redhat.com>2011-12-09 12:32:59 +0100
commit0670d4652dab1986412f4e9d3c9f36ba2e34db64 (patch)
tree635dc53ace6e34ebaa0897780e65c2b0c6f6663a /sal
parentfixed Calc unit-test crashes (diff)
downloadcore-0670d4652dab1986412f4e9d3c9f36ba2e34db64.tar.gz
core-0670d4652dab1986412f4e9d3c9f36ba2e34db64.zip
rtl::OUStringBuffer::insert overloaded for char (similar to ::append).
Diffstat (limited to 'sal')
-rw-r--r--sal/inc/rtl/ustrbuf.hxx24
1 files changed, 24 insertions, 0 deletions
diff --git a/sal/inc/rtl/ustrbuf.hxx b/sal/inc/rtl/ustrbuf.hxx
index d9c3893a5bd6..74df4fe9beb0 100644
--- a/sal/inc/rtl/ustrbuf.hxx
+++ b/sal/inc/rtl/ustrbuf.hxx
@@ -647,6 +647,30 @@ public:
@param offset the offset.
@param ch a <code>char</code>.
@return this string buffer.
+
+ @since LibreOffice 3.6
+ */
+ OUStringBuffer & insert(sal_Int32 offset, char c)
+ {
+ sal_Unicode u = c;
+ return insert( offset, &u, 1 );
+ }
+
+ /**
+ Inserts the string representation of the <code>char</code>
+ argument into this string buffer.
+
+ The second argument is inserted into the contents of this string
+ buffer at the position indicated by <code>offset</code>. The length
+ of this string buffer increases by one.
+ <p>
+ The offset argument must be greater than or equal to
+ <code>0</code>, and less than or equal to the length of this
+ string buffer.
+
+ @param offset the offset.
+ @param ch a <code>char</code>.
+ @return this string buffer.
*/
OUStringBuffer & insert(sal_Int32 offset, sal_Unicode c)
{