MboStrHelper.h File Reference

String helper (template) functions. More...

#include "Mbo.h"
#include "MboTString.h"
#include <string>
#include <sstream>
#include <functional>
#include <assert.h>

Include dependency graph for MboStrHelper.h:

Mbo.hMboTString.hMboDebugTrace.harg_info.h

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

MboStrList.hMboIniData.hMboStrMap.hMboDrawWin.h

Go to the source code of this file.

Namespaces

namespace  mbo

Classes

struct  mbo::less_ic< _Ty >

Defines

#define snprintf   _snprintf

Functions

template<class _E>
_E * mbo::StrUpper (_E *str)
template<>
char * mbo::StrUpper (char *str)
template<>
unsigned char * mbo::StrUpper (unsigned char *str)
template<>
wchar_t * mbo::StrUpper (wchar_t *str)
template<class _E, class _Tr, class _A>
std::basic_string< _E, _Tr, _A > & mbo::StrUpper (std::basic_string< _E, _Tr, _A > &str)
template<class _E>
_E * mbo::StrLower (_E *str)
template<>
char * mbo::StrLower (char *str)
template<>
unsigned char * mbo::StrLower (unsigned char *str)
template<>
wchar_t * mbo::StrLower (wchar_t *str)
template<class _E, class _Tr, class _A>
std::basic_string< _E, _Tr, _A > & mbo::StrLower (std::basic_string< _E, _Tr, _A > &str)
template<class _E>
int mbo::StrCompareIC (const _E *lhs, const _E *rhs)
template<>
int mbo::StrCompareIC (const char *lhs, const char *rhs)
template<>
int mbo::StrCompareIC (const unsigned char *lhs, const unsigned char *rhs)
template<>
int mbo::StrCompareIC (const wchar_t *lhs, const wchar_t *rhs)
template<class _E, class _Tr, class _A>
int mbo::StrCompareIC (const std::basic_string< _E, _Tr, _A > &lhs, const _E *rhs)
template<class _E, class _Tr, class _A>
int mbo::StrCompareIC (const _E *lhs, const std::basic_string< _E, _Tr, _A > &rhs)
template<class _E, class _Tr, class _A>
int mbo::StrCompareIC (const std::basic_string< _E, _Tr, _A > &lhs, const std::basic_string< _E, _Tr, _A > &rhs)
template<class _E, class _Tr, class _A>
std::basic_string< _E, _Tr, _A > & mbo::StrTrimLeft (std::basic_string< _E, _Tr, _A > &str)
template<class _E, class _Tr, class _A>
std::basic_string< _E, _Tr, _A > & mbo::StrTrimRight (std::basic_string< _E, _Tr, _A > &str)
template<class _E, class _Tr, class _A>
std::basic_string< _E, _Tr, _A > & mbo::StrTrim (std::basic_string< _E, _Tr, _A > &str)
template<class _E, typename _ValType>
std::basic_string< _E > mbo::StrFrom (const _ValType &val)
template<>
std::basic_string< char > mbo::StrFrom (const int &val)
template<>
std::basic_string< char > mbo::StrFrom (const long &val)
template<>
std::basic_string< char > mbo::StrFrom (const bool &val)
template<typename _ValType, class _E, class _Tr, class _A>
_ValType mbo::StrTo (const std::basic_string< _E, _Tr, _A > &str)
template<class _E, class _Tr, class _A>
int mbo::StrToInt (const std::basic_string< _E, _Tr, _A > &str)
template<class _E, class _Tr, class _A>
long mbo::StrToLong (const std::basic_string< _E, _Tr, _A > &str)
template<class _E, class _Tr, class _A>
float mbo::StrToFloat (const std::basic_string< _E, _Tr, _A > &str)
template<>
float mbo::StrToFloat (const std::basic_string< char > &str)
template<class _E>
std::basic_string< _E > mbo::StrFromDouble (double val, int iWidth=-16, int iPrecision=10)
template<class _E>
std::basic_string< _E > mbo::StrFromFloat (double val, int iWidth=-10, int iPrecision=6)
template<class _E>
std::basic_string< _E > mbo::StrFromBool (bool val)
template<class _E, class _Tr, class _A>
std::basic_string< _E, _Tr, _A > mbo::StrUCFirst (const std::basic_string< _E, _Tr, _A > &str)
template<class _E, class _Tr, class _A>
bool mbo::StrStartsWith (const std::basic_string< _E, _Tr, _A > &str, const std::basic_string< _E, _Tr, _A > &strPrefix, bool bCaseSensitive=true)
template<class _E, class _Tr, class _A>
bool mbo::StrEndsWith (const std::basic_string< _E, _Tr, _A > &str, const std::basic_string< _E, _Tr, _A > &strPostfix, bool bCaseSensitive=true)
template<class _E, class _Tr, class _A>
std::basic_string< _E, _Tr, _A > mbo::LeftString (const std::basic_string< _E, _Tr, _A > &str, typename _A::size_type nLength, const std::basic_string< _E, _Tr, _A > *strMore=NULL, const std::basic_string< _E, _Tr, _A > *strAppend=NULL)
template<class _E, class _Tr, class _A>
std::basic_string< _E, _Tr, _A > mbo::LeftString (const std::basic_string< _E, _Tr, _A > &str, typename _A::size_type nLength, const std::basic_string< _E, _Tr, _A > &strMore)
template<class _E, class _Tr, class _A>
std::basic_string< _E, _Tr, _A > mbo::LeftString (const std::basic_string< _E, _Tr, _A > &str, typename _A::size_type nLength, const std::basic_string< _E, _Tr, _A > &strMore, const std::basic_string< _E, _Tr, _A > &strAppend)
template<class _E, class _Tr, class _A>
bool mbo::StrSplit (const std::basic_string< _E, _Tr, _A > &strValue, const std::basic_string< _E, _Tr, _A > &strSplit, std::basic_string< _E, _Tr, _A > &strLeft, std::basic_string< _E, _Tr, _A > &strRight, bool bTrim=false)
template<class _E, class _Tr, class _A>
size_t mbo::StrOccurences (std::basic_string< _E, _Tr, _A > &str, std::basic_string< _E, _Tr, _A > &strFind)
template<class _E, class _Tr, class _A>
std::basic_string< _E, _Tr, _A > & mbo::StrReplace (std::basic_string< _E, _Tr, _A > &str, const std::basic_string< _E, _Tr, _A > &strOld, const std::basic_string< _E, _Tr, _A > &strNew)
template<class _E, class _Tr, class _A>
std::basic_string< _E, _Tr, _A > & mbo::StrReplace (std::basic_string< _E, _Tr, _A > &str, const _E *strOld, const _E *strNew)
template<class _E, class _Tr, class _A>
std::basic_string< _E, _Tr, _A > mbo::StrEncodeXML (const std::basic_string< _E, _Tr, _A > &_str)
std::string & mbo::StrParseEnvVars (std::string &str, char cOpen, char cClose)


Detailed Description

String helper (template) functions.

Author:
Marcus Boerger (http://marcus-boerger.de/)
Note:
This file is distributed under the LGPL license GNU Lesser General Public License, version 2.1.

Definition in file MboStrHelper.h.


Define Documentation

#define snprintf   _snprintf

Definition at line 54 of file MboStrHelper.h.

Referenced by mbo::StrFrom(), and mbo::StrFromDouble().


  Hosted on code.google.com  
© Marcus Börger
Generated on Fri Jan 18 21:21:08 2008 for MBO-lib by doxygen 1.5.4