From e8a2bdf2d16d6a170c62aa3f03bced319ef8a29d Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 1 Dec 2013 06:59:14 -0800 Subject: [PATCH] Add comments. --- format.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/format.h b/format.h index 4f6ec947..3220c095 100644 --- a/format.h +++ b/format.h @@ -953,6 +953,8 @@ class BasicFormatter { void CheckSign(const Char *&s, const Arg &arg); + // Parses the format string and performs the actual formatting, + // writing the output to writer_. void DoFormat(); struct Proxy { @@ -976,10 +978,12 @@ class BasicFormatter { public: // Constructs a formatter with a writer to be used for output and a format - // format string. + // string. BasicFormatter(BasicWriter &w, const Char *format = 0) : writer_(&w), format_(format) {} + // Perfoms formatting if the format string is non-null. The format string + // can be null if its ownership has been transferred to another formatter. ~BasicFormatter() { CompleteFormatting(); }