String Class Reference

Defines a string. More...

Functions

 String ()
 
 ~String ()
 
 String (const String &str)
 
 String (const char *data)
 
void set (const char *data)
 
const char * get () const
 
bool empty () const
 
Stringoperator= (const String &str1)
 
Stringoperator= (const char *data)
 
 operator const char * ()
 
const char * c_str () const
 
size_t size ()
 
void clear ()
 
bool operator== (const String &s) const
 
bool operator!= (const String &s) const
 

Detailed Description

Defines a string.

Constructor and Destructor

◆ String() [1/3]

String ( )

◆ ~String()

~String ( )

◆ String() [2/3]

String ( const String str)

◆ String() [3/3]

String ( const char *  data)

Functions

◆ set()

void set ( const char *  data)

◆ get()

const char* get ( ) const

◆ empty()

bool empty ( ) const

◆ operator=() [1/2]

String& operator= ( const String str1)

◆ operator=() [2/2]

String& operator= ( const char *  data)

◆ operator const char *()

operator const char * ( )
inline

◆ c_str()

const char* c_str ( ) const

◆ size()

size_t size ( )

◆ clear()

void clear ( )

◆ operator==()

bool operator== ( const String s) const

◆ operator!=()

bool operator!= ( const String s) const