75#if defined (_MSC_VER) || defined(__MINGW32__)
79#if defined(__MINGW32__) || defined (__GNUC__) || defined(__BORLANDC__)
249 template <
typename T> std::string
toHexstr(
const T & rValue, std::size_t hex_len =
sizeof(T) << 1 )
251 static const char * t_chDigits =
"0123456789ABCDEF";
252 std::string t_sRetVal( hex_len,
'0' );
254 for (
size_t i = 0, j = ( hex_len-1 )*4 ; i<hex_len; ++i,j-=4 )
256 t_sRetVal[i] = t_chDigits[(rValue>>j) & 0x0f];
425 std::vector<std::string> & rTokensVector,
426 const std::string & rstrDelimiters,
427 bool bWithoutEmptyStrings =
false );
453 std::vector<std::string> & rTokensVector,
454 const char & rcDelimiters,
455 bool bWithoutEmptyStrings =
false );
479 std::vector<std::wstring> & rTokensVector,
480 wchar_t wcDelimiters,
481 bool bWithoutEmptyStrings =
false );
506 const std::string & rsIns );
509 const std::wstring & rsIns );
536 const std::string & rsFnd,
537 const std::string & rsRep );
539 const std::wstring & rsFnd,
540 const std::wstring & rsRep );
566 const char pzOriginal,
595 std::vector<std::size_t> & rPosVector,
596 const char pzOriginal,
707 const std::string & rsString );
709 const std::wstring & rsString );
736 #if defined(_MSC_VER) || defined(__MINGW32__)
757 #elif defined(__GNUC__) || defined(__BORLANDC__)
776 #if defined(_MSC_VER) || defined(__MINGW32__)
791 #if defined(__GNUC__) || defined(__BORLANDC__)
910 const std::string & rsFormat =
"%Y.%m.%d - %X" );
953 unsigned int uiMonth,
Header für ErrorNException
Hilfsfunktionen für die Verarbeitung von Strings.
Definition EuStdFunctions.h:100
__tool_export_dll std::size_t replaceAll(std::string &rsText, const std::string &rsFnd, const std::string &rsRep)
Tauscht in einem String alle gesuchten Teilstrings mit einem anderen übergebenen String aus.
__tool_export_dll std::wstring string2wstring(const std::string &rsSourceString)
__tool_export_dll void fillString(std::string &rstr, char cFillItem, std::size_t nNumber, EnStrPos ePos)
__tool_export_dll char * getFilledString(const char *pch, char cFillItem, std::size_t nNumber, EnStrPos ePos)
__tool_export_dll void colorConsoleCout(const std::string &rsCoutText, EnCoutColor eForeGroundColor, EnCoutColor eBackGroundColor)
Gibt auf der Konsole einen String farbig aus.
__tool_export_dll bool isAnInteger(const std::string &rstr)
__tool_export_dll void tokenizeString(const std::string &rstrSource, std::vector< std::string > &rTokensVector, const std::string &rstrDelimiters, bool bWithoutEmptyStrings=false)
__tool_export_dll bool compareWildcardString(const std::string &rsSearchString, const std::string &rsString)
Vergleicht zwei std::string's.
__tool_export_dll bool insertIfNotAvailable(std::string &rsText, std::size_t nPos, const std::string &rsIns)
Fügt eine Zeichenkette an übergebener Position ein, wenn noch nicht vorhanden.
EnStrPos
Definition EuStdFunctions.h:161
@ eBEFORE
Definition EuStdFunctions.h:171
@ eBOTH
Definition EuStdFunctions.h:191
@ eBEHIND
Definition EuStdFunctions.h:181
__tool_export_dll void trimString(std::string &rstr, char c=' ', EnStrPos ePos=eBEFORE)
Trim für std::string inspiriert durch:
__tool_export_dll std::string toUpper(const std::string &rstr)
Wandelt alle Kleinbuchstaben der übergebenen Zeichenkette in Großbuchstaben.
__tool_export_dll WORD setColorConsoleCout(EnCoutColor eForeGroundColor, EnCoutColor eBackGroundColor)
__tool_export_dll std::string toLower(const std::string &rstr)
Wandelt alle Großbuchstaben der übergebenen Zeichenkette in Kleinbuchstaben.
__tool_export_dll void resetColorConsoleCout(WORD wScreenBufferInfo)
std::string toHexstr(const T &rValue, std::size_t hex_len=sizeof(T)<< 1)
Definition EuStdFunctions.h:249
__tool_export_dll std::string wstring2string(const std::wstring &rwsSourceString)
EnCoutColor
Definition EuStdFunctions.h:112
@ eCOLOR_BLUE
Definition EuStdFunctions.h:115
@ eCOLOR_BLACK
Definition EuStdFunctions.h:114
@ eCOLOR_GRAY
Definition EuStdFunctions.h:122
@ eCOLOR_RED
Definition EuStdFunctions.h:118
@ eCOLOR_GREEN
Definition EuStdFunctions.h:116
@ eCOLOR_DEFAULT
Definition EuStdFunctions.h:113
@ eCOLOR_LIGHTBLUE
Definition EuStdFunctions.h:117
@ eCOLOR_WHITE
Definition EuStdFunctions.h:123
@ eCOLOR_MAGENTA
Definition EuStdFunctions.h:119
@ eCOLOR_YELLOW
Definition EuStdFunctions.h:120
@ eCOLOR_LIGHTGRAY
Definition EuStdFunctions.h:121
Hilfsfunktionen für die Verarbeitung von Zeit.
Definition EuStdFunctions.h:819
__tool_export_dll std::string getMonth(unsigned int uiMonth)
__tool_export_dll std::string getMilitarySystemTime()
__tool_export_dll std::string getMilitaryTime(const std::time_t &rTime)
__tool_export_dll std::time_t getTime(unsigned int uiYear, unsigned int uiMonth, unsigned int uiDay, unsigned int uiHour, unsigned int uiMin, unsigned int uiSec)
__tool_export_dll std::string getTimeString(const std::time_t &rTime, const std::string &rsFormat="%Y.%m.%d - %X")
__tool_export_dll std::string getSystemTimeString(const std::string &rsFormat="%Y.%m.%d - %X")