Blender  V3.3
Macros | Typedefs | Functions | Variables
boost_locale_wrapper.cpp File Reference
#include <boost/locale.hpp>
#include <iostream>
#include <stdio.h>
#include "boost_locale_wrapper.h"

Go to the source code of this file.

Macros

#define LOCALE_INFO   std::use_facet<boost::locale::info>(_locale)
 

Typedefs

typedef boost::locale::message_format< char > char_message_facet
 

Functions

static void bl_locale_global_cache ()
 
void bl_locale_init (const char *_messages_path, const char *_default_domain)
 
void bl_locale_set (const char *locale)
 
const char * bl_locale_get (void)
 
const char * bl_locale_pgettext (const char *msgctxt, const char *msgid)
 

Variables

static std::string messages_path
 
static std::string default_domain
 
static std::string locale_str
 
static std::locale locale_global
 
static char_message_facet const * facet_global = NULL
 

Macro Definition Documentation

◆ LOCALE_INFO

#define LOCALE_INFO   std::use_facet<boost::locale::info>(_locale)

Typedef Documentation

◆ char_message_facet

typedef boost::locale::message_format<char> char_message_facet

Definition at line 21 of file boost_locale_wrapper.cpp.

Function Documentation

◆ bl_locale_get()

const char* bl_locale_get ( void  )

Definition at line 120 of file boost_locale_wrapper.cpp.

References locale_str.

Referenced by BLT_lang_get().

◆ bl_locale_global_cache()

static void bl_locale_global_cache ( )
static

Definition at line 25 of file boost_locale_wrapper.cpp.

References e, facet_global, locale_global, NULL, and void.

Referenced by bl_locale_set().

◆ bl_locale_init()

void bl_locale_init ( const char *  _messages_path,
const char *  _default_domain 
)

Definition at line 53 of file boost_locale_wrapper.cpp.

References default_domain, and messages_path.

Referenced by BLT_lang_init().

◆ bl_locale_pgettext()

const char* bl_locale_pgettext ( const char *  msgctxt,
const char *  msgid 
)

Definition at line 125 of file boost_locale_wrapper.cpp.

References facet_global, and r.

Referenced by BLT_pgettext().

◆ bl_locale_set()

void bl_locale_set ( const char *  locale)

Variable Documentation

◆ default_domain

std::string default_domain
static

Definition at line 15 of file boost_locale_wrapper.cpp.

Referenced by bl_locale_init(), and bl_locale_set().

◆ facet_global

char_message_facet const* facet_global = NULL
static

Definition at line 23 of file boost_locale_wrapper.cpp.

Referenced by bl_locale_global_cache(), and bl_locale_pgettext().

◆ locale_global

std::locale locale_global
static

Definition at line 22 of file boost_locale_wrapper.cpp.

Referenced by bl_locale_global_cache().

◆ locale_str

std::string locale_str
static

Definition at line 16 of file boost_locale_wrapper.cpp.

Referenced by bl_locale_get(), and bl_locale_set().

◆ messages_path

std::string messages_path
static

Definition at line 14 of file boost_locale_wrapper.cpp.

Referenced by bl_locale_init(), and bl_locale_set().