Implement automatic argument indexing.

This commit is contained in:
Victor Zverovich
2012-12-27 06:56:55 -08:00
parent 73f13eeb5b
commit 8412ad6aeb
4 changed files with 44 additions and 16 deletions
+2 -1
View File
@@ -301,6 +301,7 @@ class Formatter : public BasicFormatter {
const char *format_; // Format string.
int num_open_braces_;
int next_arg_index_;
friend class internal::ArgInserter;
friend class ArgFormatter;
@@ -330,7 +331,7 @@ class Formatter : public BasicFormatter {
unsigned ParseUInt(const char *&s) const;
// Parses argument index and returns an argument with this index.
const Arg &ParseArgIndex(const char *&s) const;
const Arg &ParseArgIndex(const char *&s);
void CheckSign(const char *&s, const Arg &arg);