support formatting of strings More...
Go to the source code of this file.
Namespaces | |
namespace | mockpp |
Namespace for project "Mock Objects for C++". | |
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. | |
static bool | mockpp::findArg (mockpp::String &fmt, int &pos, int &len) |
Helper function. | |
String & | mockpp::replaceFormatterString (String &formatter, const String &repdata) |
Replace a positional -parameter with a value. | |
static String | mockpp::charToReadable (unsigned x) |
Transform a character into a human readable string. | |
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 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 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 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. | |
mockpp::String & | operator<< (mockpp::String &formatter, const std::string &str) |
Replace a positional -parameter with a value. | |
mockpp::String & | operator<< (mockpp::String &formatter, const mockpp::String &repdata) |
Replace a positional -parameter with a value. |
support formatting of strings
Definition in file Formatter.cpp.