Falcon::CoreString Class Reference

Garbage storage string. More...

#include <string.h>

Inheritance diagram for Falcon::CoreString:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 CoreString (const String &other, uint32 begin, uint32 end=csh::npos)
 CoreString (uint32 prealloc)
 Creates a bufferized string with preallocated space.
 CoreString (const wchar_t *data, int32 len)
 CoreString (const char *data, int32 len)
 CoreString (const wchar_t *data)
 CoreString (const char *data)
 CoreString (const CoreString &str)
 CoreString (const String &str)
 CoreString ()
StringGarbagegarbage ()
const StringGarbagegarbage () const
void mark (uint32 m)
CoreStringoperator+= (const wchar_t *other)
CoreStringoperator+= (wchar_t other)
CoreStringoperator+= (const char *other)
CoreStringoperator+= (char other)
CoreStringoperator+= (uint32 other)
CoreStringoperator+= (const String &other)
CoreStringoperator+= (const CoreString &other)
CoreStringoperator= (const char *other)
 Assign from a const char string.
CoreStringoperator= (uint32 chr)
CoreStringoperator= (const String &other)
CoreStringoperator= (const CoreString &other)


Detailed Description

Garbage storage string.

This is the String used in VM operations (i.e. in all the VM items). It is allocated inside the garbage collector, and cannot be directly deleted.


Constructor & Destructor Documentation

Falcon::CoreString::CoreString (  )  [inline]

Falcon::CoreString::CoreString ( const String str  )  [inline]

Falcon::CoreString::CoreString ( const CoreString str  )  [inline]

Falcon::CoreString::CoreString ( const char *  data  )  [inline]

Falcon::CoreString::CoreString ( const wchar_t *  data  )  [inline]

Falcon::CoreString::CoreString ( const char *  data,
int32  len 
) [inline]

Falcon::CoreString::CoreString ( const wchar_t *  data,
int32  len 
) [inline]

Falcon::CoreString::CoreString ( uint32  prealloc  )  [inline, explicit]

Creates a bufferized string with preallocated space.

Falcon::CoreString::CoreString ( const String other,
uint32  begin,
uint32  end = csh::npos 
) [inline]


Member Function Documentation

StringGarbage& Falcon::CoreString::garbage (  )  [inline]

const StringGarbage& Falcon::CoreString::garbage (  )  const [inline]

void Falcon::CoreString::mark ( uint32  m  )  [inline]

CoreString& Falcon::CoreString::operator+= ( const wchar_t *  other  )  [inline]

Reimplemented from Falcon::String.

CoreString& Falcon::CoreString::operator+= ( wchar_t  other  )  [inline]

Reimplemented from Falcon::String.

CoreString& Falcon::CoreString::operator+= ( const char *  other  )  [inline]

Reimplemented from Falcon::String.

CoreString& Falcon::CoreString::operator+= ( char  other  )  [inline]

Reimplemented from Falcon::String.

CoreString& Falcon::CoreString::operator+= ( uint32  other  )  [inline]

Reimplemented from Falcon::String.

CoreString& Falcon::CoreString::operator+= ( const String other  )  [inline]

Reimplemented from Falcon::String.

CoreString& Falcon::CoreString::operator+= ( const CoreString other  )  [inline]

CoreString& Falcon::CoreString::operator= ( const char *  other  )  [inline]

Assign from a const char string.

If this string is not empty, its content are destroyed; then this object is changed into a static zero terminated C string and the phisical location of the const char assigned to this string is taken as undestroyable reference. This operation is meant for C string phisically stored somewhere in the program and that stay valid for the whole program duration, or at least for the whole lifespan of this Falcon::String object.

Reimplemented from Falcon::String.

CoreString& Falcon::CoreString::operator= ( uint32  chr  )  [inline]

Reimplemented from Falcon::String.

CoreString& Falcon::CoreString::operator= ( const String other  )  [inline]

Reimplemented from Falcon::String.

CoreString& Falcon::CoreString::operator= ( const CoreString other  )  [inline]


The documentation for this class was generated from the following file:

Generated on Mon Oct 19 10:11:33 2009 for Falcon_Core by  doxygen 1.5.8