WinStd Additional templates and function helpers for Microsoft Windows using Standard C++ classes

Classes | Macros | Typedefs
String Formatting

Formatted string generation. More...

## Classes
class | winstd::basic_string_printf< _Elem, _Traits, _Ax >
| Base template class to support string formatting using `printf()` style templates. More...
class | winstd::basic_string_msg< _Elem, _Traits, _Ax >
| Base template class to support string formatting using `FormatMessage()` style templates. More...
class | winstd::basic_string_guid< _Elem, _Traits, _Ax >
| Base template class to support converting GUID to string. More...
class | winstd::string_guid
| Single-byte character implementation of a class to support converting GUID to string. More...
class | winstd::wstring_guid
| Wide character implementation of a class to support converting GUID to string. More...

## Macros
#define | PRINTF_LPTSTR "s"
| LPTSTR printf/scanf format specifier.
#define | PRINTF_LPOLESTR "ls"
| LPOLESTR printf/scanf format specifier.
#define | _tcin (std::cin )
#define | _tcout (std::cout)
#define | _tcerr (std::cerr)
#define | _tclog (std::clog)

## Typedefs
typedef basic_string_printf< char, std::char_traits< char >, std::allocator< char > > | winstd::string_printf
| Single-byte character implementation of a class to support string formatting using `printf()` style templates.
typedef basic_string_printf< wchar_t, std::char_traits< wchar_t >, std::allocator< wchar_t > > | winstd::wstring_printf
| Wide character implementation of a class to support string formatting using `printf()` style templates.
typedef string_printf | winstd::tstring_printf
| Multi-byte / Wide-character formatted string (according to _UNICODE)
typedef basic_string_msg< char, std::char_traits< char >, std::allocator< char > > | winstd::string_msg
| Single-byte character implementation of a class to support string formatting using `FormatMessage()` style templates.
typedef basic_string_msg< wchar_t, std::char_traits< wchar_t >, std::allocator< wchar_t > > | winstd::wstring_msg
| Wide character implementation of a class to support string formatting using `FormatMessage()` style templates.
typedef string_msg | winstd::tstring_msg
| Multi-byte / Wide-character formatted string (according to _UNICODE)
typedef string_guid | winstd::tstring_guid
| Multi-byte / Wide-character string GUID (according to _UNICODE)

## Detailed Description

Formatted string generation.

Example
  // Please note the PCSTR typecasting invokes an operator to return
  // pointer to formatted buffer rather than class reference itself.
  cout << (PCSTR)(winstd::string_printf("%i is less than %i.\n", 1, 5));
  winstd::basic_string_printf
  Base template class to support string formatting using printf() style templates.
  Definition: Common.h:1093