|
0 A.D. | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
I18n::CLocale_interface | +--I18n::CLocalein CLocale.h
Inner Classes, Typedefs, and Enums | |
struct |
I18n::CLocale::CacheData
|
struct |
I18n::CLocale::DictData
|
typedef |
I18n::CLocale::LookupType
|
typedef |
I18n::CLocale::StringsType
|
Field Summary | |
private int |
CacheAge
|
private static const int |
CacheAgeLimit
|
private std::map< Str, I18n::CLocale::DictData > |
Dictionaries
|
private ScriptObject |
Script
|
private I18n::CLocale::StringsType |
Strings
|
private std::map< TranslatedString*, I18n::CLocale::CacheData > |
TranslationCache
|
Constructor Summary | |
CLocale( JSContext* context, JSObject* scope )
|
|
~CLocale()
|
Method Summary | |
private TranslatedString& |
AddDefaultString( const wchar_t* id )
|
void |
AddToCache( StringBuffer*, Str& )
|
const StrImW |
CallFunction( const char* name, const std::vector< BufferVariable* >& vars, const std::vector< ScriptValue* >& params )
|
void |
ClearCache()
|
bool |
LoadDictionary( const char* filedata )
|
bool |
LoadFunctions( const char* filedata, size_t len, const char* filename )
|
bool |
LoadStrings( const char* filedata )
|
bool |
LookupProperty( const I18n::CLocale::LookupType* data, const Str& property, Str& result )
|
const I18n::CLocale::LookupType* |
LookupWord( const Str& dictname, const Str& word )
|
bool |
ReadCached( StringBuffer*, Str& )
|
StringBuffer |
Translate( const wchar_t* id )
|
void |
UnloadDictionaries()
|
Methods inherited from class I18n::CLocale_interface |
Translate, LoadFunctions, LoadStrings, LoadDictionary, UnloadDictionaries |
Field Detail |
private int CacheAge;
private static const int CacheAgeLimit;
private std::map< Str, I18n::CLocale::DictData > Dictionaries;
private ScriptObject Script;
private I18n::CLocale::StringsType Strings;
private std::map< TranslatedString*, I18n::CLocale::CacheData > TranslationCache;
Constructor Detail |
public CLocale( JSContext* context, JSObject* scope );
public ~CLocale();
Method Detail |
private TranslatedString& AddDefaultString( const wchar_t* id );
public void AddToCache( StringBuffer*, Str& );
public const StrImW CallFunction( const char* name, const std::vector< BufferVariable* >& vars, const std::vector< ScriptValue* >& params );
public void ClearCache();
public bool LoadDictionary( const char* filedata );
public bool LoadFunctions( const char* filedata, size_t len, const char* filename );
public bool LoadStrings( const char* filedata );
public bool LookupProperty( const I18n::CLocale::LookupType* data, const Str& property, Str& result );
public const I18n::CLocale::LookupType* LookupWord( const Str& dictname, const Str& word );
public bool ReadCached( StringBuffer*, Str& );
public StringBuffer Translate( const wchar_t* id );
public void UnloadDictionaries();
|
0 A.D.
Generated on September 04, 2007 at 18:13 CppDoc v2.4.0 |
|||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |