stdex Namespace Reference

Functions


Function Documentation

double stdex::atod ( const std::wstring &  sValue  ) 

Converts a string to it's double representation

Parameters:
sValue the string to convert
Returns:
double

Definition at line 93 of file std_ex.cpp.

Referenced by wUtil::CConfigStore::GetDoubleEntry().

float stdex::atof ( const std::wstring &  sValue  ) 

Converts a string to it's float representation

Parameters:
sValue the string to convert
Returns:
float

Definition at line 83 of file std_ex.cpp.

int stdex::atoi ( const std::wstring &  sValue  ) 

Converts a string to it's int representation

Parameters:
sValue the string to convert
Returns:
integer

Definition at line 63 of file std_ex.cpp.

Referenced by wGui::CRGBColor::CRGBColor().

long int stdex::atol ( const std::wstring &  sValue  ) 

Converts a string to it's long integer representation

Parameters:
sValue the string to convert
Returns:
long integer

Definition at line 73 of file std_ex.cpp.

Referenced by wUtil::CConfigStore::GetLongIntEntry().

std::vector< std::wstring > stdex::DetokenizeString ( const std::wstring &  sString,
const std::wstring &  sDelimiters 
)

Detokenize a string given a list of delimiters

Parameters:
sString The string to be tokenized
sDelimiters A string of delimiter characters
Returns:
A list of string tokens

Definition at line 139 of file std_ex.cpp.

Referenced by wGui::CRGBColor::CRGBColor(), and wGui::CApplication::GetFontEngine().

std::wstring stdex::dtoa ( const double  dValue  ) 

Converts a double to it's string representation

Parameters:
dValue The double to convert to a string
Returns:
A std::string representing the value

Definition at line 55 of file std_ex.cpp.

Referenced by wUtil::CConfigStore::SetDoubleEntry().

std::wstring stdex::ftoa ( const float  fValue  ) 

Converts a double to it's string representation

Parameters:
fValue The double to convert to a string
Returns:
A std::string representing the value

Definition at line 47 of file std_ex.cpp.

std::wstring stdex::itoa ( const int  iValue  ) 

Converts an integer to it's string representation

Parameters:
iValue The integer to convert to a string
Returns:
A std::string representing the value

Definition at line 31 of file std_ex.cpp.

Referenced by wGui::CFontEngine::CFontEngine(), wGui::CRect::ToString(), wGui::CPoint::ToString(), and wGui::CMouseMessage::TranslateSDLButton().

std::wstring stdex::ltoa ( const long  lValue  ) 

Converts a long integer to it's string representation

Parameters:
lValue The integer to convert to a string
Returns:
A std::string representing the value

Definition at line 39 of file std_ex.cpp.

Referenced by wUtil::CConfigStore::SetLongIntEntry().

template<typename TDest, typename TSrc>
TDest stdex::safe_static_cast ( const TSrc &  Value  ) 

Do a static cast with limits checking This will throw a std::out_of_range exception if the value is outside the bounds of the type it's being casted to

Definition at line 104 of file std_ex.h.

std::string stdex::ToMbString ( const std::wstring &  sWString  ) 

Convert a wstring to a multibyte string

Parameters:
sWString a wstring
Returns:
a multibyte string

Definition at line 128 of file std_ex.cpp.

Referenced by wGui::CBitmapFileResourceHandle::CBitmapFileResourceHandle(), wGui::CFontEngine::CFontEngine(), wGui::CApplication::GetFontEngine(), wUtil::CConfigStore::ReadFromFile(), wGui::CView::SetWindowText(), wUtil::CConfigStore::StoreToFile(), wGui::Wg_Ex_Base::what(), and wUtil::CLog::WriteToFile().

std::wstring stdex::ToWString ( const char *  sString  ) 

Convert a character string to a wstring

Parameters:
sString a pointer to the character string to be converted
Returns:
the wstring

Definition at line 117 of file std_ex.cpp.

Referenced by wGui::CApplication::CApplication(), wGui::CwgStringResourceHandle::CwgStringResourceHandle(), wGui::CApplication::Exec(), wGui::CView::HandleMessage(), wGui::CWindow::SetWindowRect(), wGui::CView::SetWindowRect(), and wGui::CApplication::~CApplication().

std::wstring stdex::TrimString ( const std::wstring &  sString  ) 

Trim the whitespace (spaces and tabs) from the beginning and end of a string

Parameters:
sString The string to be trimmed
Returns:
the trimmed string

Definition at line 103 of file std_ex.cpp.

Referenced by wUtil::CConfigStore::ReadFromFile().


Generated on Wed May 16 23:11:27 2007 for wGui by  doxygen 1.5.1