#include <tstring.hpp>
Public Types | |
typedef t_string_base | base |
typedef t_string_base::walker | walker |
Public Member Functions | |
t_string () | |
Default implementation, but defined out-of-line for efficiency reasons. More... | |
~t_string () | |
Default implementation, but defined out-of-line for efficiency reasons. More... | |
t_string (const t_string &) | |
Default implementation, but defined out-of-line for efficiency reasons. More... | |
t_string & | operator= (const t_string &) |
Default implementation, but defined out-of-line for efficiency reasons. More... | |
t_string (const base &) | |
t_string (const char *) | |
t_string (const std::string &) | |
t_string (const std::string &str, const std::string &textdomain) | |
t_string & | operator= (const char *o) |
std::string | to_serialized () const |
operator const t_string_base & () const | |
t_string | operator+ (const t_string &o) const |
t_string | operator+ (const std::string &o) const |
t_string | operator+ (const char *o) const |
t_string & | operator+= (const t_string &o) |
t_string & | operator+= (const std::string &o) |
t_string & | operator+= (const char *o) |
bool | operator== (const t_string &o) const |
bool | operator== (const std::string &o) const |
bool | operator== (const char *o) const |
bool | operator!= (const t_string &o) const |
bool | operator!= (const std::string &o) const |
bool | operator!= (const char *o) const |
bool | operator< (const t_string &o) 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 |
const t_string_base & | get () const |
void | swap (t_string &other) |
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) |
static void | reset_translations () |
Private Member Functions | |
template<typename T > | |
void | increase_impl (const T &other) |
Private Attributes | |
boost::shared_ptr< const t_string_base > | val_ |
Definition at line 113 of file tstring.hpp.
typedef t_string_base t_string::base |
Definition at line 116 of file tstring.hpp.
Definition at line 117 of file tstring.hpp.
t_string::t_string | ( | ) |
Default implementation, but defined out-of-line for efficiency reasons.
Definition at line 457 of file tstring.cpp.
Referenced by from_serialized().
t_string::~t_string | ( | ) |
Default implementation, but defined out-of-line for efficiency reasons.
Definition at line 461 of file tstring.cpp.
t_string::t_string | ( | const t_string & | o | ) |
Default implementation, but defined out-of-line for efficiency reasons.
Definition at line 465 of file tstring.cpp.
t_string::t_string | ( | const base & | o | ) |
Definition at line 469 of file tstring.cpp.
t_string::t_string | ( | const char * | o | ) |
Definition at line 473 of file tstring.cpp.
t_string::t_string | ( | const std::string & | o | ) |
Definition at line 477 of file tstring.cpp.
t_string::t_string | ( | const std::string & | str, |
const std::string & | textdomain | ||
) |
Definition at line 481 of file tstring.cpp.
|
static |
Definition at line 498 of file tstring.cpp.
References translation::bind_textdomain(), and LOG_CF.
Referenced by init_textdomains().
|
inline |
Definition at line 174 of file tstring.hpp.
References base_str().
Referenced by attack_info(), base_str(), and terrain_type::operator==().
|
inline |
Definition at line 171 of file tstring.hpp.
References c_str().
Referenced by c_str(), and lua_common::impl_tstring_tostring().
|
inline |
Definition at line 166 of file tstring.hpp.
References empty().
Referenced by unit::ability_tooltips(), unit::add_modification(), unit::add_trait_description(), attack_type::apply_modification(), attack_type::attack_type(), gui2::tcontrol::calculate_best_size(), terrain_label::calculate_shroud(), team::change_team(), terrain_type::description(), terrain_label::draw(), terrain_type::editor_name(), empty(), gui2::format_stats(), unit::generate_name(), gui2::tcontrol::get_best_text_size(), dialogs::unit_types_preview_pane::get_details(), gui2::tslider::get_value_label(), team_builder::objectives(), help::terrain_topic_generator::operator()(), gui2::tcontrol::place(), help::print_behavior_description(), ng::connect_engine::process_network_data(), gui2::tgui_definition::read(), gui2::tcontrol::request_reduce_width(), gui2::tunit_preview_pane::set_displayed_type(), gui2::tcontrol::set_tooltip(), gui2::set_weapon_info(), team::side_name(), gui2::tcontrol::signal_handler_show_helptip(), gui2::tcontrol::signal_handler_show_tooltip(), attack_type::special_tooltips(), gui2::implementation::tbuilder_control::tbuilder_control(), gui2::tcontrol_definition::tcontrol_definition(), terrain_type::terrain_type(), unit_type::unit_description(), unit_race::unit_race(), and game_events::WML_HANDLER_FUNCTION().
|
inlinestatic |
Definition at line 135 of file tstring.hpp.
References t_string_base::from_serialized(), and t_string().
Referenced by mp::wait::generate_menu(), and team::team_info::read().
|
inline |
Definition at line 179 of file tstring.hpp.
References val_.
Referenced by lua_common::impl_tstring_eq(), lua_common::impl_tstring_le(), lua_common::impl_tstring_lt(), operator+(), operator+=(), operator<(), operator<<(), and operator==().
|
inlineprivate |
|
inline |
Definition at line 169 of file tstring.hpp.
|
inline |
Definition at line 138 of file tstring.hpp.
|
inline |
Definition at line 160 of file tstring.hpp.
References operator==().
|
inline |
Definition at line 161 of file tstring.hpp.
References operator==().
|
inline |
Definition at line 162 of file tstring.hpp.
References operator==().
Definition at line 140 of file tstring.hpp.
References get().
|
inline |
Definition at line 141 of file tstring.hpp.
|
inline |
Definition at line 142 of file tstring.hpp.
Definition at line 152 of file tstring.hpp.
References get(), and increase_impl().
|
inline |
Definition at line 153 of file tstring.hpp.
References increase_impl().
|
inline |
Definition at line 154 of file tstring.hpp.
References increase_impl().
|
inline |
Definition at line 164 of file tstring.hpp.
References get().
Default implementation, but defined out-of-line for efficiency reasons.
Definition at line 485 of file tstring.cpp.
References val_.
t_string & t_string::operator= | ( | const char * | o | ) |
Definition at line 491 of file tstring.cpp.
References swap().
|
inline |
|
inline |
Definition at line 157 of file tstring.hpp.
|
inline |
Definition at line 158 of file tstring.hpp.
|
static |
Definition at line 506 of file tstring.cpp.
References language_counter.
Referenced by do_gameloop().
|
inline |
Definition at line 167 of file tstring.hpp.
References size().
Referenced by hotkey::add_wml_hotkey(), mp::wait::generate_menu(), and size().
|
inline |
Definition at line 170 of file tstring.hpp.
References str().
Referenced by terrain_label::calculate_shroud(), events::menu_handler::do_search(), terrain_label::draw(), gui2::tgame_load::filter_text_changed(), gui2::tunit_create::filter_text_changed(), mp::wait::generate_menu(), utils::interpolate_variables_into_tstring(), lua_gui2::intf_set_dialog_value(), luaW_tofaivariant(), game_events::wml_menu_item::menu_text(), help::terrain_topic_generator::operator()(), config::attribute_value::string_visitor::operator()(), ai::lua_aspect_visitor::operator()(), fai_variant_visitor::operator()(), config::attribute_value::operator=(), map_labels::set_label(), team::side_name(), and str().
|
inline |
Definition at line 136 of file tstring.hpp.
References to_serialized().
Referenced by ng::connect_engine::connect_engine(), and to_serialized().
|
inline |
Definition at line 172 of file tstring.hpp.
References translatable().
Referenced by config::attribute_value::operator=(), team::team_info::read(), and translatable().
|
inline |
|
private |
Definition at line 183 of file tstring.hpp.
Referenced by get(), increase_impl(), operator=(), and swap().