Parse alignment.

This commit is contained in:
Victor Zverovich
2012-12-21 09:12:04 -08:00
parent a0d685c710
commit 64236894ce
3 changed files with 74 additions and 28 deletions
+3 -1
View File
@@ -128,6 +128,8 @@ struct FormatSpec {
unsigned width;
char type;
char fill;
FormatSpec() : flags(0), width(0), type(0), fill(' ') {}
};
// Formatter provides string formatting functionality similar to Python's
@@ -266,7 +268,7 @@ class Formatter {
// Formats an integer.
template <typename T>
void FormatInt(T value, const FormatSpec &spec);
void FormatInt(T value, FormatSpec spec);
// Formats a floating point number (double or long double).
template <typename T>