The Battle for Wesnoth  1.19.0-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 124 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 214 of file tstring.hpp.

References a, and b.

◆ operator!=() [2/2]

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

Definition at line 213 of file tstring.hpp.

References a, and b.

◆ operator+() [1/2]

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

Definition at line 216 of file tstring.hpp.

References a, and b.

◆ operator+() [2/2]

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

Definition at line 215 of file tstring.hpp.

References a, and b.

◆ operator<<() [1/2]

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

Definition at line 661 of file tstring.cpp.

◆ operator<<() [2/2]

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

Definition at line 210 of file tstring.hpp.

References t_string::get().

◆ operator==() [1/2]

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

Definition at line 212 of file tstring.hpp.

References a, and b.

◆ operator==() [2/2]

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

Definition at line 211 of file tstring.hpp.

References a, and 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 656 of file tstring.cpp.

References t_string::swap().