back a useless version of the register command (just to prove the command sequence); and added smart XML semantics to the XPath implementation so that nodes can be coerced to values.
24 lines
357 B
C++
24 lines
357 B
C++
#include "mask.h"
|
|
#include "debug.h"
|
|
#include "util.h"
|
|
|
|
#include <cstdlib>
|
|
|
|
mask_t::mask_t(const std::string& pat) : exclude(false)
|
|
{
|
|
const char * p = pat.c_str();
|
|
|
|
if (*p == '-') {
|
|
exclude = true;
|
|
p++;
|
|
while (std::isspace(*p))
|
|
p++;
|
|
}
|
|
else if (*p == '+') {
|
|
p++;
|
|
while (std::isspace(*p))
|
|
p++;
|
|
}
|
|
|
|
expr.assign(p);
|
|
}
|