Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

i18n
Class I18n::CLocale

I18n::CLocale_interface
   |
   +--I18n::CLocale

   in CLocale.h

class I18n::CLocale
extends I18n::CLocale_interface


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

CacheAge

private int CacheAge;

CacheAgeLimit

private static const int CacheAgeLimit;

Dictionaries

private std::map< Str, I18n::CLocale::DictData > Dictionaries;

Script

private ScriptObject Script;

Strings

private I18n::CLocale::StringsType Strings;

TranslationCache

private std::map< TranslatedString*, I18n::CLocale::CacheData > TranslationCache;


Constructor Detail

CLocale

public CLocale( JSContext* context, JSObject* scope );

~CLocale

public ~CLocale();


Method Detail

AddDefaultString

private TranslatedString& AddDefaultString( const wchar_t* id );

AddToCache

public void AddToCache( StringBuffer*, Str& );

CallFunction

public const StrImW CallFunction( const char* name, const std::vector< BufferVariable* >& vars, const std::vector< ScriptValue* >& params );

ClearCache

public void ClearCache();

LoadDictionary

public bool LoadDictionary( const char* filedata );

LoadFunctions

public bool LoadFunctions( const char* filedata, size_t len, const char* filename );

LoadStrings

public bool LoadStrings( const char* filedata );

LookupProperty

public bool LookupProperty( const I18n::CLocale::LookupType* data, const Str& property, Str& result );

LookupWord

public const I18n::CLocale::LookupType* LookupWord( const Str& dictname, const Str& word );

ReadCached

public bool ReadCached( StringBuffer*, Str& );

Translate

public StringBuffer Translate( const wchar_t* id );

UnloadDictionaries

public void UnloadDictionaries();

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD