Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __UT_STD_STRING_H__
00024 #define __UT_STD_STRING_H__
00025
00026 #include <string>
00027
00028 #include "ut_types.h"
00029
00030
00034 ABI_EXPORT std::string UT_escapeXML(const std::string &);
00035
00036 ABI_EXPORT std::string& UT_std_string_vprintf (std::string & inStr,
00037 const char *format,
00038 va_list args1)
00039 ABI_PRINTF_FORMAT(2,0);
00040
00041 ABI_EXPORT std::string UT_std_string_sprintf(const char * inFormat, ...)
00042 ABI_PRINTF_FORMAT(1,2);
00043
00047 ABI_EXPORT bool starts_with( const std::string& fullstring, const std::string& prefix );
00048 ABI_EXPORT bool ends_with( const std::string& fullstring, const std::string& ending );
00049 ABI_EXPORT std::string replace_all( const std::string& s, char oldc, char newc );
00050 ABI_EXPORT std::string replace_all( const std::string& s,
00051 const std::string& olds,
00052 const std::string& news );
00053
00054 ABI_EXPORT std::string UT_XML_cloneNoAmpersands( const std::string& szSource );
00055
00056
00057
00061 ABI_EXPORT std::string UT_std_string_getPropVal(const std::string & sPropertyString, const std::string & sProp);
00062 ABI_EXPORT void UT_std_string_removeProperty(std::string & sPropertyString, const std::string & sProp);
00063 ABI_EXPORT void UT_std_string_setProperty(std::string & sPropertyString, const std::string &sProp, const std::string & sVal);
00064
00065
00066 ABI_EXPORT const std::string StreamToString( std::istream& iss );
00067 ABI_EXPORT std::string toTimeString( time_t TT );
00068 ABI_EXPORT time_t toTime( struct tm *tm );
00069 ABI_EXPORT time_t parseTimeString( const std::string& stddatestr );
00070
00071
00072
00073
00074 #endif
00075