CloudBuilder C++ SDK  v3.0.0
Making social games is easy !
Public Member Functions | List of all members

#include <CotCHelpers.h>

Public Member Functions

 cstring (const cstring &other)
 
 cstring (cstring &&other)
 
 cstring (const char *other)
 
 cstring (char *other, bool takeOwnership=false)
 
cstringoperator= (const char *other)
 
cstringoperator= (cstring &other)
 
cstringoperator= (cstring &&other)
 
 operator const char * () const
 
cstringoperator<<= (char *other)
 
char * c_str () const
 
bool operator== (const cstring &other) const
 
bool operator< (const cstring &other) const
 
bool operator > (const cstring &other) const
 
bool operator<= (const cstring &other) const
 
bool operator >= (const cstring &other) const
 
bool IsEqual (const char *other) const
 
char * DetachOwnership ()
 

Detailed Description

Constant string holder.

Member Function Documentation

◆ DetachOwnership()

char* CotCHelpers::cstring::DetachOwnership ( )

Takes out the string held by this cstring and returns it. You'll be free to delete it whenever needed.

Returns
the detached string

◆ operator<<=()

cstring& CotCHelpers::cstring::operator<<= ( char *  other)

Transfers ownership of the string to this cstring object. The 'other' object will be freed when this cstring dies and no copy is made.

Parameters
otherstring to use and be released at the end

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