Support formatting of strings. More...
Go to the source code of this file.
Namespaces | |
namespace | mockpp |
Namespace for project "Mock Objects for C++". | |
Defines | |
#define | MOCKPP_OSTREAMABLE(T) |
Outputter which reuses an existing operator<<(std::basic_ostream<char>&, T). | |
#define | MOCKPP_OWSTREAMABLE(T) |
Outputter which implements a local (no exports of any kind) forwarder to an existing MOCKPP_NS::owstream(T) . | |
Functions | |
mockpp::String | mockpp::number (long n, unsigned base=10) |
Converts a long value into its string representation. | |
mockpp::String | mockpp::number (long long n, unsigned base=10) |
Converts a longlong value into its string representation. | |
mockpp::String | mockpp::number (unsigned long n, unsigned base=10) |
Converts an unsigned long value into its string representation. | |
mockpp::String | mockpp::number (unsigned long long n, unsigned base=10) |
Converts an unsigned long value into its string representation. | |
mockpp::String | mockpp::number (double n, unsigned prec=0) |
Converts an double value into its string representation. | |
mockpp::String | mockpp::number (long double n, unsigned prec=0) |
Converts an long double value into its string representation. | |
String & | mockpp::replaceFormatterString (String &formatter, const String &repdata) |
Replace a positional -parameter with a value. | |
mockpp::String & | operator<< (mockpp::String &formatter, const int &repdata) |
Replace a positional -parameter with a value. | |
mockpp::String & | operator<< (mockpp::String &formatter, const bool &repdata) |
Replace a positional -parameter with a value. | |
mockpp::String & | operator<< (mockpp::String &formatter, const unsigned int &repdata) |
Replace a positional -parameter with a value. | |
mockpp::String & | operator<< (mockpp::String &formatter, const unsigned long &repdata) |
Replace a positional -parameter with a value. | |
mockpp::String & | operator<< (mockpp::String &formatter, const signed char &repdata) |
Replace a positional -parameter with a value. | |
mockpp::String & | operator<< (mockpp::String &formatter, const unsigned char &repdata) |
Replace a positional -parameter with a value. | |
mockpp::String & | operator<< (mockpp::String &formatter, const char &repdata) |
Replace a positional -parameter with a value. | |
mockpp::String & | operator<< (mockpp::String &formatter, const char *repdata) |
Replace a positional -parameter with a value. | |
mockpp::String & | operator<< (mockpp::String &formatter, const float &repdata) |
Replace a positional -parameter with a value. | |
mockpp::String & | operator<< (mockpp::String &formatter, const wchar_t &repdata) |
Replace a positional -parameter with a value. | |
mockpp::String & | operator<< (mockpp::String &formatter, const wchar_t *repdata) |
Replace a positional -parameter with a value. | |
mockpp::String & | operator<< (mockpp::String &formatter, const long &repdata) |
Replace a positional -parameter with a value. | |
mockpp::String & | operator<< (mockpp::String &formatter, const mockpp::String &repdata) |
Replace a positional -parameter with a value. | |
mockpp::String & | operator<< (mockpp::String &formatter, const std::string &repdata) |
Replace a positional -parameter with a value. | |
mockpp::String & | operator<< (mockpp::String &formatter, const double &repdata) |
Replace a positional -parameter with a value. | |
mockpp::String & | operator<< (mockpp::String &formatter, const long double &repdata) |
Replace a positional -parameter with a value. | |
template<class T > | |
mockpp::String | mockpp::ostreamed (const T &t) |
Outputter which reuses an existing operator<<(std::basic_ostream<wchar_t>&, T). | |
template<class T > | |
mockpp::String | mockpp::owstreamed (const T &t) |
Outputter which reuses an existing operator<<(std::basic_ostream<wchar_t>&, T). |
Support formatting of strings.
Definition in file Formatter.h.
#define MOCKPP_OSTREAMABLE | ( | T | ) |
MOCKPP_NS::String & \ operator << (MOCKPP_NS::String &formatter, const T &o) \ { \ formatter << MOCKPP_NS::ostreamed(o); \ return formatter; \ }
Outputter which reuses an existing operator<<(std::basic_ostream<char>&, T).
T | data type for output |
Definition at line 422 of file Formatter.h.
#define MOCKPP_OWSTREAMABLE | ( | T | ) |
MOCKPP_NS::String & \ operator << (MOCKPP_NS::String &formatter, const T &o) \ { \ formatter << MOCKPP_NS::owstreamed(o); \ return formatter; \ }
Outputter which implements a local (no exports of any kind) forwarder to an existing MOCKPP_NS::owstream(T)
.
T | data type for output |
Definition at line 457 of file Formatter.h.