#include <tstring.hpp>
Public Member Functions | |
t_string () | |
t_string (const t_string &) | |
t_string (const std::string &string) | |
t_string (const std::string &string, const std::string &textdomain) | |
t_string (const char *string) | |
std::string | to_serialized () const |
t_string & | operator= (const t_string &) |
t_string & | operator= (const std::string &) |
t_string & | operator= (const char *) |
t_string | operator+ (const t_string &) const |
t_string | operator+ (const std::string &) const |
t_string | operator+ (const char *) const |
t_string & | operator+= (const t_string &) |
t_string & | operator+= (const std::string &) |
t_string & | operator+= (const char *) |
bool | operator== (const t_string &string) const |
bool | operator== (const std::string &string) const |
bool | operator== (const char *string) const |
bool | operator!= (const t_string &string) const |
bool | operator!= (const std::string &string) const |
bool | operator!= (const char *string) const |
bool | operator< (const t_string &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 |
const std::string & | value () const |
const std::string | base_str () const |
void | reset_translation () const |
Static Public Member Functions | |
static t_string | from_serialized (const std::string &string) |
static void | add_textdomain (const std::string &name, const std::string &path) |
Private Attributes | |
std::string | value_ |
std::string | translated_value_ |
bool | translatable_ |
bool | last_untranslatable_ |
Friends | |
class | walker |
Classes | |
class | walker |
Definition at line 20 of file tstring.hpp.
t_string::t_string | ( | ) |
t_string::t_string | ( | const t_string & | string | ) |
Definition at line 152 of file tstring.cpp.
t_string::t_string | ( | const std::string & | string | ) |
Definition at line 160 of file tstring.cpp.
t_string::t_string | ( | const std::string & | string, | |
const std::string & | textdomain | |||
) |
Definition at line 168 of file tstring.cpp.
References id, id_to_textdomain, textdomain_to_id, and value_.
t_string::t_string | ( | const char * | string | ) |
Definition at line 190 of file tstring.cpp.
t_string t_string::from_serialized | ( | const std::string & | string | ) | [static] |
Definition at line 198 of file tstring.cpp.
References empty(), t_string(), translatable_, TRANSLATABLE_PART, and UNTRANSLATABLE_PART.
Referenced by read_compressed_internal().
std::string t_string::to_serialized | ( | ) | const |
Definition at line 232 of file tstring.cpp.
References last_untranslatable_, TEXTDOMAIN_SEPARATOR, translatable_, TRANSLATABLE_PART, value(), and value_.
Definition at line 256 of file tstring.cpp.
References last_untranslatable_, translatable_, translated_value_, and value_.
t_string & t_string::operator= | ( | const std::string & | string | ) |
Definition at line 266 of file tstring.cpp.
References translatable_, translated_value_, and value_.
t_string & t_string::operator= | ( | const char * | string | ) |
Definition at line 275 of file tstring.cpp.
References translatable_, translated_value_, and value_.
Definition at line 284 of file tstring.cpp.
t_string t_string::operator+ | ( | const std::string & | string | ) | const |
Definition at line 291 of file tstring.cpp.
t_string t_string::operator+ | ( | const char * | string | ) | const |
Definition at line 298 of file tstring.cpp.
Definition at line 305 of file tstring.cpp.
References last_untranslatable_, translatable_, translated_value_, UNTRANSLATABLE_PART, and value_.
t_string & t_string::operator+= | ( | const std::string & | string | ) |
Definition at line 341 of file tstring.cpp.
References empty(), last_untranslatable_, translatable_, translated_value_, UNTRANSLATABLE_PART, and value_.
t_string & t_string::operator+= | ( | const char * | string | ) |
Definition at line 364 of file tstring.cpp.
References last_untranslatable_, translatable_, translated_value_, UNTRANSLATABLE_PART, and value_.
bool t_string::operator== | ( | const t_string & | string | ) | const [inline] |
bool t_string::operator== | ( | const std::string & | string | ) | const [inline] |
bool t_string::operator== | ( | const char * | string | ) | const [inline] |
bool t_string::operator!= | ( | const t_string & | string | ) | const [inline] |
Definition at line 72 of file tstring.hpp.
bool t_string::operator!= | ( | const std::string & | string | ) | const [inline] |
Definition at line 73 of file tstring.hpp.
bool t_string::operator!= | ( | const char * | string | ) | const [inline] |
Definition at line 74 of file tstring.hpp.
bool t_string::operator< | ( | const t_string & | string | ) | const [inline] |
bool t_string::empty | ( | ) | const [inline] |
Definition at line 78 of file tstring.hpp.
References value_.
Referenced by unit::add_modification(), attack_type::apply_modification(), unit::apply_modifications(), attack_type::attack_type(), from_serialized(), gui2::tcontrol::get_best_size(), mp::connect::side::get_config(), dialogs::unit_types_preview_pane::get_details(), gui2::tcontrol::get_minimum_size(), gui2::tcontrol::get_multi_line_best_size(), gui2::tcontrol::get_single_line_best_size(), unit::internal_matches_filter(), mp::connect::lists_init(), operator+=(), mp::create::process_event(), mp::connect::process_network_data(), gui2::tgui_definition::read(), gui2::tcontrol::set_tooltip(), mp::connect::side::side(), gui2::tcontrol_definition::tcontrol_definition(), terrain_type::terrain_type(), unit_type::unit_description(), unit_movement_type::unit_movement_type(), unit_race::unit_race(), and write_key_val().
std::string::size_type t_string::size | ( | ) | const [inline] |
Definition at line 79 of file tstring.hpp.
References str().
Referenced by mp::wait::generate_menu().
t_string::operator const std::string & | ( | ) | const [inline] |
const std::string & t_string::str | ( | ) | const |
Definition at line 388 of file tstring.cpp.
References dsgettext(), translatable_, translated_value_, and value_.
Referenced by vconfig::expand(), mp::wait::generate_menu(), map_editor::terrain_palette::get_terrain_string(), mp::connect::lists_init(), operator const std::string &(), operator!=(), operator+(), operator==(), size(), and wml_exception().
const char* t_string::c_str | ( | ) | const [inline] |
Definition at line 83 of file tstring.hpp.
const std::string& t_string::value | ( | ) | const [inline] |
const std::string t_string::base_str | ( | ) | const |
void t_string::reset_translation | ( | ) | const [inline] |
Definition at line 90 of file tstring.hpp.
void t_string::add_textdomain | ( | const std::string & | name, | |
const std::string & | path | |||
) | [static] |
friend class walker [friend] |
Definition at line 46 of file tstring.hpp.
std::string t_string::value_ [private] |
Definition at line 94 of file tstring.hpp.
Referenced by empty(), operator+=(), operator<(), operator=(), operator==(), str(), t_string(), and to_serialized().
std::string t_string::translated_value_ [mutable, private] |
bool t_string::translatable_ [private] |
Definition at line 96 of file tstring.hpp.
Referenced by from_serialized(), operator+=(), operator=(), operator==(), str(), and to_serialized().
bool t_string::last_untranslatable_ [private] |
Definition at line 96 of file tstring.hpp.
Referenced by operator+=(), operator=(), and to_serialized().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |