#include <tstring.hpp>
Classes | |
class | walker |
Public Member Functions | |
t_string_base () | |
~t_string_base () | |
Default implementation, but defined out-of-line for efficiency reasons. More... | |
t_string_base (const t_string_base &) | |
Default implementation, but defined out-of-line for efficiency reasons. More... | |
t_string_base (const std::string &string) | |
t_string_base (const std::string &string, const std::string &textdomain) | |
t_string_base (const char *string) | |
std::string | to_serialized () const |
t_string_base & | operator= (const t_string_base &) |
Default implementation, but defined out-of-line for efficiency reasons. More... | |
t_string_base & | operator= (const std::string &) |
t_string_base & | operator= (const char *) |
t_string_base | operator+ (const t_string_base &) const |
t_string_base | operator+ (const std::string &) const |
t_string_base | operator+ (const char *) const |
t_string_base & | operator+= (const t_string_base &) |
t_string_base & | operator+= (const std::string &) |
t_string_base & | operator+= (const char *) |
bool | operator== (const t_string_base &) const |
bool | operator== (const std::string &) const |
bool | operator== (const char *string) const |
bool | operator!= (const t_string_base &that) const |
bool | operator!= (const std::string &that) const |
bool | operator!= (const char *that) const |
bool | operator< (const t_string_base &string) const |
bool | empty () const |
std::string::size_type | size () const |
operator const std::string & () const | |
const std::string & | str () const |
const char * | c_str () const |
bool | translatable () const |
const std::string & | value () const |
std::string | base_str () const |
size_t | hash_value () const |
Static Public Member Functions | |
static t_string_base | from_serialized (const std::string &string) |
Private Attributes | |
std::string | value_ |
std::string | translated_value_ |
unsigned | translation_timestamp_ |
bool | translatable_ |
bool | last_untranslatable_ |
Friends | |
class | walker |
Definition at line 25 of file tstring.hpp.
t_string_base::t_string_base | ( | ) |
Definition at line 150 of file tstring.cpp.
Referenced by from_serialized().
t_string_base::~t_string_base | ( | ) |
Default implementation, but defined out-of-line for efficiency reasons.
Definition at line 159 of file tstring.cpp.
t_string_base::t_string_base | ( | const t_string_base & | string | ) |
Default implementation, but defined out-of-line for efficiency reasons.
Definition at line 163 of file tstring.cpp.
t_string_base::t_string_base | ( | const std::string & | string | ) |
Definition at line 172 of file tstring.cpp.
t_string_base::t_string_base | ( | const std::string & | string, |
const std::string & | textdomain | ||
) |
Definition at line 181 of file tstring.cpp.
References empty(), translatable_, and value_.
t_string_base::t_string_base | ( | const char * | string | ) |
Definition at line 210 of file tstring.cpp.
std::string t_string_base::base_str | ( | ) | const |
Definition at line 244 of file tstring.cpp.
|
inline |
Definition at line 95 of file tstring.hpp.
References str().
|
inline |
Definition at line 90 of file tstring.hpp.
References value_.
Referenced by from_serialized(), operator+=(), and t_string_base().
|
static |
Definition at line 219 of file tstring.cpp.
References empty(), t_string_base(), and translatable_.
Referenced by t_string::from_serialized().
size_t t_string_base::hash_value | ( | ) | const |
Definition at line 53 of file tstring.cpp.
References last_untranslatable_, translatable_, and value_.
Referenced by hash_value().
|
inline |
Definition at line 93 of file tstring.hpp.
References str().
|
inline |
Definition at line 81 of file tstring.hpp.
References operator==().
|
inline |
Definition at line 83 of file tstring.hpp.
References operator==().
|
inline |
Definition at line 85 of file tstring.hpp.
References operator==().
t_string_base t_string_base::operator+ | ( | const t_string_base & | string | ) | const |
Definition at line 310 of file tstring.cpp.
t_string_base t_string_base::operator+ | ( | const std::string & | string | ) | const |
Definition at line 317 of file tstring.cpp.
t_string_base t_string_base::operator+ | ( | const char * | string | ) | const |
Definition at line 324 of file tstring.cpp.
t_string_base & t_string_base::operator+= | ( | const t_string_base & | string | ) |
Definition at line 331 of file tstring.cpp.
References last_untranslatable_, translatable_, translated_value_, and value_.
t_string_base & t_string_base::operator+= | ( | const std::string & | string | ) |
Definition at line 367 of file tstring.cpp.
References empty(), last_untranslatable_, translatable_, translated_value_, and value_.
t_string_base & t_string_base::operator+= | ( | const char * | string | ) |
Definition at line 390 of file tstring.cpp.
References last_untranslatable_, translatable_, translated_value_, and value_.
bool t_string_base::operator< | ( | const t_string_base & | string | ) | const |
Definition at line 428 of file tstring.cpp.
References value_.
t_string_base & t_string_base::operator= | ( | const t_string_base & | string | ) |
Default implementation, but defined out-of-line for efficiency reasons.
Definition at line 277 of file tstring.cpp.
References last_untranslatable_, translatable_, translated_value_, translation_timestamp_, and value_.
t_string_base & t_string_base::operator= | ( | const std::string & | string | ) |
Definition at line 288 of file tstring.cpp.
References last_untranslatable_, translatable_, translated_value_, translation_timestamp_, and value_.
t_string_base & t_string_base::operator= | ( | const char * | string | ) |
Definition at line 299 of file tstring.cpp.
References last_untranslatable_, translatable_, translated_value_, translation_timestamp_, and value_.
bool t_string_base::operator== | ( | const t_string_base & | that | ) | const |
Definition at line 413 of file tstring.cpp.
References translatable_, and value_.
Referenced by operator!=().
bool t_string_base::operator== | ( | const std::string & | that | ) | const |
Definition at line 418 of file tstring.cpp.
References translatable_, and value_.
bool t_string_base::operator== | ( | const char * | string | ) | const |
Definition at line 423 of file tstring.cpp.
References translatable_, and value_.
|
inline |
Definition at line 91 of file tstring.hpp.
References str().
const std::string & t_string_base::str | ( | ) | const |
Definition at line 433 of file tstring.cpp.
References translation::dsgettext(), language_counter, translatable_, translated_value_, translation_timestamp_, and value_.
Referenced by c_str(), operator const std::string &(), and size().
std::string t_string_base::to_serialized | ( | ) | const |
Definition at line 253 of file tstring.cpp.
References last_untranslatable_, translatable_, value(), and value_.
|
inline |
Definition at line 96 of file tstring.hpp.
References translatable_.
|
inline |
|
friend |
Definition at line 50 of file tstring.hpp.
|
private |
Definition at line 107 of file tstring.hpp.
Referenced by hash_value(), operator+=(), operator=(), and to_serialized().
|
private |
Definition at line 107 of file tstring.hpp.
Referenced by from_serialized(), hash_value(), operator+=(), operator=(), operator==(), str(), t_string_base(), to_serialized(), translatable(), and t_string_base::walker::update().
|
mutableprivate |
Definition at line 105 of file tstring.hpp.
Referenced by operator+=(), operator=(), and str().
|
mutableprivate |
Definition at line 106 of file tstring.hpp.
Referenced by operator=(), and str().
|
private |
Definition at line 104 of file tstring.hpp.
Referenced by empty(), hash_value(), operator+=(), operator<(), operator=(), operator==(), str(), t_string_base(), to_serialized(), and value().