MyGUI  3.2.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)
 
template<>
char parseValue (const std::string &_value)
 
template<>
unsigned char 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)
 
bool startWith (const std::string &_source, const std::string &_value)
 
bool endWith (const std::string &_source, const std::string &_value)
 

Function Documentation

bool MyGUI::utility::endWith ( const std::string &  _source,
const std::string &  _value 
)
inline

Definition at line 410 of file MyGUI_StringUtility.h.

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

Definition at line 191 of file MyGUI_StringUtility.h.

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

Definition at line 196 of file MyGUI_StringUtility.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 299 of file MyGUI_StringUtility.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 319 of file MyGUI_StringUtility.h.

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

Definition at line 339 of file MyGUI_StringUtility.h.

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

Definition at line 359 of file MyGUI_StringUtility.h.

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

Definition at line 379 of file MyGUI_StringUtility.h.

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

Definition at line 186 of file MyGUI_StringUtility.h.

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

Definition at line 181 of file MyGUI_StringUtility.h.

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

Definition at line 166 of file MyGUI_StringUtility.h.

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

Definition at line 156 of file MyGUI_StringUtility.h.

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

Definition at line 176 of file MyGUI_StringUtility.h.

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

Definition at line 201 of file MyGUI_StringUtility.h.

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

Definition at line 171 of file MyGUI_StringUtility.h.

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

Definition at line 161 of file MyGUI_StringUtility.h.

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

Definition at line 112 of file MyGUI_StringUtility.h.

template<>
bool MyGUI::utility::parseValue ( const std::string &  _value)
inline

Definition at line 134 of file MyGUI_StringUtility.h.

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

Definition at line 143 of file MyGUI_StringUtility.h.

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

Definition at line 150 of file MyGUI_StringUtility.h.

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

Definition at line 208 of file MyGUI_StringUtility.h.

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

Definition at line 229 of file MyGUI_StringUtility.h.

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

Definition at line 250 of file MyGUI_StringUtility.h.

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

Definition at line 291 of file MyGUI_StringUtility.h.

bool MyGUI::utility::startWith ( const std::string &  _source,
const std::string &  _value 
)
inline

Definition at line 397 of file MyGUI_StringUtility.h.

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

Definition at line 27 of file MyGUI_StringUtility.h.

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

Definition at line 34 of file MyGUI_StringUtility.h.

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

Definition at line 40 of file MyGUI_StringUtility.h.

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

Definition at line 48 of file MyGUI_StringUtility.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 56 of file MyGUI_StringUtility.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 64 of file MyGUI_StringUtility.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 72 of file MyGUI_StringUtility.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 80 of file MyGUI_StringUtility.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 88 of file MyGUI_StringUtility.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 96 of file MyGUI_StringUtility.h.

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

Definition at line 104 of file MyGUI_StringUtility.h.

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

Definition at line 19 of file MyGUI_StringUtility.h.