Pyrogenesis  trunk
Namespaces | Classes | Typedefs | Functions | Variables
tinygettext Namespace Reference

Namespaces

 anonymous_namespace{dictionary.cpp}
 
 anonymous_namespace{language.cpp}
 
 anonymous_namespace{plural_forms.cpp}
 
 detail
 

Classes

class  Dictionary
 A simple dictionary class that mimics gettext() behaviour. More...
 
class  DictionaryManager
 Manager class for dictionaries, you give it a bunch of directories with .po files and it will then automatically load the right file on demand depending on which language was set. More...
 
class  FileSystem
 
class  IConv
 
class  Language
 Lightweight wrapper around LanguageSpec. More...
 
struct  Language_hash
 
struct  LanguageSpec
 
class  Log
 
class  PluralForms
 
class  POParser
 
class  POParserError
 
class  UnixFileSystem
 

Typedefs

using iconv_t = ::iconv_t
 
typedef unsigned int(* PluralFunc) (int n)
 

Functions

iconv_t iconv_open (const char *tocode, const char *fromcode)
 
size_t iconv (iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft)
 
int iconv_close (iconv_t cd)
 
bool operator< (const Language &lhs, const Language &rhs)
 
static bool has_suffix (const std::string &lhs, const std::string &rhs)
 
static bool has_prefix (const std::string &lhs, const std::string &rhs)
 

Variables

static const LanguageSpec languages []
 Language Definitions. More...
 

Typedef Documentation

◆ iconv_t

using tinygettext::iconv_t = typedef ::iconv_t

◆ PluralFunc

typedef unsigned int(* tinygettext::PluralFunc) (int n)

Function Documentation

◆ has_prefix()

static bool tinygettext::has_prefix ( const std::string &  lhs,
const std::string &  rhs 
)
static

◆ has_suffix()

static bool tinygettext::has_suffix ( const std::string &  lhs,
const std::string &  rhs 
)
static

◆ iconv()

size_t tinygettext::iconv ( iconv_t  cd,
const char **  inbuf,
size_t *  inbytesleft,
char **  outbuf,
size_t *  outbytesleft 
)
inline

◆ iconv_close()

int tinygettext::iconv_close ( iconv_t  cd)
inline

◆ iconv_open()

iconv_t tinygettext::iconv_open ( const char *  tocode,
const char *  fromcode 
)
inline

◆ operator<()

bool tinygettext::operator< ( const Language lhs,
const Language rhs 
)
inline

Variable Documentation

◆ languages

const LanguageSpec tinygettext::languages[]
static

Language Definitions.