The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Public Member Functions | Static Public Member Functions | Private Attributes | Friends | List of all members
t_string_base Class Reference

#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_baseoperator= (const t_string_base &)
 Default implementation, but defined out-of-line for efficiency reasons. More...
 
t_string_baseoperator= (const std::string &)
 
t_string_baseoperator= (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_baseoperator+= (const t_string_base &)
 
t_string_baseoperator+= (const std::string &)
 
t_string_baseoperator+= (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::stringstr () const
 
const char * c_str () const
 
bool translatable () const
 
const std::stringvalue () 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
 

Detailed Description

Definition at line 25 of file tstring.hpp.

Constructor & Destructor Documentation

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.

Member Function Documentation

std::string t_string_base::base_str ( ) const

Definition at line 244 of file tstring.cpp.

const char* t_string_base::c_str ( ) const
inline

Definition at line 95 of file tstring.hpp.

References str().

bool t_string_base::empty ( ) const
inline

Definition at line 90 of file tstring.hpp.

References value_.

Referenced by from_serialized(), operator+=(), and t_string_base().

t_string_base t_string_base::from_serialized ( const std::string string)
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().

t_string_base::operator const std::string & ( ) const
inline

Definition at line 93 of file tstring.hpp.

References str().

bool t_string_base::operator!= ( const t_string_base that) const
inline

Definition at line 81 of file tstring.hpp.

References operator==().

bool t_string_base::operator!= ( const std::string that) const
inline

Definition at line 83 of file tstring.hpp.

References operator==().

bool t_string_base::operator!= ( const char *  that) const
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)
t_string_base & t_string_base::operator= ( const char *  string)
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_.

std::string::size_type t_string_base::size ( ) const
inline

Definition at line 91 of file tstring.hpp.

References str().

const std::string & t_string_base::str ( ) const
std::string t_string_base::to_serialized ( ) const

Definition at line 253 of file tstring.cpp.

References last_untranslatable_, translatable_, value(), and value_.

bool t_string_base::translatable ( ) const
inline

Definition at line 96 of file tstring.hpp.

References translatable_.

const std::string& t_string_base::value ( ) const
inline

Definition at line 99 of file tstring.hpp.

References value_.

Referenced by to_serialized().

Friends And Related Function Documentation

friend class walker
friend

Definition at line 50 of file tstring.hpp.

Member Data Documentation

bool t_string_base::last_untranslatable_
private

Definition at line 107 of file tstring.hpp.

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

bool t_string_base::translatable_
private
std::string t_string_base::translated_value_
mutableprivate

Definition at line 105 of file tstring.hpp.

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

unsigned t_string_base::translation_timestamp_
mutableprivate

Definition at line 106 of file tstring.hpp.

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

std::string t_string_base::value_
private

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