src/tools/tLocale.h File Reference

#include "tMemManager.h"
#include "tString.h"
#include "tLinkedList.h"
#include "tError.h"

Include dependency graph for tLocale.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tLanguage
class  tOutput
class  tOutputItemBase
class  tOutputItem< T >
class  tLocale

Functions

template<class T>
tOutputoperator<< (tOutput &o, const T &e)
tOutputoperator<< (tOutput &o, const char *locale)
tOutputoperator<< (tOutput &o, char *locale)
std::ostream & operator<< (std::ostream &s, const tOutput &o)
tStringoperator<< (tString &s, const tOutput &o)
std::ostream & operator<< (std::ostream &s, const tLocaleItem &o)
tStringoperator<< (tString &s, const tLocaleItem &o)


Function Documentation

tString& operator<< ( tString s,
const tLocaleItem o 
)

Definition at line 808 of file tLocale.cpp.

00809 {
00810     s << static_cast<const char *>(o);
00811     return s;
00812 }

std::ostream& operator<< ( std::ostream &  s,
const tLocaleItem o 
)

Definition at line 803 of file tLocale.cpp.

00804 {
00805     return s << static_cast<const char*>(t);
00806 }

tString& operator<< ( tString s,
const tOutput o 
)

Definition at line 767 of file tLocale.cpp.

00768 {
00769     s << tString(o);
00770     return s;
00771 }

std::ostream& operator<< ( std::ostream &  s,
const tOutput o 
)

Definition at line 754 of file tLocale.cpp.

00755 {
00756     return s << tString(o);
00757 }

tOutput& operator<< ( tOutput o,
char *  locale 
)

Definition at line 733 of file tLocale.cpp.

00734 {
00735     return operator<<(o, static_cast<const char *>(locale));
00736 }

tOutput& operator<< ( tOutput o,
const char *  locale 
)

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 }

Here is the call graph for this function:

template<class T>
tOutput& operator<< ( tOutput o,
const T &  e 
) [inline]

Definition at line 195 of file tLocale.h.

References tNEW.

00196 {
00197     tNEW(tOutputItem<T>)(o, e);
00198     return o;
00199 }


Generated on Sat Mar 15 23:12:03 2008 for Armagetron Advanced by  doxygen 1.5.4