#include "tMemManager.h"
#include "tLocale.h"
#include "tConsole.h"
#include "tDirectories.h"
#include "tSafePTR.h"
#include <fstream>
#include <string>
#include <map>
Go to the source code of this file.
Classes | |
class | tLocaleItem |
class | tLocaleSubItem |
class | tOutputItemLocale |
class | tOutputItemSpace |
class | tOutputItemTemplate |
Typedefs | |
typedef std::map< std::string, tJUST_CONTROLLED_PTR < tLocaleItem > > | tLocaleItemMap |
Functions | |
static void | getstring (tString &target, tOutputItemBase *item) |
static void | copyrec (tOutput &targ, tOutputItemBase *it) |
tOutput & | operator<< (tOutput &o, char *locale) |
tOutput & | operator<< (tOutput &o, const char *locale) |
std::ostream & | operator<< (std::ostream &s, const tOutput &o) |
tString & | operator<< (tString &s, const tOutput &o) |
std::ostream & | operator<< (std::ostream &s, const tLocaleItem &t) |
tString & | operator<< (tString &s, const tLocaleItem &o) |
Variables | |
static tArray< tString > | st_TemplateParameters |
static tString | s_gameName ("Armagetron") |
static const tLanguage * | st_firstLanguage = NULL |
static const tLanguage * | st_secondLanguage = NULL |
static tLanguage * | st_languageAnchor = NULL |
static tLanguage * | currentLanguage = NULL |
static const tString | LANGUAGE ("language") |
static const tString | INCLUDE ("include") |
typedef std::map< std::string, tJUST_CONTROLLED_PTR< tLocaleItem > > tLocaleItemMap |
Definition at line 75 of file tLocale.cpp.
static void copyrec | ( | tOutput & | targ, | |
tOutputItemBase * | it | |||
) | [static] |
Definition at line 650 of file tLocale.cpp.
References tOutputItemBase::Clone(), and tListItem< T >::Next().
Referenced by tOutput::Append(), tOutput::operator=(), and tOutput::tOutput().
00651 { 00652 if (!it) 00653 return; 00654 00655 copyrec(targ, it->Next()); 00656 it->Clone(targ); 00657 }
static void getstring | ( | tString & | target, | |
tOutputItemBase * | item | |||
) | [static] |
Definition at line 514 of file tLocale.cpp.
References tListItem< T >::Next(), and tOutputItemBase::Print().
Referenced by tOutput::operator const char *().
00515 { 00516 if (!item) 00517 return; 00518 getstring(target, item->Next()); 00519 item->Print(target); 00520 }
tString& operator<< | ( | tString & | s, | |
const tLocaleItem & | o | |||
) |
std::ostream& operator<< | ( | std::ostream & | s, | |
const tLocaleItem & | t | |||
) |
std::ostream& operator<< | ( | std::ostream & | s, | |
const tOutput & | o | |||
) |
Definition at line 739 of file tLocale.cpp.
References tLocale::Find(), and tNEW.
00739 { 00740 int len = strlen(locale); 00741 if (len == 0) 00742 return o; 00743 if (len == 1 && locale[0] == ' ') 00744 tNEW(tOutputItemSpace)(o); 00745 else if (locale[0] == '$') 00746 tNEW(tOutputItemLocale)(o, tLocale::Find(locale+1)); 00747 else 00748 tNEW(tOutputItem<tString>)(o, tString(locale)); 00749 00750 return o; 00751 }
tLanguage* currentLanguage = NULL [static] |
Definition at line 79 of file tLocale.cpp.
Referenced by tLocaleItem::Load().
Referenced by tLocaleItem::Load().
tString s_gameName("Armagetron") [static] |
Referenced by tLocale::Load(), and tLocaleItem::operator const char *().
const tLanguage* st_firstLanguage = NULL [static] |
Definition at line 70 of file tLocale.cpp.
tLanguage* st_languageAnchor = NULL [static] |
Definition at line 73 of file tLocale.cpp.
const tLanguage* st_secondLanguage = NULL [static] |
Definition at line 71 of file tLocale.cpp.
tArray<tString> st_TemplateParameters [static] |
Definition at line 38 of file tLocale.cpp.