20 #ifndef INCLUDED_RTL_USTRBUF_HXX 21 #define INCLUDED_RTL_USTRBUF_HXX 34 #ifdef LIBO_INTERNAL_ONLY // "RTL_FAST_STRING" 38 #ifdef RTL_STRING_UNITTEST 39 extern bool rtl_string_unittest_invalid_conversion;
47 #ifdef RTL_STRING_UNITTEST 48 #define rtl rtlunittest 54 #ifdef RTL_STRING_UNITTEST 82 , nCapacity( value.nCapacity )
99 #if __cplusplus >= 201103L 104 #if SAL_TYPES_SIZEOFLONG == 4 106 explicit OUStringBuffer(
long length)
107 : OUStringBuffer(static_cast<int>(length))
110 explicit OUStringBuffer(
unsigned long length)
111 : OUStringBuffer(static_cast<int>(length))
116 explicit OUStringBuffer(
char) =
delete;
132 , nCapacity( value.getLength() + 16 )
137 template<
typename T >
140 , nCapacity( libreoffice_internal::ConstCharArrayDetector<T>::length + 16 )
148 #ifdef RTL_STRING_UNITTEST 149 rtl_string_unittest_const_literal =
true;
153 #if defined LIBO_INTERNAL_ONLY 162 nCapacity(libreoffice_internal::ConstCharArrayDetector<T>::length + 16)
171 OUStringBuffer(OUStringLiteral
const & literal):
172 pData(nullptr), nCapacity(literal.size + 16)
178 #ifdef RTL_STRING_UNITTEST 183 template<
typename T >
189 rtl_string_unittest_invalid_conversion =
true;
195 template<
typename T >
201 rtl_string_unittest_invalid_conversion =
true;
205 #ifdef LIBO_INTERNAL_ONLY // "RTL_FAST_STRING" 210 template<
typename T1,
typename T2 >
211 OUStringBuffer( OUStringConcat< T1, T2 >&& c )
213 const sal_Int32 l = c.length();
231 nCapacity = value.nCapacity;
242 if (n >= nCapacity) {
243 ensureCapacity(n + 16);
246 pData->buffer,
string.pData->buffer,
259 operator =(T & literal) {
264 if (n >= nCapacity) {
265 ensureCapacity(n + 16);
271 for (sal_Int32 i = 0; i <= n; ++i) {
278 #if defined LIBO_INTERNAL_ONLY 283 operator =(T & literal) {
286 if (n >= nCapacity) {
287 ensureCapacity(n + 16);
291 libreoffice_internal::ConstCharArrayDetector<T>::toPointer(literal),
298 OUStringBuffer & operator =(OUStringLiteral
const & literal) {
299 sal_Int32
const n = literal.size;
300 if (n >= nCapacity) {
301 ensureCapacity(n + 16);
303 char const * from = literal.data;
305 for (sal_Int32 i = 0; i <= n; ++i) {
313 #if defined LIBO_INTERNAL_ONLY 315 template<
typename T1,
typename T2>
316 OUStringBuffer & operator =(OUStringConcat<T1, T2> && concat) {
317 sal_Int32
const n = concat.length();
318 if (n >= nCapacity) {
319 ensureCapacity(n + 16);
321 *concat.addData(pData->buffer) = 0;
357 return pData->length;
370 return pData->length == 0;
424 assert(newLength >= 0);
426 if( newLength != pData->length )
428 if( newLength > nCapacity )
431 pData->buffer[newLength] = 0;
432 pData->length = newLength;
452 assert(index >= 0 && index < pData->length);
453 return pData->buffer[ index ];
469 assert(index >= 0 && index < pData->length);
470 pData->buffer[ index ] = ch;
490 assert(index >= 0 && index < pData->length);
491 return pData->buffer[index];
505 assert(index >= 0 && index < pData->length);
506 return pData->buffer[index];
515 return OUString(pData->buffer, pData->length);
585 assert( len == 0 || str != NULL );
595 template<
typename T >
601 &pData, &nCapacity, getLength(),
607 #if defined LIBO_INTERNAL_ONLY 612 append(T & literal) {
614 &pData, &nCapacity, getLength(),
621 OUStringBuffer & append(OUStringLiteral
const & literal) {
623 &pData, &nCapacity, getLength(), literal.data, literal.size);
628 #ifdef LIBO_INTERNAL_ONLY // "RTL_FAST_STRING" 633 template<
typename T1,
typename T2 >
634 OUStringBuffer& append( OUStringConcat< T1, T2 >&& c )
636 sal_Int32 l = c.length();
641 sal_Unicode* end = c.addData( pData->buffer + pData->length );
716 template<
typename T >
763 assert(static_cast< unsigned char >(c) <= 0x7F);
779 return append( &c, 1 );
782 #if defined LIBO_INTERNAL_ONLY 783 void append(sal_uInt16) =
delete;
870 return insertUtf32(getLength(), c);
889 sal_Int32 n = getLength();
891 return pData->buffer + n;
956 assert( len == 0 || str != NULL );
966 template<
typename T >
972 &pData, &nCapacity, offset,
978 #if defined LIBO_INTERNAL_ONLY 983 insert(sal_Int32 offset, T & literal) {
985 &pData, &nCapacity, offset,
992 OUStringBuffer & insert(sal_Int32 offset, OUStringLiteral
const & literal) {
994 &pData, &nCapacity, offset, literal.data, literal.size);
1068 return insert( offset, &u, 1 );
1089 return insert( offset, &c, 1 );
1256 sal_Int32 index = 0;
1257 while((index = indexOf(oldChar, index)) >= 0)
1259 pData->buffer[ index ] = newChar;
1280 sal_Int32 ** pInternalCapacity)
1282 *pInternalData = &pData;
1283 *pInternalCapacity = &nCapacity;
1304 assert( fromIndex >= 0 && fromIndex <= pData->length );
1306 return (ret < 0 ? ret : ret+fromIndex);
1341 assert( fromIndex >= 0 && fromIndex <= pData->length );
1364 assert( fromIndex >= 0 && fromIndex <= pData->length );
1366 str.pData->buffer, str.pData->length );
1367 return (ret < 0 ? ret : ret+fromIndex);
1376 template<
typename T >
1382 pData->buffer + fromIndex, pData->length - fromIndex,
1385 return n < 0 ? n : n + fromIndex;
1388 #if defined LIBO_INTERNAL_ONLY 1390 template<
typename T>
1393 indexOf(T & literal, sal_Int32 fromIndex = 0)
const {
1394 assert(fromIndex >= 0);
1396 pData->buffer + fromIndex, pData->length - fromIndex,
1399 return n < 0 ? n : n + fromIndex;
1403 sal_Int32 indexOf(OUStringLiteral
const & literal, sal_Int32 fromIndex = 0)
1407 pData->buffer + fromIndex, pData->length - fromIndex, literal.data,
1409 return n < 0 ? n : n + fromIndex;
1433 str.pData->buffer, str.pData->length );
1457 assert( fromIndex >= 0 && fromIndex <= pData->length );
1459 str.pData->buffer, str.pData->length );
1467 template<
typename T >
1473 pData->buffer, pData->length,
1478 #if defined LIBO_INTERNAL_ONLY 1480 template<
typename T>
1483 lastIndexOf(T & literal)
const {
1485 pData->buffer, pData->length,
1491 sal_Int32 lastIndexOf(OUStringLiteral
const & literal)
const {
1493 pData->buffer, pData->length, literal.data, literal.size);
1509 for(index = 0; index < getLength() ; index++)
1511 if(pData->buffer[ index ] != c)
1534 sal_Int32 result = getLength();
1536 for(index = getLength(); index > 0 ; index--)
1538 if(pData->buffer[ index - 1 ] != c)
1543 if(index < getLength())
1547 return result - getLength();
1560 return stripStart(c) + stripEnd(c);
1575 return copy( beginIndex, getLength() - beginIndex );
1593 assert(beginIndex >= 0 && beginIndex <= getLength());
1594 assert(count >= 0 && count <= getLength() - beginIndex);
1595 rtl_uString *pNew = NULL;
1604 nCapacity = capacity;
1610 rtl_uString * pData;
1615 sal_Int32 nCapacity;
1620 #ifdef RTL_STRING_UNITTEST 1623 typedef rtlunittest::OUStringBuffer OUStringBuffer;
1627 #if defined LIBO_INTERNAL_ONLY && !defined RTL_STRING_UNITTEST 1628 using ::rtl::OUStringBuffer;
1631 #endif // INCLUDED_RTL_USTRBUF_HXX Definition: stringutils.hxx:158
OUStringBuffer & append(sal_Unicode c)
Appends the string representation of the char argument to this string buffer.
Definition: ustrbuf.hxx:777
SAL_DLLPUBLIC sal_Int32 rtl_ustr_indexOfStr_WithLength(const sal_Unicode *str, sal_Int32 len, const sal_Unicode *subStr, sal_Int32 subLen) SAL_THROW_EXTERN_C()
Search for the first occurrence of a substring within a string.
OUStringBuffer & append(const OUString &str)
Appends the string to this string buffer.
Definition: ustrbuf.hxx:528
OUStringBuffer & insert(sal_Int32 offset, char c)
Inserts the string representation of the char argument into this string buffer.
Definition: ustrbuf.hxx:1065
OUStringBuffer & insert(sal_Int32 offset, sal_Int64 l, sal_Int16 radix=10)
Inserts the string representation of the long argument into this string buffer.
Definition: ustrbuf.hxx:1136
OUStringBuffer & insert(sal_Int32 offset, sal_Int32 i, sal_Int16 radix=10)
Inserts the string representation of the second sal_Int32 argument into this string buffer...
Definition: ustrbuf.hxx:1111
SAL_DLLPUBLIC sal_Int32 rtl_ustr_lastIndexOfAscii_WithLength(sal_Unicode const *str, sal_Int32 len, char const *subStr, sal_Int32 subLen) SAL_THROW_EXTERN_C()
Search for the last occurrence of an ASCII substring within a string.
SAL_DLLPUBLIC sal_Int32 rtl_ustr_getLength(const sal_Unicode *str) SAL_THROW_EXTERN_C()
Return the length of a string.
OUStringBuffer & append(rtl_uString *str)
Definition: ustrbuf.hxx:727
SAL_DLLPUBLIC void rtl_uStringbuffer_insert(rtl_uString **This, sal_Int32 *capacity, sal_Int32 offset, const sal_Unicode *str, sal_Int32 len)
Inserts the string representation of the str array argument into this string buffer.
sal_Int32 indexOf(const OUString &str, sal_Int32 fromIndex=0) const
Returns the index within this string of the first occurrence of the specified substring, starting at the specified index.
Definition: ustrbuf.hxx:1362
OUStringBuffer & insertUtf32(sal_Int32 offset, sal_uInt32 c)
Inserts a single UTF-32 character into this string buffer.
Definition: ustrbuf.hxx:1205
Definition: stringutils.hxx:267
SAL_DLLPUBLIC sal_Int32 rtl_ustr_valueOfFloat(sal_Unicode *str, float f) SAL_THROW_EXTERN_C()
Create the string representation of a float.
libreoffice_internal::ConstCharArrayDetector< T, OUStringBuffer &>::Type append(T &literal)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: ustrbuf.hxx:596
sal_Int32 strip(sal_Unicode c=' ')
Strip the given character from the both end of the buffer.
Definition: ustrbuf.hxx:1558
Definition: stringutils.hxx:248
SAL_DLLPUBLIC sal_Int32 rtl_ustr_indexOfAscii_WithLength(sal_Unicode const *str, sal_Int32 len, char const *subStr, sal_Int32 subLen) SAL_THROW_EXTERN_C()
Search for the first occurrence of an ASCII substring within a string.
OUStringBuffer & replace(sal_Unicode oldChar, sal_Unicode newChar)
Replace all occurrences of oldChar in this string buffer with newChar.
Definition: ustrbuf.hxx:1254
OUStringBuffer & append(const sal_Unicode *str, sal_Int32 len)
Appends the string representation of the char array argument to this string buffer.
Definition: ustrbuf.hxx:583
OUStringBuffer & truncate(sal_Int32 start=0)
Removes the tail of a string buffer start at the indicate position.
Definition: ustrbuf.hxx:1238
#define RTL_USTR_MAX_VALUEOFINT32
Definition: ustring.h:957
void ensureCapacity(sal_Int32 minimumCapacity)
Ensures that the capacity of the buffer is at least equal to the specified minimum.
Definition: ustrbuf.hxx:399
OUStringBuffer & append(const sal_Unicode *str)
Appends the string representation of the char array argument to this string buffer.
Definition: ustrbuf.hxx:565
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:394
SAL_DLLPUBLIC sal_Int32 rtl_ustr_valueOfInt32(sal_Unicode *str, sal_Int32 i, sal_Int16 radix) SAL_THROW_EXTERN_C()
Create the string representation of an integer.
OUStringBuffer & insert(sal_Int32 offset, sal_Bool b)
Inserts the string representation of the sal_Bool argument into this string buffer.
Definition: ustrbuf.hxx:1016
const sal_Unicode * getStr() const SAL_RETURNS_NONNULL
Returns a pointer to the Unicode character buffer for this string.
Definition: ustring.hxx:656
SAL_WARN_UNUSED_RESULT OUString makeStringAndClear()
Fill the string data in the new string and clear the buffer.
Definition: ustrbuf.hxx:343
SAL_DLLPUBLIC sal_Int32 rtl_ustr_indexOfChar_WithLength(const sal_Unicode *str, sal_Int32 len, sal_Unicode ch) SAL_THROW_EXTERN_C()
Search for the first occurrence of a character within a string.
sal_Int32 getCapacity() const
Returns the current capacity of the String buffer.
Definition: ustrbuf.hxx:383
SAL_DLLPUBLIC void rtl_uStringbuffer_remove(rtl_uString **This, sal_Int32 start, sal_Int32 len)
Removes the characters in a substring of this sequence.
#define SAL_DEPRECATED(message)
Use as follows: SAL_DEPRECATED("Don't use, it's evil.") void doit(int nPara);.
Definition: types.h:485
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:598
OUStringBuffer & insert(sal_Int32 offset, sal_Unicode c)
Inserts the string representation of the char argument into this string buffer.
Definition: ustrbuf.hxx:1087
SAL_DLLPUBLIC sal_Int32 rtl_ustr_valueOfInt64(sal_Unicode *str, sal_Int64 l, sal_Int16 radix) SAL_THROW_EXTERN_C()
Create the string representation of a long integer.
SAL_DLLPUBLIC void rtl_uStringbuffer_newFromStr_WithLength(rtl_uString **newStr, const sal_Unicode *value, sal_Int32 count)
Allocates a new String that contains characters from the character array argument.
OUStringBuffer & insert(sal_Int32 offset, const sal_Unicode *str)
Inserts the string representation of the char array argument into this string buffer.
Definition: ustrbuf.hxx:931
sal_Int32 indexOf(sal_Unicode ch, sal_Int32 fromIndex=0) const
Returns the index within this string of the first occurrence of the specified character, starting the search at the specified index.
Definition: ustrbuf.hxx:1302
#define RTL_USTR_MAX_VALUEOFBOOLEAN
Definition: ustring.h:915
Definition: stringutils.hxx:117
SAL_DLLPUBLIC sal_Int32 rtl_ustr_valueOfDouble(sal_Unicode *str, double d) SAL_THROW_EXTERN_C()
Create the string representation of a double.
OUStringBuffer & append(const OUStringBuffer &str)
Appends the content of a stringbuffer to this string buffer.
Definition: ustrbuf.hxx:545
This String class provides base functionality for C++ like Unicode character array handling...
Definition: ustring.hxx:121
OUStringBuffer & append(double d)
Appends the string representation of the double argument to this string buffer.
Definition: ustrbuf.hxx:850
OUStringBuffer & append(float f)
Appends the string representation of the float argument to this string buffer.
Definition: ustrbuf.hxx:833
sal_uInt16 sal_Unicode
Definition: types.h:141
OUStringBuffer & insert(sal_Int32 offset, double d)
Inserts the string representation of the double argument into this string buffer. ...
Definition: ustrbuf.hxx:1184
OUStringBuffer(const OUString &value)
Constructs a string buffer so that it represents the same sequence of characters as the string argume...
Definition: ustrbuf.hxx:130
libreoffice_internal::ConstCharArrayDetector< T, sal_Int32 >::Type indexOf(T &literal, sal_Int32 fromIndex=0) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: ustrbuf.hxx:1377
sal_Int32 stripEnd(sal_Unicode c=' ')
Strip the given character from the end of the buffer.
Definition: ustrbuf.hxx:1532
#define RTL_USTR_MAX_VALUEOFINT64
Definition: ustring.h:1003
unsigned char sal_Bool
Definition: types.h:38
sal_Int32 lastIndexOf(sal_Unicode ch, sal_Int32 fromIndex) const
Returns the index within this string of the last occurrence of the specified character, searching backward starting before the specified index.
Definition: ustrbuf.hxx:1339
OUStringBuffer & appendAscii(const sal_Char *str, sal_Int32 len)
Appends a 8-Bit ASCII character string to this string buffer.
Definition: ustrbuf.hxx:687
Definition: stringutils.hxx:115
Dummy Type
Definition: stringutils.hxx:204
Definition: bootstrap.hxx:29
SAL_DLLPUBLIC sal_Int32 rtl_ustr_lastIndexOfChar_WithLength(const sal_Unicode *str, sal_Int32 len, sal_Unicode ch) SAL_THROW_EXTERN_C()
Search for the last occurrence of a character within a string.
OUStringBuffer & append(sal_Int64 l, sal_Int16 radix=10)
Appends the string representation of the long argument to this string buffer.
Definition: ustrbuf.hxx:816
SAL_DLLPUBLIC sal_Int32 rtl_str_getLength(const sal_Char *str) SAL_THROW_EXTERN_C()
Return the length of a string.
OUStringBuffer copy(sal_Int32 beginIndex) const
Returns a new string buffer that is a substring of this string.
Definition: ustrbuf.hxx:1573
sal_Unicode * appendUninitialized(sal_Int32 length) SAL_RETURNS_NONNULL
Unsafe way to make space for a fixed amount of characters to be appended into this OUStringBuffer...
Definition: ustrbuf.hxx:888
OUStringBuffer(const OUStringBuffer &value)
Allocates a new string buffer that contains the same sequence of characters as the string buffer argu...
Definition: ustrbuf.hxx:80
OUStringBuffer(int length)
Constructs a string buffer with no characters in it and an initial capacity specified by the length a...
Definition: ustrbuf.hxx:93
SAL_DLLPUBLIC void rtl_uStringbuffer_insert_ascii(rtl_uString **This, sal_Int32 *capacity, sal_Int32 offset, const sal_Char *str, sal_Int32 len)
Inserts the 8-Bit ASCII string representation of the str array argument into this string buffer...
Dummy Type
Definition: stringutils.hxx:231
void accessInternals(rtl_uString ***pInternalData, sal_Int32 **pInternalCapacity)
Allows access to the internal data of this OUStringBuffer, for effective manipulation.
Definition: ustrbuf.hxx:1279
definition of a no acquire enum for ctors
Definition: types.h:372
OUStringBuffer & appendUtf32(sal_uInt32 c)
Appends a single UTF-32 character to this string buffer.
Definition: ustrbuf.hxx:869
SAL_DLLPUBLIC sal_Int32 rtl_ustr_valueOfBoolean(sal_Unicode *str, sal_Bool b) SAL_THROW_EXTERN_C()
Create the string representation of a boolean.
OUStringBuffer & insert(sal_Int32 offset, bool b)
Inserts the string representation of the bool argument into this string buffer.
Definition: ustrbuf.hxx:1041
bool isEmpty() const
Checks if a string buffer is empty.
Definition: ustrbuf.hxx:368
OUStringBuffer & append(sal_Bool b)
Appends the string representation of the sal_Bool argument to the string buffer.
Definition: ustrbuf.hxx:743
SAL_DLLPUBLIC void rtl_uString_new_WithLength(rtl_uString **newStr, sal_Int32 nLen) SAL_THROW_EXTERN_C()
Allocate a new string containing space for a given number of characters.
SAL_DLLPUBLIC sal_Int32 rtl_ustr_lastIndexOfStr_WithLength(const sal_Unicode *str, sal_Int32 len, const sal_Unicode *subStr, sal_Int32 subLen) SAL_THROW_EXTERN_C()
Search for the last occurrence of a substring within a string.
~OUStringBuffer()
Release the string data.
Definition: ustrbuf.hxx:330
OUStringBuffer()
Constructs a string buffer with no characters in it and an initial capacity of 16 characters...
Definition: ustrbuf.hxx:67
OUStringBuffer & insert(sal_Int32 offset, const OUString &str)
Inserts the string into this string buffer.
Definition: ustrbuf.hxx:909
#define SAL_WARN_UNUSED_RESULT
Use this as markup for functions and methods whose return value must be checked.
Definition: types.h:300
char sal_Char
A legacy synonym for char.
Definition: types.h:120
SAL_DLLPUBLIC rtl_uString * rtl_uStringBuffer_makeStringAndClear(rtl_uString **ppThis, sal_Int32 *nCapacity) SAL_RETURNS_NONNULL
Returns an immutable rtl_uString object, while clearing the string buffer.
sal_Int32 getLength() const
Returns the length (character count) of this string buffer.
Definition: ustrbuf.hxx:355
#define RTL_USTR_MAX_VALUEOFFLOAT
Definition: ustring.h:1022
SAL_DLLPUBLIC void rtl_uString_newFromLiteral(rtl_uString **newStr, const sal_Char *value, sal_Int32 len, sal_Int32 allocExtra) SAL_THROW_EXTERN_C()
sal_Int32 lastIndexOf(const OUString &str, sal_Int32 fromIndex) const
Returns the index within this string of the last occurrence of the specified substring, searching backward starting before the specified index.
Definition: ustrbuf.hxx:1455
OUStringBuffer(T &literal, typename libreoffice_internal::ConstCharArrayDetector< T, libreoffice_internal::Dummy >::Type=libreoffice_internal::Dummy())
Definition: ustrbuf.hxx:138
OUStringBuffer & appendAscii(const sal_Char *str)
Appends a 8-Bit ASCII character string to this string buffer.
Definition: ustrbuf.hxx:664
OUStringBuffer & append(char c)
Appends the string representation of the ASCII char argument to this string buffer.
Definition: ustrbuf.hxx:761
SAL_DLLPUBLIC sal_Int32 rtl_uStringbuffer_newFromStringBuffer(rtl_uString **newStr, sal_Int32 capacity, rtl_uString *oldStr)
Allocates a new String that contains the same sequence of characters as the string argument...
#define RTL_USTR_MAX_VALUEOFDOUBLE
Definition: ustring.h:1041
OUStringBuffer & insert(sal_Int32 offset, const sal_Unicode *str, sal_Int32 len)
Inserts the string representation of the char array argument into this string buffer.
Definition: ustrbuf.hxx:954
sal_Int32 lastIndexOf(const OUString &str) const
Returns the index within this string of the last occurrence of the specified substring, searching backward starting at the end.
Definition: ustrbuf.hxx:1430
void setLength(sal_Int32 newLength)
Sets the length of this String buffer.
Definition: ustrbuf.hxx:422
const OUString toString() const
Return a OUString instance reflecting the current content of this OUStringBuffer. ...
Definition: ustrbuf.hxx:513
sal_Int32 lastIndexOf(sal_Unicode ch) const
Returns the index within this string of the last occurrence of the specified character, searching backward starting at the end.
Definition: ustrbuf.hxx:1320
sal_Int32 stripStart(sal_Unicode c=' ')
Strip the given character from the start of the buffer.
Definition: ustrbuf.hxx:1506
SAL_DLLPUBLIC void rtl_uStringbuffer_insertUtf32(rtl_uString **pThis, sal_Int32 *capacity, sal_Int32 offset, sal_uInt32 c) SAL_THROW_EXTERN_C()
Inserts a single UTF-32 character into this string buffer.
const sal_Unicode * getStr() const SAL_RETURNS_NONNULL
Return a null terminated unicode character array.
Definition: ustrbuf.hxx:477
libreoffice_internal::ConstCharArrayDetector< T, sal_Int32 >::Type lastIndexOf(T &literal) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: ustrbuf.hxx:1468
SAL_DLLPUBLIC void rtl_uString_release(rtl_uString *str) SAL_THROW_EXTERN_C() SAL_HOT
Decrement the reference count of a string.
OUStringBuffer & append(sal_Int32 i, sal_Int16 radix=10)
Appends the string representation of the sal_Int32 argument to this string buffer.
Definition: ustrbuf.hxx:798
sal_Int32 getLength() const
Returns the length of this string.
Definition: ustring.hxx:634
OUStringBuffer copy(sal_Int32 beginIndex, sal_Int32 count) const
Returns a new string buffer that is a substring of this string.
Definition: ustrbuf.hxx:1591
libreoffice_internal::ConstCharArrayDetector< T, OUStringBuffer &>::Type insert(sal_Int32 offset, T &literal)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: ustrbuf.hxx:967
OUStringBuffer & append(bool b)
Appends the string representation of the bool argument to the string buffer.
Definition: ustrbuf.hxx:706
SAL_DLLPUBLIC rtl_uString * rtl_uString_alloc(sal_Int32 nLen) SAL_THROW_EXTERN_C()
Allocate a new string containing space for a given number of characters.
SAL_DLLPUBLIC void rtl_uStringbuffer_ensureCapacity(rtl_uString **This, sal_Int32 *capacity, sal_Int32 minimumCapacity)
Ensures that the capacity of the buffer is at least equal to the specified minimum.
OUStringBuffer insert(sal_Int32 offset, float f)
Inserts the string representation of the float argument into this string buffer.
Definition: ustrbuf.hxx:1160
A string buffer implements a mutable sequence of characters.
Definition: ustrbuf.hxx:60