using namespace std;
-#include <iostream>
-
namespace {
/**
}
string::const_iterator end=iter;
- for(; (end!=str.end() && *end!=']'); ++end);
+ for(; (end!=str.end() && (end==iter || *end!=']')); ++end);
if(end==str.end())
throw InvalidParameterValue("Unmatched '['");
uint8_t mask[32]={0};
unsigned type=0;
bool range=false;
- unsigned char first, last;
+ unsigned char first=0, last=0;
for(string::const_iterator i=iter; i!=end; ++i)
{
unsigned char c=*i;
{
if(!g1.match)
return false;
-
+
// Any match is better than no match
if(!g2.match)
return true;