[Libreoffice-commits] .: sal/inc
Stephan Bergmann
sbergmann at kemper.freedesktop.org
Fri Dec 9 03:33:21 PST 2011
sal/inc/rtl/ustrbuf.hxx | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
New commits:
commit 0670d4652dab1986412f4e9d3c9f36ba2e34db64
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Dec 9 12:31:49 2011 +0100
rtl::OUStringBuffer::insert overloaded for char (similar to ::append).
diff --git a/sal/inc/rtl/ustrbuf.hxx b/sal/inc/rtl/ustrbuf.hxx
index d9c3893..74df4fe 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)
{
More information about the Libreoffice-commits
mailing list