Namespaces | Functions

src/Common/String/StringUtils.h File Reference

#include "StringUtilsImpl.h"

Go to the source code of this file.

Namespaces

namespace  AppSecInc
namespace  AppSecInc::StringUtils
 

Common string utilities.


Functions

int AppSecInc::StringUtils::replace (std::string &ss, const std::string &from, const std::string &to)
int AppSecInc::StringUtils::replace (std::wstring &ss, const std::wstring &from, const std::wstring &to)
void AppSecInc::StringUtils::tokenize (const std::string &ss, std::vector< std::string > &tokens, const std::string &delims)
void AppSecInc::StringUtils::tokenize (const std::wstring &ss, std::vector< std::wstring > &tokens, const std::wstring &delims)
std::string AppSecInc::StringUtils::join (const std::vector< std::string > &tokens, const std::string &delims)
std::wstring AppSecInc::StringUtils::join (const std::vector< std::wstring > &tokens, const std::wstring &delims)
std::string AppSecInc::StringUtils::join (const std::list< std::string > &tokens, const std::string &delims)
std::wstring AppSecInc::StringUtils::join (const std::list< std::wstring > &tokens, const std::wstring &delims)
void AppSecInc::StringUtils::tokenizeWithSkip (const std::string &ss, std::vector< std::string > &tokens, const std::string &delim=" ")
void AppSecInc::StringUtils::tokenizeWithSkip (const std::wstring &ss, std::vector< std::wstring > &tokens, const std::wstring &delim=L" ")
void AppSecInc::StringUtils::tokenizeOnChar (const std::string &ss, std::vector< std::string > &tokens, const std::string &delims)
void AppSecInc::StringUtils::tokenizeOnChar (const std::wstring &ss, std::vector< std::wstring > &tokens, const std::wstring &delims)
void AppSecInc::StringUtils::ltrim (std::string &ss, const std::string &whitespaces=" \t")
void AppSecInc::StringUtils::ltrim (std::wstring &ss, const std::wstring &whitespaces=L" \t")
void AppSecInc::StringUtils::rtrim (std::string &ss, const std::string &whitespaces=" \t")
void AppSecInc::StringUtils::rtrim (std::wstring &ss, const std::wstring &whitespaces=L" \t")
void AppSecInc::StringUtils::lrtrim (std::string &ss, const std::string &whitespaces=" \t")
void AppSecInc::StringUtils::lrtrim (std::wstring &ss, const std::wstring &whitespaces=L" \t")
void AppSecInc::StringUtils::lrtrimcrlf (std::string &ss, const std::string &whitespaces=" \r\n\t")
void AppSecInc::StringUtils::lrtrimcrlf (std::wstring &ss, const std::wstring &whitespaces=L" \r\n\t")
void AppSecInc::StringUtils::uppercase (std::string &ss)
void AppSecInc::StringUtils::uppercase (std::wstring &ss)
void AppSecInc::StringUtils::lowercase (std::string &ss)
void AppSecInc::StringUtils::lowercase (std::wstring &ss)
bool AppSecInc::StringUtils::comparei (const std::string &ss1, const std::string &ss2)
bool AppSecInc::StringUtils::comparei (const std::wstring &ss1, const std::wstring &ss2)
long AppSecInc::StringUtils::stringToLong (const std::string &ss, long default_on_error=0, int base=10)
long AppSecInc::StringUtils::stringToLong (const std::wstring &ss, long default_on_error=0, int base=10)
long AppSecInc::StringUtils::stringToLong (const char *psz, long default_on_error=0, int base=10)
long AppSecInc::StringUtils::stringToLong (const wchar_t *psz, long default_on_error=0, int base=10)
std::wstring AppSecInc::StringUtils::mb2wc (const std::string &from)
std::wstring AppSecInc::StringUtils::mb2wc (const char *from)
std::wstring AppSecInc::StringUtils::mb2wc (const char *from, unsigned int len)
std::wstring AppSecInc::StringUtils::utf82wc (const std::string &from)
std::wstring AppSecInc::StringUtils::utf82wc (const char *from)
std::wstring AppSecInc::StringUtils::utf82wc (const char *from, unsigned int len)
std::string AppSecInc::StringUtils::wc2mb (const std::wstring &from)
std::string AppSecInc::StringUtils::wc2mb (const wchar_t *from)
std::string AppSecInc::StringUtils::wc2mb (const wchar_t *from, unsigned int len)
std::string AppSecInc::StringUtils::wc2utf8 (const std::wstring &from)
std::string AppSecInc::StringUtils::wc2utf8 (const wchar_t *from)
std::string AppSecInc::StringUtils::wc2utf8 (const wchar_t *from, unsigned int len)
std::string AppSecInc::StringUtils::bstr2mb (BSTR from)
std::string AppSecInc::StringUtils::bstr2mb (BSTR from, int len)
std::string AppSecInc::StringUtils::bstr2mb (const _bstr_t &from)
std::string AppSecInc::StringUtils::bstr2mb (const CComBSTR &from)
std::string AppSecInc::StringUtils::toString (VARIANT from)
std::string AppSecInc::StringUtils::toString (const _variant_t &from)
std::string AppSecInc::StringUtils::toString (const CComVariant &from)
std::wstring AppSecInc::StringUtils::toWString (VARIANT from)
std::wstring AppSecInc::StringUtils::toWString (const _variant_t &from)
std::wstring AppSecInc::StringUtils::toWString (const CComVariant &from)
void AppSecInc::StringUtils::s2ebcdic (std::string &ss)
void AppSecInc::StringUtils::s2ebcdic (unsigned char *s, unsigned long len)
void AppSecInc::StringUtils::ebcdic2s (std::string &ss)
void AppSecInc::StringUtils::ebcdic2s (unsigned char *s, unsigned long len)
bool AppSecInc::StringUtils::startsWith (const std::string &ss, const std::string &what)
bool AppSecInc::StringUtils::startsWith (const std::wstring &ss, const std::wstring &what)
bool AppSecInc::StringUtils::endsWith (const std::string &ss, const std::string &what)
bool AppSecInc::StringUtils::endsWith (const std::wstring &ss, const std::wstring &what)
template<class T >
std::wstring AppSecInc::StringUtils::toWString (const T &t)
 Convert any streamable data into a UNICODE string.
template<class T >
std::string AppSecInc::StringUtils::toString (const T &t)
 Convert any streamable data into an ANSI string.


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com