--- a/sources/format.h Tue Dec 16 03:27:54 2014 +0200 +++ b/sources/format.h Tue Dec 16 03:30:15 2014 +0200 @@ -36,10 +36,8 @@ #define FORMAT_OVERLOAD(...) \ inline FUNCTION make_format_argument (__VA_ARGS__ a) -> String -// // ------------------------------------------------------------------------------------------------- // - FORMAT_OVERLOAD (String) { return a; } FORMAT_OVERLOAD (char) { return String (a); } FORMAT_OVERLOAD (int) { return String::from_number (a); } @@ -107,11 +105,13 @@ } // ------------------------------------------------------------------------------------------------- +// // Formats the given string with the given args. // FUNCTION format_args (const String& fmtstr, const Vector<String>& args) -> String; // ------------------------------------------------------------------------------------------------- +// // Expands the given arguments into a vector of strings. // template<typename T, typename... RestTypes> FUNCTION @@ -158,6 +158,7 @@ } // ------------------------------------------------------------------------------------------------- +// // This is an overload of format() where no arguments are supplied. // It returns the formatter string as-is. // @@ -169,6 +170,7 @@ } // ------------------------------------------------------------------------------------------------- +// // Prints the formatting result to the given file handle // template<typename... Args> FUNCTION @@ -178,6 +180,7 @@ } // ------------------------------------------------------------------------------------------------- +// // Appends the formatting result to the given filename, if opening it succeeds // template<typename... argtypes> @@ -193,6 +196,7 @@ } // ------------------------------------------------------------------------------------------------- +// // Prints the formatting result to the console // template<typename... argtypes>