The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Functions
strftime.cpp File Reference
#include "strftime.hpp"
#include "gettext.hpp"
#include "language.hpp"
#include <string>
Include dependency graph for strftime.cpp:

Go to the source code of this file.

Namespaces

 util
 

Functions

static std::string reformat (const std::string &format, const std::tm *time, bool locale_correct, bool ampm_supported)
 
static bool locale_supports_ampm (const std::tm *time)
 
size_t util::strftime (char *str, size_t count, const std::string &format, const std::tm *time)
 

Function Documentation

static bool locale_supports_ampm ( const std::tm *  time)
static

Definition at line 116 of file strftime.cpp.

References util::strftime().

Referenced by util::strftime().

static std::string reformat ( const std::string format,
const std::tm *  time,
bool  locale_correct,
bool  ampm_supported 
)
static

Definition at line 36 of file strftime.cpp.

References _(), and translation::sgettext().

Referenced by util::strftime().