23 char *b = strchr(a,
'-');
24 unsigned short port1, port2;
58 for (
const auto &element :
ranges) {
74 for (
const auto &element :
ranges) {
77 if (element.size() == 1)
78 sb.Printf(
"%d", element.start);
80 sb.Printf(
"%d-%d", element.start, element.end-1);
unsigned short xatos(const char *token)
SBufList dump() const override
std::list< RangeType > ranges
bool empty() const override
static char * strtokFile()
Range intersection(Range const &) const
#define debugs(SECTION, LEVEL, CONTENT)
std::list< SBuf > SBufList