The Battle for Wesnoth  1.19.5+dev
Classes | Functions
tstring.hpp File Reference
#include <memory>
#include <string>
#include <map>
#include <vector>
Include dependency graph for tstring.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  t_string_base
 Helper class for translatable strings. More...
 
class  t_string_base::walker
 
class  t_string
 

Functions

std::size_t hash_value (const t_string_base &str)
 
std::ostream & operator<< (std::ostream &, const t_string_base &)
 
void swap (t_string &lhs, t_string &rhs)
 Implement non-member swap function for std::swap (calls t_string::swap). More...
 
std::ostream & operator<< (std::ostream &os, const t_string &str)
 
bool operator== (const std::string &a, const t_string &b)
 
bool operator== (const char *a, const t_string &b)
 
bool operator!= (const std::string &a, const t_string &b)
 
bool operator!= (const char *a, const t_string &b)
 
t_string operator+ (const std::string &a, const t_string &b)
 
t_string operator+ (const char *a, const t_string &b)
 

Function Documentation

◆ hash_value()

std::size_t hash_value ( const t_string_base str)
inline

Definition at line 127 of file tstring.hpp.

References t_string_base::hash_value().

◆ operator!=() [1/2]

bool operator!= ( const char *  a,
const t_string b 
)
inline

Definition at line 222 of file tstring.hpp.

References b.

◆ operator!=() [2/2]

bool operator!= ( const std::string &  a,
const t_string b 
)
inline

Definition at line 221 of file tstring.hpp.

References b.

◆ operator+() [1/2]

t_string operator+ ( const char *  a,
const t_string b 
)
inline

Definition at line 224 of file tstring.hpp.

References b.

◆ operator+() [2/2]

t_string operator+ ( const std::string &  a,
const t_string b 
)
inline

Definition at line 223 of file tstring.hpp.

References b.

◆ operator<<() [1/2]

std::ostream& operator<< ( std::ostream &  stream,
const t_string_base string 
)

Definition at line 675 of file tstring.cpp.

◆ operator<<() [2/2]

std::ostream& operator<< ( std::ostream &  os,
const t_string str 
)
inline

Definition at line 218 of file tstring.hpp.

References t_string::get().

◆ operator==() [1/2]

bool operator== ( const char *  a,
const t_string b 
)
inline

Definition at line 220 of file tstring.hpp.

References b.

◆ operator==() [2/2]

bool operator== ( const std::string &  a,
const t_string b 
)
inline

Definition at line 219 of file tstring.hpp.

References b.

◆ swap()

void swap ( t_string lhs,
t_string rhs 
)

Implement non-member swap function for std::swap (calls t_string::swap).

Definition at line 670 of file tstring.cpp.

References t_string::swap().