|
Formatting references in the ADS Abstract Service (1211 words) |
 | The reference formatting capability allows the user to specify a format in which the reference is returned. |
 | The format is a string similar to a format in a printf statement. |
 | The '\' character is used to specify special characters, as in a printf format (\n is a newline, \t is a tab, \\ is a backslash). |
| The Boost Format library (2738 words) |
 | When you call format(s), where s is the format-string, it constructs an object, which parses the format string and look for all directives in it and prepares internal structures for the next step. |
 | All in all, the format class translates a format-string (with eventually printf-like directives) into operations on an internal stream, and finally returns the result of the formatting, as a string, or directly into an output stream. |
 | When format detects that one of these rules is not satisfied, it raises a corresponding exception, so that the mistakes don't go unnoticed and unhandled. |