MyGUI 3.0.1
Namespaces | Functions
MyGUI::utility Namespace Reference

Namespaces

namespace  templates

Functions

void trim (std::string &_str, bool _left=true, bool _right=true)
template<typename T >
std::string toString (T p)
const std::string & toString (const std::string &_value)
template<typename T1 , typename T2 >
std::string toString (T1 p1, T2 p2)
template<typename T1 , typename T2 , typename T3 >
std::string toString (T1 p1, T2 p2, T3 p3)
template<typename T1 , typename T2 , typename T3 , typename T4 >
std::string toString (T1 p1, T2 p2, T3 p3, T4 p4)
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
std::string toString (T1 p1, T2 p2, T3 p3, T4 p4, T5 p5)
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 >
std::string toString (T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6)
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 >
std::string toString (T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7)
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 >
std::string toString (T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8)
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 >
std::string toString (T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9)
template<>
std::string toString< bool > (bool _value)
template<typename T >
parseValue (const std::string &_value)
template<>
bool parseValue (const std::string &_value)
short parseShort (const std::string &_value)
unsigned short parseUShort (const std::string &_value)
int parseInt (const std::string &_value)
unsigned int parseUInt (const std::string &_value)
size_t parseSizeT (const std::string &_value)
float parseFloat (const std::string &_value)
double parseDouble (const std::string &_value)
bool parseBool (const std::string &_value)
char parseChar (const std::string &_value)
unsigned char parseUChar (const std::string &_value)
template<typename T1 , typename T2 >
T1 parseValueEx2 (const std::string &_value)
template<typename T1 , typename T2 >
T1 parseValueEx3 (const std::string &_value)
template<typename T1 , typename T2 >
T1 parseValueEx4 (const std::string &_value)
std::vector< std::string > split (const std::string &_source, const std::string &_delims="\t\n ")
template<typename T1 , typename T2 , typename T3 , typename T4 >
bool parseComplex (const std::string &_value, T1 &_p1, T2 &_p2, T3 &_p3, T4 &_p4)
template<typename T1 , typename T2 , typename T3 >
bool parseComplex (const std::string &_value, T1 &_p1, T2 &_p2, T3 &_p3)
template<typename T1 , typename T2 >
bool parseComplex (const std::string &_value, T1 &_p1, T2 &_p2)
template<typename T1 >
bool parseComplex (const std::string &_value, T1 &_p1)
template<>
bool parseComplex< bool > (const std::string &_value, bool &_p1)

Function Documentation

bool MyGUI::utility::parseBool ( const std::string &  _value) [inline]

Definition at line 171 of file MyGUI_Utility.h.

char MyGUI::utility::parseChar ( const std::string &  _value) [inline]

Definition at line 172 of file MyGUI_Utility.h.

template<typename T1 >
bool MyGUI::utility::parseComplex ( const std::string &  _value,
T1 &  _p1 
) [inline]

Definition at line 315 of file MyGUI_Utility.h.

template<typename T1 , typename T2 , typename T3 , typename T4 >
bool MyGUI::utility::parseComplex ( const std::string &  _value,
T1 &  _p1,
T2 &  _p2,
T3 &  _p3,
T4 &  _p4 
) [inline]

Definition at line 261 of file MyGUI_Utility.h.

template<typename T1 , typename T2 , typename T3 >
bool MyGUI::utility::parseComplex ( const std::string &  _value,
T1 &  _p1,
T2 &  _p2,
T3 &  _p3 
) [inline]

Definition at line 279 of file MyGUI_Utility.h.

template<typename T1 , typename T2 >
bool MyGUI::utility::parseComplex ( const std::string &  _value,
T1 &  _p1,
T2 &  _p2 
) [inline]

Definition at line 297 of file MyGUI_Utility.h.

template<>
bool MyGUI::utility::parseComplex< bool > ( const std::string &  _value,
bool &  _p1 
) [inline]

Definition at line 333 of file MyGUI_Utility.h.

double MyGUI::utility::parseDouble ( const std::string &  _value) [inline]

Definition at line 169 of file MyGUI_Utility.h.

float MyGUI::utility::parseFloat ( const std::string &  _value) [inline]

Definition at line 168 of file MyGUI_Utility.h.

int MyGUI::utility::parseInt ( const std::string &  _value) [inline]

Definition at line 165 of file MyGUI_Utility.h.

short MyGUI::utility::parseShort ( const std::string &  _value) [inline]

Definition at line 163 of file MyGUI_Utility.h.

size_t MyGUI::utility::parseSizeT ( const std::string &  _value) [inline]

Definition at line 167 of file MyGUI_Utility.h.

unsigned char MyGUI::utility::parseUChar ( const std::string &  _value) [inline]

Definition at line 173 of file MyGUI_Utility.h.

unsigned int MyGUI::utility::parseUInt ( const std::string &  _value) [inline]

Definition at line 166 of file MyGUI_Utility.h.

unsigned short MyGUI::utility::parseUShort ( const std::string &  _value) [inline]

Definition at line 164 of file MyGUI_Utility.h.

template<typename T >
T MyGUI::utility::parseValue ( const std::string &  _value) [inline]

Definition at line 128 of file MyGUI_Utility.h.

template<>
unsigned char MyGUI::utility::parseValue ( const std::string &  _value) [inline]

Definition at line 148 of file MyGUI_Utility.h.

template<typename T1 , typename T2 >
T1 MyGUI::utility::parseValueEx2 ( const std::string &  _value) [inline]

Definition at line 177 of file MyGUI_Utility.h.

template<typename T1 , typename T2 >
T1 MyGUI::utility::parseValueEx3 ( const std::string &  _value) [inline]

Definition at line 196 of file MyGUI_Utility.h.

template<typename T1 , typename T2 >
T1 MyGUI::utility::parseValueEx4 ( const std::string &  _value) [inline]

Definition at line 215 of file MyGUI_Utility.h.

std::vector<std::string> MyGUI::utility::split ( const std::string &  _source,
const std::string &  _delims = "\t\n " 
) [inline]

Definition at line 253 of file MyGUI_Utility.h.

template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 >
std::string MyGUI::utility::toString ( T1  p1,
T2  p2,
T3  p3,
T4  p4,
T5  p5,
T6  p6,
T7  p7 
) [inline]

Definition at line 96 of file MyGUI_Utility.h.

template<typename T1 , typename T2 , typename T3 >
std::string MyGUI::utility::toString ( T1  p1,
T2  p2,
T3  p3 
) [inline]

Definition at line 64 of file MyGUI_Utility.h.

const std::string& MyGUI::utility::toString ( const std::string &  _value) [inline]

Definition at line 50 of file MyGUI_Utility.h.

template<typename T1 , typename T2 , typename T3 , typename T4 >
std::string MyGUI::utility::toString ( T1  p1,
T2  p2,
T3  p3,
T4  p4 
) [inline]

Definition at line 72 of file MyGUI_Utility.h.

template<typename T1 , typename T2 >
std::string MyGUI::utility::toString ( T1  p1,
T2  p2 
) [inline]

Definition at line 56 of file MyGUI_Utility.h.

template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
std::string MyGUI::utility::toString ( T1  p1,
T2  p2,
T3  p3,
T4  p4,
T5  p5 
) [inline]

Definition at line 80 of file MyGUI_Utility.h.

template<typename T >
std::string MyGUI::utility::toString ( p) [inline]

Definition at line 43 of file MyGUI_Utility.h.

template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 >
std::string MyGUI::utility::toString ( T1  p1,
T2  p2,
T3  p3,
T4  p4,
T5  p5,
T6  p6,
T7  p7,
T8  p8,
T9  p9 
) [inline]

Definition at line 112 of file MyGUI_Utility.h.

template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 >
std::string MyGUI::utility::toString ( T1  p1,
T2  p2,
T3  p3,
T4  p4,
T5  p5,
T6  p6,
T7  p7,
T8  p8 
) [inline]

Definition at line 104 of file MyGUI_Utility.h.

template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 >
std::string MyGUI::utility::toString ( T1  p1,
T2  p2,
T3  p3,
T4  p4,
T5  p5,
T6  p6 
) [inline]

Definition at line 88 of file MyGUI_Utility.h.

template<>
std::string MyGUI::utility::toString< bool > ( bool  _value) [inline]

Definition at line 120 of file MyGUI_Utility.h.

void MyGUI::utility::trim ( std::string &  _str,
bool  _left = true,
bool  _right = true 
) [inline]

Definition at line 35 of file MyGUI_Utility.h.