Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

String.h File Reference

Go to the source code of this file.

Namespaces

namespace  toolbox

Defines

#define _TB_ST_SIZEINCREMENT   16
 The number of bytes to be allocated if the text does not fit into the buffer anymore.

#define CLONE_STRING(attribute, value)
#define UPDATE_STRING(attribute, value)


Define Documentation

#define _TB_ST_SIZEINCREMENT   16
 

The number of bytes to be allocated if the text does not fit into the buffer anymore.

Allocations are also aligned to multiples of this value.

Definition at line 21 of file String.h.

#define CLONE_STRING attribute,
value   ) 
 

Value:

{ \
      if ((attribute = new char[strlen(value) + 1]) == NULL) \
         throw EOutOfMemory::Get(); \
      strcpy(attribute, (value)); \
   }

Definition at line 26 of file String.h.

#define UPDATE_STRING attribute,
value   ) 
 

Value:

{ \
      if (attribute != NULL) {delete attribute;} \
      if ((attribute = new char[strlen(value) + 1]) == NULL) \
         throw EOutOfMemory::Get(); \
      strcpy(attribute, (value)); \
   }

Definition at line 33 of file String.h.


Generated on Tue Oct 3 00:23:38 2006 for ToolBox by doxygen 1.3.6