Namespaces | Functions

src/Common/String/Formatter.h File Reference

Go to the source code of this file.

Namespaces

namespace  AppSecInc
namespace  AppSecInc::Formatter
 

Common message formatting.


Functions

std::string AppSecInc::Formatter::FormatMessageFromHRA (HRESULT hr)
 format an ANSI message from an HRESULT
std::string AppSecInc::Formatter::FormatMessageFromLastErrorCodeA (DWORD)
 format an ANSI message from a Win32 error code
std::wstring AppSecInc::Formatter::FormatMessageFromHRW (HRESULT hr)
 format a UNICODE message from an HRESULT
std::wstring AppSecInc::Formatter::FormatMessageFromLastErrorCodeW (DWORD)
 format a UNICODE message from a Win32 error code
std::string AppSecInc::Formatter::FormatMessageFromVArgs (char *, va_list &)
 format a message with a list of arguments (printf-style)
std::wstring AppSecInc::Formatter::FormatMessageFromVArgs (wchar_t *, va_list &)
 format a message with a list of arguments (printf-style)
std::string AppSecInc::Formatter::FormatMessage (char *,...)
 format a message with a list of arguments (printf-style)
std::wstring AppSecInc::Formatter::FormatMessage (wchar_t *,...)
 format a message with a list of arguments (printf-style)
std::string AppSecInc::Formatter::FormatHexA (byte *buffer, unsigned long len)
 format an ANSI buffer of bytes into a hex view
std::wstring AppSecInc::Formatter::FormatHexW (byte *buffer, unsigned long len)
 format a UNICODE buffer of bytes into a hex view
std::string AppSecInc::Formatter::FormatHexStringA (byte *buffer, unsigned long len)
 format an ANSI buffer of bytes into a hex string
std::wstring AppSecInc::Formatter::FormatHexStringW (byte *buffer, unsigned long len)
 format a UNICODE buffer of bytes into a hex string
std::wstring AppSecInc::Formatter::FormatTemplate (const std::wstring &buffer, const std::map< std::wstring, std::wstring > &tokens, const std::wstring &left=L"[", const std::wstring &right=L"]")
 format a UNICODE template
std::string AppSecInc::Formatter::FormatTemplate (const std::string &buffer, const std::map< std::string, std::string > &tokens, const std::string &left="[", const std::string &right="]")
 format an ANSI template


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