LibreOffice
LibreOffice 4.4 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
strbuf.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_RTL_STRBUF_HXX
21 #define INCLUDED_RTL_STRBUF_HXX
22 
23 #include <sal/config.h>
24 
25 #include <cassert>
26 #include <string.h>
27 
28 #include <rtl/strbuf.h>
29 #include <rtl/string.hxx>
30 #include <rtl/stringutils.hxx>
31 
32 #ifdef RTL_FAST_STRING
33 #include <rtl/stringconcat.hxx>
34 #endif
35 
36 // The unittest uses slightly different code to help check that the proper
37 // calls are made. The class is put into a different namespace to make
38 // sure the compiler generates a different (if generating also non-inline)
39 // copy of the function and does not merge them together. The class
40 // is "brought" into the proper rtl namespace by a typedef below.
41 #ifdef RTL_STRING_UNITTEST
42 #define rtl rtlunittest
43 #endif
44 
45 namespace rtl
46 {
47 
49 #ifdef RTL_STRING_UNITTEST
50 #undef rtl
51 // helper macro to make functions appear more readable
52 #define RTL_STRING_CONST_FUNCTION rtl_string_unittest_const_literal_function = true;
53 #else
54 #define RTL_STRING_CONST_FUNCTION
55 #endif
56 
97 {
98 public:
104  : pData(NULL)
105  , nCapacity( 16 )
106  {
107  rtl_string_new_WithLength( &pData, nCapacity );
108  }
109 
116  OStringBuffer( const OStringBuffer & value )
117  : pData(NULL)
118  , nCapacity( value.nCapacity )
119  {
120  rtl_stringbuffer_newFromStringBuffer( &pData, value.nCapacity, value.pData );
121  }
122 
129  explicit OStringBuffer(int length)
130  : pData(NULL)
131  , nCapacity( length )
132  {
133  rtl_string_new_WithLength( &pData, length );
134  }
135 
146  OStringBuffer(const OString& value)
147  : pData(NULL)
148  , nCapacity( value.getLength() + 16 )
149  {
150  rtl_stringbuffer_newFromStr_WithLength( &pData, value.getStr(), value.getLength() );
151  }
152 
157  template< typename T >
159  : pData(NULL)
160  {
161  sal_Int32 length = rtl_str_getLength( value );
162  nCapacity = length + 16;
163  rtl_stringbuffer_newFromStr_WithLength( &pData, value, length );
164  }
165 
166  template< typename T >
168  : pData(NULL)
169  {
170  sal_Int32 length = rtl_str_getLength( value );
171  nCapacity = length + 16;
172  rtl_stringbuffer_newFromStr_WithLength( &pData, value, length );
173  }
174 
186  template< typename T >
188  : pData(NULL)
189  , nCapacity( libreoffice_internal::ConstCharArrayDetector< T, void >::size - 1 + 16 )
190  {
191  assert( strlen( literal ) == libreoffice_internal::ConstCharArrayDetector< T >::size - 1 );
193 #ifdef RTL_STRING_UNITTEST
194  rtl_string_unittest_const_literal = true;
195 #endif
196  }
197 
210  OStringBuffer(const sal_Char * value, sal_Int32 length)
211  : pData(NULL)
212  , nCapacity( length + 16 )
213  {
214  rtl_stringbuffer_newFromStr_WithLength( &pData, value, length );
215  }
216 
217 #ifdef RTL_FAST_STRING
218 
222  template< typename T1, typename T2 >
223  OStringBuffer( const OStringConcat< T1, T2 >& c )
224  {
225  const sal_Int32 l = c.length();
226  nCapacity = l + 16;
227  pData = rtl_string_alloc( nCapacity );
228  char* end = c.addData( pData->buffer );
229  *end = '\0';
230  pData->length = end - pData->buffer;
231  }
232 #endif
233 
236  OStringBuffer& operator = ( const OStringBuffer& value )
237  {
238  if (this != &value)
239  {
241  value.nCapacity,
242  value.pData);
243  nCapacity = value.nCapacity;
244  }
245  return *this;
246  }
247 
252  {
253  rtl_string_release( pData );
254  }
255 
265  {
266  OString aRet( pData );
267  rtl_string_new(&pData);
268  nCapacity = 0;
269  return aRet;
270  }
271 
277  sal_Int32 getLength() const
278  {
279  return pData->length;
280  }
281 
290  bool isEmpty() const
291  {
292  return pData->length == 0;
293  }
294 
305  sal_Int32 getCapacity() const
306  {
307  return nCapacity;
308  }
309 
321  void ensureCapacity(sal_Int32 minimumCapacity)
322  {
323  rtl_stringbuffer_ensureCapacity( &pData, &nCapacity, minimumCapacity );
324  }
325 
344  void setLength(sal_Int32 newLength)
345  {
346  assert(newLength >= 0);
347  // Avoid modifications if pData points to const empty string:
348  if( newLength != pData->length )
349  {
350  if( newLength > nCapacity )
351  rtl_stringbuffer_ensureCapacity(&pData, &nCapacity, newLength);
352  else
353  pData->buffer[newLength] = '\0';
354  pData->length = newLength;
355  }
356  }
357 
371  SAL_DEPRECATED("use rtl::OStringBuffer::operator [] instead")
372  sal_Char charAt( sal_Int32 index )
373  {
374  assert(index >= 0 && index < pData->length);
375  return pData->buffer[ index ];
376  }
377 
388  SAL_DEPRECATED("use rtl::OStringBuffer::operator [] instead")
389  OStringBuffer & setCharAt(sal_Int32 index, sal_Char ch)
390  {
391  assert(index >= 0 && index < pData->length);
392  pData->buffer[ index ] = ch;
393  return *this;
394  }
395 
399  const sal_Char* getStr() const { return pData->buffer; }
400 
410  sal_Char & operator [](sal_Int32 index)
411  {
412  assert(index >= 0 && index < pData->length);
413  return pData->buffer[index];
414  }
415 
420  const OString toString() const
421  {
422  return OString(pData->buffer, pData->length);
423  }
424 
436  {
437  return append( str.getStr(), str.getLength() );
438  }
439 
451  template< typename T >
453  {
454  return append( str, rtl_str_getLength( str ) );
455  }
456 
457  template< typename T >
459  {
460  return append( str, rtl_str_getLength( str ) );
461  }
462 
468  template< typename T >
470  {
471  RTL_STRING_CONST_FUNCTION
472  assert( strlen( literal ) == libreoffice_internal::ConstCharArrayDetector< T >::size - 1 );
473  rtl_stringbuffer_insert( &pData, &nCapacity, getLength(), literal, libreoffice_internal::ConstCharArrayDetector< T, void >::size - 1 );
474  return *this;
475  }
476 
490  OStringBuffer & append( const sal_Char * str, sal_Int32 len)
491  {
492  assert( len >= 0 );
493  assert( len == 0 || str != 0 );
494  rtl_stringbuffer_insert( &pData, &nCapacity, getLength(), str, len );
495  return *this;
496  }
497 
498 #ifdef RTL_FAST_STRING
499 
503  template< typename T1, typename T2 >
504  OStringBuffer& append( const OStringConcat< T1, T2 >& c )
505  {
506  const int l = c.length();
507  if( l == 0 )
508  return *this;
509  rtl_stringbuffer_ensureCapacity( &pData, &nCapacity, pData->length + l );
510  char* end = c.addData( pData->buffer + pData->length );
511  *end = '\0';
512  pData->length = end - pData->buffer;
513  return *this;
514  }
515 #endif
516 
529  {
531  return append( sz, rtl_str_valueOfBoolean( sz, b ) );
532  }
533 
548  {
550  return append( sz, rtl_str_valueOfBoolean( sz, b ) );
551  }
552 
554  // Pointer can be automatically converted to bool, which is unwanted here.
555  // Explicitly delete all pointer append() overloads to prevent this
556  // (except for char* overload, which is handled elsewhere).
557  template< typename T >
558  typename libreoffice_internal::Enable< void,
560  append( T* ) SAL_DELETED_FUNCTION;
562 
574  {
575  return append( &c, 1 );
576  }
577 
590  OStringBuffer & append(sal_Int32 i, sal_Int16 radix = 10 )
591  {
593  return append( sz, rtl_str_valueOfInt32( sz, i, radix ) );
594  }
595 
608  OStringBuffer & append(sal_Int64 l, sal_Int16 radix = 10 )
609  {
611  return append( sz, rtl_str_valueOfInt64( sz, l, radix ) );
612  }
613 
626  {
628  return append( sz, rtl_str_valueOfFloat( sz, f ) );
629  }
630 
642  OStringBuffer & append(double d)
643  {
645  return append( sz, rtl_str_valueOfDouble( sz, d ) );
646  }
647 
663  char * appendUninitialized(sal_Int32 length) {
664  assert(length >= 0);
665  sal_Int32 n = getLength();
666  rtl_stringbuffer_insert(&pData, &nCapacity, n, 0, length);
667  return pData->buffer + n;
668  }
669 
685  OStringBuffer & insert(sal_Int32 offset, const OString & str)
686  {
687  return insert( offset, str.getStr(), str.getLength() );
688  }
689 
707  template< typename T >
709  {
710  return insert( offset, str, rtl_str_getLength( str ) );
711  }
712 
713  template< typename T >
715  {
716  return insert( offset, str, rtl_str_getLength( str ) );
717  }
718 
724  template< typename T >
726  {
727  RTL_STRING_CONST_FUNCTION
728  assert( strlen( literal ) == libreoffice_internal::ConstCharArrayDetector< T >::size - 1 );
730  return *this;
731  }
732 
751  OStringBuffer & insert( sal_Int32 offset, const sal_Char * str, sal_Int32 len)
752  {
753  assert( offset >= 0 && offset <= pData->length );
754  assert( len >= 0 );
755  assert( len == 0 || str != 0 );
756  rtl_stringbuffer_insert( &pData, &nCapacity, offset, str, len );
757  return *this;
758  }
759 
777  OStringBuffer & insert(sal_Int32 offset, sal_Bool b)
778  {
780  return insert( offset, sz, rtl_str_valueOfBoolean( sz, b ) );
781  }
782 
802  OStringBuffer & insert(sal_Int32 offset, bool b)
803  {
805  return insert( offset, sz, rtl_str_valueOfBoolean( sz, b ) );
806  }
807 
824  OStringBuffer & insert(sal_Int32 offset, sal_Char c)
825  {
826  return insert( offset, &c, 1 );
827  }
828 
847  OStringBuffer & insert(sal_Int32 offset, sal_Int32 i, sal_Int16 radix = 10 )
848  {
850  return insert( offset, sz, rtl_str_valueOfInt32( sz, i, radix ) );
851  }
852 
871  OStringBuffer & insert(sal_Int32 offset, sal_Int64 l, sal_Int16 radix = 10 )
872  {
874  return insert( offset, sz, rtl_str_valueOfInt64( sz, l, radix ) );
875  }
876 
894  OStringBuffer insert(sal_Int32 offset, float f)
895  {
897  return insert( offset, sz, rtl_str_valueOfFloat( sz, f ) );
898  }
899 
917  OStringBuffer & insert(sal_Int32 offset, double d)
918  {
920  return insert( offset, sz, rtl_str_valueOfDouble( sz, d ) );
921  }
922 
935  OStringBuffer & remove( sal_Int32 start, sal_Int32 len )
936  {
937  assert( start >= 0 && start <= pData->length );
938  assert( len >= 0 );
939  rtl_stringbuffer_remove( &pData, start, len );
940  return *this;
941  }
942 
943 #ifdef LIBO_INTERNAL_ONLY
944  // This is to complement the RTL_FAST_STRING operator+, which allows any combination of valid operands,
945  // even two buffers. It's intentional it returns OString, just like the operator+ would in the fast variant.
946 #ifndef RTL_FAST_STRING
947 
951  friend OString operator+( const OStringBuffer& str1, const OStringBuffer& str2 )
952  {
953  return OString( str1.pData ).concat( str2.pData );
954  }
955 #endif
956 #endif
957 
958 private:
962  rtl_String * pData;
963 
967  sal_Int32 nCapacity;
968 };
969 
970 #ifdef RTL_FAST_STRING
971 
974 template<>
975 struct ToStringHelper< OStringBuffer >
976  {
977  static int length( const OStringBuffer& s ) { return s.getLength(); }
978  static char* addData( char* buffer, const OStringBuffer& s ) { return addDataHelper( buffer, s.getStr(), s.getLength()); }
979  static const bool allowOStringConcat = true;
980  static const bool allowOUStringConcat = false;
981  };
982 #endif
983 
984 
985 }
986 
987 #ifdef RTL_STRING_UNITTEST
988 namespace rtl
989 {
990 typedef rtlunittest::OStringBuffer OStringBuffer;
991 }
992 #undef RTL_STRING_CONST_FUNCTION
993 #endif
994 
995 #ifdef RTL_USING
996 using ::rtl::OStringBuffer;
997 #endif
998 
999 #endif // INCLUDED_RTL_STRBUF_HXX
1000 
1001 
1002 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OStringBuffer & insert(sal_Int32 offset, sal_Int64 l, sal_Int16 radix=10)
Inserts the string representation of the long argument into this string buffer.
Definition: strbuf.hxx:871
OStringBuffer & append(const OString &str)
Appends the string to this string buffer.
Definition: strbuf.hxx:435
SAL_DLLPUBLIC sal_Int32 rtl_str_valueOfFloat(sal_Char *str, float f) SAL_THROW_EXTERN_C()
Create the string representation of a float.
SAL_DLLPUBLIC rtl_String * rtl_string_alloc(sal_Int32 nLen) SAL_THROW_EXTERN_C()
Allocate a new string containing space for a given number of characters.
#define RTL_STR_MAX_VALUEOFBOOLEAN
Definition: string.h:585
SAL_DLLPUBLIC sal_Int32 rtl_str_valueOfDouble(sal_Char *str, double d) SAL_THROW_EXTERN_C()
Create the string representation of a double.
unsigned char sal_Bool
Definition: types.h:48
OStringBuffer(T &literal, typename libreoffice_internal::ConstCharArrayDetector< T, libreoffice_internal::Dummy >::Type=libreoffice_internal::Dummy())
Constructs a string buffer so that it represents the same sequence of characters as the string litera...
Definition: strbuf.hxx:187
OStringBuffer(int length)
Constructs a string buffer with no characters in it and an initial capacity specified by the length a...
Definition: strbuf.hxx:129
#define RTL_STR_MAX_VALUEOFINT32
Definition: string.h:627
SAL_DLLPUBLIC void rtl_string_release(rtl_String *str) SAL_THROW_EXTERN_C()
Decrement the reference count of a string.
bool isEmpty() const
Checks if a string buffer is empty.
Definition: strbuf.hxx:290
libreoffice_internal::CharPtrDetector< T, OStringBuffer & >::Type append(const T &str)
Appends the string representation of the char array argument to this string buffer.
Definition: strbuf.hxx:452
OStringBuffer & insert(sal_Int32 offset, const sal_Char *str, sal_Int32 len)
Inserts the string representation of the char array argument into this string buffer.
Definition: strbuf.hxx:751
libreoffice_internal::NonConstCharArrayDetector< T, OStringBuffer & >::Type append(T &str)
Definition: strbuf.hxx:458
const OString toString() const
Return a OString instance reflecting the current content of this OStringBuffer.
Definition: strbuf.hxx:420
OStringBuffer(const OString &value)
Constructs a string buffer so that it represents the same sequence of characters as the string argume...
Definition: strbuf.hxx:146
SAL_DLLPUBLIC void rtl_stringbuffer_remove(rtl_String **This, sal_Int32 start, sal_Int32 len)
Removes the characters in a substring of this sequence.
Definition: stringutils.hxx:68
libreoffice_internal::CharPtrDetector< T, OStringBuffer & >::Type insert(sal_Int32 offset, const T &str)
Inserts the string representation of the char array argument into this string buffer.
Definition: strbuf.hxx:708
~OStringBuffer()
Release the string data.
Definition: strbuf.hxx:251
OStringBuffer & append(const sal_Char *str, sal_Int32 len)
Appends the string representation of the char array argument to this string buffer.
Definition: strbuf.hxx:490
OStringBuffer(T &value, typename libreoffice_internal::NonConstCharArrayDetector< T, libreoffice_internal::Dummy >::Type=libreoffice_internal::Dummy())
Definition: strbuf.hxx:167
SAL_DLLPUBLIC void rtl_stringbuffer_ensureCapacity(rtl_String **This, sal_Int32 *capacity, sal_Int32 minimumCapacity)
Ensures that the capacity of the buffer is at least equal to the specified minimum.
OStringBuffer & insert(sal_Int32 offset, sal_Char c)
Inserts the string representation of the char argument into this string buffer.
Definition: strbuf.hxx:824
#define RTL_STR_MAX_VALUEOFDOUBLE
Definition: string.h:711
OStringBuffer & insert(sal_Int32 offset, sal_Bool b)
Inserts the string representation of the sal_Bool argument into this string buffer.
Definition: strbuf.hxx:777
SAL_DLLPUBLIC sal_Int32 rtl_str_getLength(const sal_Char *str) SAL_THROW_EXTERN_C()
Return the length of a string.
#define RTL_STR_MAX_VALUEOFINT64
Definition: string.h:650
OStringBuffer()
Constructs a string buffer with no characters in it and an initial capacity of 16 characters...
Definition: strbuf.hxx:103
void setLength(sal_Int32 newLength)
Sets the length of this String buffer.
Definition: strbuf.hxx:344
SAL_DLLPUBLIC void rtl_stringbuffer_insert(rtl_String **This, sal_Int32 *capacity, sal_Int32 offset, const sal_Char *str, sal_Int32 len)
Inserts the string representation of the char array argument into this string buffer.
void ensureCapacity(sal_Int32 minimumCapacity)
Ensures that the capacity of the buffer is at least equal to the specified minimum.
Definition: strbuf.hxx:321
SAL_DLLPUBLIC sal_Int32 rtl_stringbuffer_newFromStringBuffer(rtl_String **newStr, sal_Int32 capacity, rtl_String *oldStr)
Allocates a new String that contains the same sequence of characters as the string argument...
OStringBuffer & append(bool b)
Appends the string representation of the bool argument to the string buffer.
Definition: strbuf.hxx:547
char sal_Char
A legacy synonym for char.
Definition: types.h:130
const sal_Char * getStr() const
Returns a pointer to the characters of this string.
Definition: string.hxx:362
OStringBuffer(const OStringBuffer &value)
Allocates a new string buffer that contains the same sequence of characters as the string buffer argu...
Definition: strbuf.hxx:116
#define RTL_STR_MAX_VALUEOFFLOAT
Definition: string.h:692
SAL_WARN_UNUSED_RESULT OString concat(const OString &str) const
Concatenates the specified string to the end of this string.
Definition: string.hxx:1124
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:394
SAL_DLLPUBLIC sal_Int32 rtl_str_valueOfBoolean(sal_Char *str, sal_Bool b) SAL_THROW_EXTERN_C()
Create the string representation of a boolean.
OStringBuffer(const sal_Char *value, sal_Int32 length)
Constructs a string buffer so that it represents the same sequence of characters as the string argume...
Definition: strbuf.hxx:210
const sal_Char * getStr() const
Return a null terminated character array.
Definition: strbuf.hxx:399
SAL_DLLPUBLIC void rtl_string_new(rtl_String **newStr) SAL_THROW_EXTERN_C()
Allocate a new string containing no characters.
SAL_DLLPUBLIC void rtl_stringbuffer_newFromStr_WithLength(rtl_String **newStr, const sal_Char *value, sal_Int32 count)
Allocates a new String that contains characters from the character array argument.
SAL_DLLPUBLIC sal_Int32 rtl_str_valueOfInt32(sal_Char *str, sal_Int32 i, sal_Int16 radix) SAL_THROW_EXTERN_C()
Create the string representation of an integer.
OStringBuffer & insert(sal_Int32 offset, const OString &str)
Inserts the string into this string buffer.
Definition: strbuf.hxx:685
OStringBuffer & append(float f)
Appends the string representation of the float argument to this string buffer.
Definition: strbuf.hxx:625
Definition: stringutils.hxx:171
A string buffer implements a mutable sequence of characters.
Definition: strbuf.hxx:96
SAL_DLLPUBLIC void rtl_string_newFromLiteral(rtl_String **newStr, const sal_Char *value, sal_Int32 len, sal_Int32 allocExtra) SAL_THROW_EXTERN_C()
OStringBuffer & 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: strbuf.hxx:847
OStringBuffer & append(sal_Bool b)
Appends the string representation of the sal_Bool argument to the string buffer.
Definition: strbuf.hxx:528
libreoffice_internal::NonConstCharArrayDetector< T, OStringBuffer & >::Type insert(sal_Int32 offset, T &str)
Definition: strbuf.hxx:714
SAL_DLLPUBLIC void rtl_string_new_WithLength(rtl_String **newStr, sal_Int32 len) SAL_THROW_EXTERN_C()
Allocate a new string containing space for a given number of characters.
OStringBuffer insert(sal_Int32 offset, float f)
Inserts the string representation of the float argument into this string buffer.
Definition: strbuf.hxx:894
OStringBuffer & insert(sal_Int32 offset, bool b)
Inserts the string representation of the bool argument into this string buffer.
Definition: strbuf.hxx:802
libreoffice_internal::ConstCharArrayDetector< T, OStringBuffer & >::Type append(T &literal)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: strbuf.hxx:469
sal_Int32 getLength() const
Returns the length of this string.
Definition: string.hxx:336
Definition: stringutils.hxx:70
OString makeStringAndClear()
Fill the string data in the new string and clear the buffer.
Definition: strbuf.hxx:264
OStringBuffer(const T &value, typename libreoffice_internal::CharPtrDetector< T, libreoffice_internal::Dummy >::Type=libreoffice_internal::Dummy())
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: strbuf.hxx:158
OStringBuffer & append(sal_Int64 l, sal_Int16 radix=10)
Appends the string representation of the long argument to this string buffer.
Definition: strbuf.hxx:608
OStringBuffer & append(double d)
Appends the string representation of the double argument to this string buffer.
Definition: strbuf.hxx:642
OStringBuffer & append(sal_Int32 i, sal_Int16 radix=10)
Appends the string representation of the sal_Int32 argument to this string buffer.
Definition: strbuf.hxx:590
libreoffice_internal::ConstCharArrayDetector< T, OStringBuffer & >::Type insert(sal_Int32 offset, T &literal)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: strbuf.hxx:725
sal_Int32 getCapacity() const
Returns the current capacity of the String buffer.
Definition: strbuf.hxx:305
sal_Int32 getLength() const
Returns the length (character count) of this string buffer.
Definition: strbuf.hxx:277
SAL_DLLPUBLIC sal_Int32 rtl_str_valueOfInt64(sal_Char *str, sal_Int64 l, sal_Int16 radix) SAL_THROW_EXTERN_C()
Create the string representation of a long integer.
char * appendUninitialized(sal_Int32 length)
Unsafe way to make space for a fixed amount of characters to be appended into this OStringBuffer...
Definition: strbuf.hxx:663
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:588
#define SAL_DEPRECATED(message)
Use as follows: SAL_DEPRECATED("Dont use, its evil.") void doit(int nPara);.
Definition: types.h:475
This String class provide base functionality for C++ like 8-Bit character array handling.
Definition: string.hxx:88
OStringBuffer & insert(sal_Int32 offset, double d)
Inserts the string representation of the double argument into this string buffer. ...
Definition: strbuf.hxx:917