Print different string on first and subsequent usage.
More...
#include <tools/nfdc/format-helpers.hpp>
Print different string on first and subsequent usage.
for (int i = 1; i <= 3; ++i) {
os << sep << i;
}
Separator(std::string_view first, std::string_view subsequent)
Definition at line 100 of file format-helpers.hpp.
◆ Separator() [1/2]
nfd::tools::nfdc::text::Separator::Separator |
( |
std::string_view |
first, |
|
|
std::string_view |
subsequent |
|
) |
| |
◆ Separator() [2/2]
nfd::tools::nfdc::text::Separator::Separator |
( |
std::string_view |
subsequent | ) |
|
|
explicit |
◆ getCount()
int nfd::tools::nfdc::text::Separator::getCount |
( |
| ) |
const |
|
inline |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
Separator & |
sep |
|
) |
| |
|
friend |