t_string Class Reference

#include <tstring.hpp>

List of all members.

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_stringoperator= (const t_string &)
t_stringoperator= (const std::string &)
t_stringoperator= (const char *)
t_string operator+ (const t_string &) const
t_string operator+ (const std::string &) const
t_string operator+ (const char *) const
t_stringoperator+= (const t_string &)
t_stringoperator+= (const std::string &)
t_stringoperator+= (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


Detailed Description

Definition at line 20 of file tstring.hpp.


Constructor & Destructor Documentation

t_string::t_string (  ) 

Definition at line 144 of file tstring.cpp.

Referenced by from_serialized().

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.


Member Function Documentation

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

t_string & t_string::operator= ( const t_string string  ) 

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_.

t_string t_string::operator+ ( const t_string string  )  const

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.

t_string & t_string::operator+= ( const t_string string  ) 

t_string & t_string::operator+= ( const std::string &  string  ) 

t_string & t_string::operator+= ( const char *  string  ) 

bool t_string::operator== ( const t_string string  )  const [inline]

Definition at line 69 of file tstring.hpp.

References translatable_, and value_.

bool t_string::operator== ( const std::string &  string  )  const [inline]

Definition at line 70 of file tstring.hpp.

References translatable_, and value_.

bool t_string::operator== ( const char *  string  )  const [inline]

Definition at line 71 of file tstring.hpp.

References translatable_, and value_.

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]

Definition at line 76 of file tstring.hpp.

References value_.

bool t_string::empty (  )  const [inline]

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]

Definition at line 81 of file tstring.hpp.

References str().

const std::string & t_string::str (  )  const

const char* t_string::c_str (  )  const [inline]

Definition at line 83 of file tstring.hpp.

const std::string& t_string::value (  )  const [inline]

Definition at line 87 of file tstring.hpp.

References value_.

Referenced by to_serialized().

const std::string t_string::base_str (  )  const

Definition at line 223 of file tstring.cpp.

Referenced by config::matches().

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]

Definition at line 410 of file tstring.cpp.

References LOG_CF.

Referenced by init_textdomains().


Friends And Related Function Documentation

friend class walker [friend]

Definition at line 46 of file tstring.hpp.


Member Data Documentation

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]

Definition at line 95 of file tstring.hpp.

Referenced by operator+=(), operator=(), and str().

bool t_string::translatable_ [private]

Definition at line 96 of file tstring.hpp.

Referenced by from_serialized(), operator+=(), operator=(), operator==(), str(), and to_serialized().

Definition at line 96 of file tstring.hpp.

Referenced by operator+=(), operator=(), and to_serialized().


The documentation for this class was generated from the following files:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs