The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Functions | Variables
tstring.cpp File Reference

Routines for translatable strings. More...

#include "global.hpp"
#include <map>
#include <vector>
#include <mutex>
#include "tstring.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "utils/shared_object.hpp"
#include <boost/functional/hash.hpp>
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/hashed_index.hpp>
#include <boost/multi_index/member.hpp>
Include dependency graph for tstring.cpp:

Go to the source code of this file.

Macros

#define LOG_CF   LOG_STREAM(info, log_config)
 
#define ERR_CF   LOG_STREAM(err, log_config)
 

Functions

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

Variables

static lg::log_domain log_config ("config")
 
static unsigned language_counter = 0
 

Detailed Description

Routines for translatable strings.

Definition in file tstring.cpp.

Macro Definition Documentation

#define ERR_CF   LOG_STREAM(err, log_config)

Definition at line 39 of file tstring.cpp.

Referenced by t_string_base::walker::update().

#define LOG_CF   LOG_STREAM(info, log_config)

Definition at line 38 of file tstring.cpp.

Referenced by t_string::add_textdomain().

Function Documentation

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

Definition at line 511 of file tstring.cpp.

Variable Documentation

unsigned language_counter = 0
static

Definition at line 41 of file tstring.cpp.

Referenced by t_string::reset_translations(), and t_string_base::str().

lg::log_domain log_config("config")
static