Neo  0.5.0
Developer Documentation
Neo::String Class Reference

Implements a framework for string manipulation that operates directly on C strings. More...

#include <NeoString.h>

Public Member Functions

 String (void)
 
 String (const char *data)
 
 String (const String &string)
 
 ~String (void)
 
void clear (void)
 Clears the string. More...
 
void set (const char *data)
 Copies the given string to the internal buffer. More...
 
const char * getSafeString (void)
 Returns the C string. This method is ensured to return a valid C string and never NULL. More...
 
const char * getData (void)
 Returns the current internal string buffer. Attention: Might return NULL! More...
 
void operator= (const String &string)
 
void operator= (const char *data)
 

Detailed Description

Implements a framework for string manipulation that operates directly on C strings.

Constructor & Destructor Documentation

Neo::String::String ( void  )
Neo::String::String ( const char *  data)
Neo::String::String ( const String string)
Neo::String::~String ( void  )

Member Function Documentation

void Neo::String::clear ( void  )

Clears the string.

const char* Neo::String::getData ( void  )
inline

Returns the current internal string buffer. Attention: Might return NULL!

Returns
The internal string buffer
const char* Neo::String::getSafeString ( void  )

Returns the C string. This method is ensured to return a valid C string and never NULL.

Returns
The C string
void Neo::String::operator= ( const String string)
inline
void Neo::String::operator= ( const char *  data)
inline
void Neo::String::set ( const char *  data)

Copies the given string to the internal buffer.

Parameters
dataThe new string data.

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