Definition at line 49 of file string.cpp.
Public Member Functions | |
void | attach () |
bool | detach () |
Returns true if the object deleted itself. | |
const char * | get_c_string () const |
const unsigned char * | get_p_string () const |
const int & | get_ref_count () const |
const wchar_t * | get_w_string () const |
string_impl & | operator= (const string_impl &) |
void | set_modified () |
string_impl (const wchar_t *) | |
string_impl (const string_impl &) | |
string_impl () | |
virtual | ~string_impl () |
Private Types | |
enum | { STRING_IMPL_OLD_CDATA = 1 << 0, STRING_IMPL_OLD_PDATA = 1 << 1, STRING_IMPL_MODIFIED = ~0 } |
Private Attributes | |
data::simple_array< char > | c_data |
8-bit null-terminated equivalent (in UTF-8). | |
gsgl::flags_t | modified_flags |
data::simple_array< unsigned char > | p_data |
8-bit null-indexed (Pascal) equivalent (in UTF-8). | |
data::simple_array< wchar_t > | w_data |
Null-terminated wchar_t string. |
anonymous enum [private] |
Definition at line 52 of file string.cpp.
string_impl | ( | ) |
Definition at line 86 of file string.cpp.
References simple_array::append(), and string_impl::w_data.
string_impl | ( | const string_impl & | si | ) |
string_impl | ( | const wchar_t * | str | ) | [explicit] |
Definition at line 100 of file string.cpp.
References simple_array::append(), simple_array::ptr(), and string_impl::w_data.
~string_impl | ( | ) | [virtual] |
Definition at line 116 of file string.cpp.
void attach | ( | ) | [inherited] |
Definition at line 53 of file shared.cpp.
References shared_object::ref_count.
Referenced by font::font(), material::material(), model_part::model_part(), string::operator=(), string::string(), texture::texture(), and string::unshare().
bool detach | ( | ) | [inherited] |
Returns true if the object deleted itself.
Definition at line 59 of file shared.cpp.
References shared_object::ref_count.
Referenced by string::make_null(), string::unshare(), font::~font(), and texture::~texture().
const char * get_c_string | ( | ) | const |
Definition at line 127 of file string.cpp.
References simple_array::append(), string_impl::c_data, simple_array::clear(), string_impl::modified_flags, simple_array::ptr(), string_impl::STRING_IMPL_OLD_CDATA, and string_impl::w_data.
Referenced by string::c_string().
const unsigned char * get_p_string | ( | ) | const |
Definition at line 143 of file string.cpp.
References simple_array::append(), simple_array::clear(), string_impl::modified_flags, string_impl::p_data, simple_array::ptr(), string_impl::STRING_IMPL_OLD_PDATA, and string_impl::w_data.
Referenced by string::p_string().
const int& get_ref_count | ( | ) | const [inline, inherited] |
const wchar_t * get_w_string | ( | ) | const |
Definition at line 121 of file string.cpp.
References simple_array::ptr(), and string_impl::w_data.
Referenced by string::w_string().
string_impl& operator= | ( | const string_impl & | ) |
void set_modified | ( | ) | [inline] |
Definition at line 78 of file string.cpp.
Referenced by string::append(), string::clear(), string::insert(), string::remove(), and string::substring().
data::simple_array<char> c_data [mutable, private] |
8-bit null-terminated equivalent (in UTF-8).
Definition at line 62 of file string.cpp.
Referenced by string_impl::get_c_string().
gsgl::flags_t modified_flags [mutable, private] |
Definition at line 59 of file string.cpp.
Referenced by string_impl::get_c_string(), and string_impl::get_p_string().
data::simple_array<unsigned char> p_data [mutable, private] |
8-bit null-indexed (Pascal) equivalent (in UTF-8).
Definition at line 63 of file string.cpp.
Referenced by string_impl::get_p_string().
data::simple_array<wchar_t> w_data [private] |
Null-terminated wchar_t string.
Definition at line 61 of file string.cpp.
Referenced by string::append(), string::clear(), string_impl::get_c_string(), string_impl::get_p_string(), string_impl::get_w_string(), string::insert(), string::item(), string::make_lower(), string::make_upper(), string::remove(), string::size(), string_impl::string_impl(), string::substring(), and string::to_bool().