Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
A simple String formatting class. More...
#include <Say.hpp>
Public Member Functions | |
Say (const String &fstr) | |
Say & | operator<< (const SayArg &p) |
template<typename T > | |
Say & | operator<< (T p) |
operator String () | |
String | str () const |
Public Attributes | |
String | format_string |
Protected Member Functions | |
String | parse (const Say &pset) const |
String | euronotation (const String &str, int base) const |
String | format (unsigned long long n, int base, int field, int decimals, int align, int fill, int plus, int finalizer, int eur) const |
String | format (signed long long nn, int base, int field, int decimals, int align, int fill, int plus, int finalizer, int eur) const |
String | format (double num, int base, int field, int decimals, int align, int fill, int plus, int finalizer, int eur) const |
String | pipeline (const String &str, int base, int field, int decimals, int finalizer, int align, int eur, int fill, int negative, int plus) const |
A simple String formatting class.
Things we can do:
Definition at line 124 of file Say.hpp.
Say& vl::Say::operator<< | ( | T | p ) | [inline] |
String vl::Say::str | ( | ) | const [inline] |
Definition at line 152 of file Say.hpp.
Referenced by format(), and pipeline().
Definition at line 171 of file Say.cpp.
References vl::SayArg::float64, vl::SayArg::FLOAT64, format(), format_string, vl::String::length(), vl::SayArg::slonglong, vl::SayArg::SLONGLONG, vl::SayArg::str, vl::SayArg::STRING, vl::SayArg::type, vl::SayArg::ulonglong, and vl::SayArg::ULONGLONG.
Definition at line 494 of file Say.cpp.
References vl::String::contains(), vl::String::insert(), and vl::String::length().
Referenced by pipeline().
String Say::format | ( | unsigned long long | n, |
int | base, | ||
int | field, | ||
int | decimals, | ||
int | align, | ||
int | fill, | ||
int | plus, | ||
int | finalizer, | ||
int | eur | ||
) | const [protected] |
Definition at line 532 of file Say.cpp.
References vl::String::insert(), pipeline(), and str().
Referenced by vlSDL::SDLWindow::initSDLWindow(), parse(), and pipeline().
String Say::format | ( | signed long long | nn, |
int | base, | ||
int | field, | ||
int | decimals, | ||
int | align, | ||
int | fill, | ||
int | plus, | ||
int | finalizer, | ||
int | eur | ||
) | const [protected] |
Definition at line 583 of file Say.cpp.
References vl::String::insert(), pipeline(), and str().
String Say::format | ( | double | num, |
int | base, | ||
int | field, | ||
int | decimals, | ||
int | align, | ||
int | fill, | ||
int | plus, | ||
int | finalizer, | ||
int | eur | ||
) | const [protected] |
Definition at line 646 of file Say.cpp.
References vl::exp(), vl::floor(), pipeline(), vl::sign(), and str().
String Say::pipeline | ( | const String & | str, |
int | base, | ||
int | field, | ||
int | decimals, | ||
int | finalizer, | ||
int | align, | ||
int | eur, | ||
int | fill, | ||
int | negative, | ||
int | plus | ||
) | const [protected] |
Definition at line 847 of file Say.cpp.
References vl::String::append(), vl::String::contains(), vl::dot(), euronotation(), vl::String::find(), format(), vl::String::insert(), vl::String::length(), vl::String::remove(), vl::String::resize(), and str().
Referenced by format().