Implement numeric alignment. Make integer formatting faster.

This commit is contained in:
Victor Zverovich
2012-12-24 08:34:44 -08:00
parent 1b9c22c161
commit ccbe94189c
3 changed files with 96 additions and 25 deletions
+2 -2
View File
@@ -271,11 +271,11 @@ class Formatter {
void ReportError(const char *s, const std::string &message) const;
char *PrepareFilledBuffer(unsigned size, FormatSpec spec, char sign);
char *PrepareFilledBuffer(unsigned size, const FormatSpec &spec, char sign);
// Formats an integer.
template <typename T>
void FormatInt(T value, FormatSpec spec);
void FormatInt(T value, const FormatSpec &spec);
// Formats a floating point number (double or long double).
template <typename T>