|
ModErn Text Analysis
META Enumerates Textual Applications
|
Contains functions that print to the terminal and provide progress bars. More...
Classes | |
| class | progress |
| Simple class for reporting progress of lengthy operations. More... | |
Functions | |
| std::string | add_commas (const std::string &number) |
| std::string | make_green (std::string str) |
| std::string | make_red (std::string str) |
| std::string | make_bold (std::string str) |
| std::string | bytes_to_units (double num_bytes) |
| Converts a number of bytes into a human-readable number. More... | |
| void | show_progress (size_t idx, size_t max, size_t freq, const std::string &prefix="") |
| void | end_progress (const std::string &prefix) |
| Ends output from a call to show_progess by displaying 100% completion. More... | |
Contains functions that print to the terminal and provide progress bars.
|
inline |
| number | The string-encoded number |
|
inline |
| str | The string to turn green |
|
inline |
| str | The string to turn red |
|
inline |
| str | The string to turn bold |
|
inline |
Converts a number of bytes into a human-readable number.
| num_bytes | The number in bytes to convert |
|
inline |
| idx | The current progress in the operation |
| max | The maximum value of idx, when it is done |
| freq | How often to write output to the terminal |
| prefix | The text to show before the percentage |
|
inline |
Ends output from a call to show_progess by displaying 100% completion.
| prefix | The text to show before the percentage |
1.8.9.1