|
bool | has (char c) const |
| Whether c occurred in the primed formats. More...
|
|
void | declare (char c, const printable *f) |
| Declare a callback function for c. More...
|
|
void | set_output (std::ostream &output) |
| Remember where to output any string. More...
|
|
std::ostream & | format (const char *fmt) |
| Expand the %-sequences in fmt, write the result on output_. More...
|
|
std::ostream & | format (std::ostream &output, const char *fmt) |
| Expand the %-sequences in fmt, write the result on output. More...
|
|
std::ostream & | format (const std::string &fmt) |
| Expand the %-sequences in fmt, write the result on output_. More...
|
|
std::ostream & | format (std::ostream &output, const std::string &fmt) |
| Expand the %-sequences in fmt, write the result on output. More...
|
|
|
void | scan (const char *fmt, std::vector< bool > &has) const |
| Scan the %-sequences occurring in fmt. More...
|
|
void | scan (const std::string &fmt, std::vector< bool > &has) const |
| Scan the %-sequences occurring in fmt. More...
|
|
|
void | prime (const char *fmt) |
|
void | prime (const std::string &fmt) |
|
◆ declare()
void spot::formater::declare |
( |
char |
c, |
|
|
const printable * |
f |
|
) |
| |
|
inline |
Declare a callback function for c.
◆ format() [1/4]
std::ostream & spot::formater::format |
( |
const char * |
fmt | ) |
|
Expand the %-sequences in fmt, write the result on output_.
◆ format() [2/4]
std::ostream & spot::formater::format |
( |
const std::string & |
fmt | ) |
|
|
inline |
Expand the %-sequences in fmt, write the result on output_.
◆ format() [3/4]
std::ostream & spot::formater::format |
( |
std::ostream & |
output, |
|
|
const char * |
fmt |
|
) |
| |
|
inline |
Expand the %-sequences in fmt, write the result on output.
◆ format() [4/4]
std::ostream & spot::formater::format |
( |
std::ostream & |
output, |
|
|
const std::string & |
fmt |
|
) |
| |
|
inline |
Expand the %-sequences in fmt, write the result on output.
◆ has()
bool spot::formater::has |
( |
char |
c | ) |
const |
|
inline |
Whether c occurred in the primed formats.
◆ prime() [1/2]
void spot::formater::prime |
( |
const char * |
fmt | ) |
|
Collect the %-sequences occurring in fmt.
◆ prime() [2/2]
void spot::formater::prime |
( |
const std::string & |
fmt | ) |
|
|
inline |
Collect the %-sequences occurring in fmt.
◆ scan() [1/2]
void spot::formater::scan |
( |
const char * |
fmt, |
|
|
std::vector< bool > & |
has |
|
) |
| const |
Scan the %-sequences occurring in fmt.
Set has['c'] for each c in fmt. has must be 256 wide.
◆ scan() [2/2]
void spot::formater::scan |
( |
const std::string & |
fmt, |
|
|
std::vector< bool > & |
has |
|
) |
| const |
|
inline |
Scan the %-sequences occurring in fmt.
Set has['c'] for each c in fmt. has must be 256 wide.
◆ set_output()
void spot::formater::set_output |
( |
std::ostream & |
output | ) |
|
|
inline |
Remember where to output any string.
The documentation for this class was generated from the following file: