mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 09:28:21 +00:00
Add comments.
This commit is contained in:
parent
56f12b737c
commit
e8a2bdf2d1
6
format.h
6
format.h
@ -953,6 +953,8 @@ class BasicFormatter {
|
|||||||
|
|
||||||
void CheckSign(const Char *&s, const Arg &arg);
|
void CheckSign(const Char *&s, const Arg &arg);
|
||||||
|
|
||||||
|
// Parses the format string and performs the actual formatting,
|
||||||
|
// writing the output to writer_.
|
||||||
void DoFormat();
|
void DoFormat();
|
||||||
|
|
||||||
struct Proxy {
|
struct Proxy {
|
||||||
@ -976,10 +978,12 @@ class BasicFormatter {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
// Constructs a formatter with a writer to be used for output and a format
|
// Constructs a formatter with a writer to be used for output and a format
|
||||||
// format string.
|
// string.
|
||||||
BasicFormatter(BasicWriter<Char> &w, const Char *format = 0)
|
BasicFormatter(BasicWriter<Char> &w, const Char *format = 0)
|
||||||
: writer_(&w), format_(format) {}
|
: 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() {
|
~BasicFormatter() {
|
||||||
CompleteFormatting();
|
CompleteFormatting();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user