const char *AclMatchedName = NULL;
-bool ACLFlags::supported(const ACLFlag f) const
+bool ACLFlags::supported(const ACLFlag f) const
{
if (f == ACL_F_REGEX_CASE)
return true;
- return (supported_.find(f) != std::string::npos);
+ return (supported_.find(f) != std::string::npos);
}
-void
+void
ACLFlags::parseFlags(char * &nextToken)
{
- while((nextToken = ConfigParser::strtokFile()) != NULL && nextToken[0] == '-') {
+ while ((nextToken = ConfigParser::strtokFile()) != NULL && nextToken[0] == '-') {
//if token is the "--" break flag
- if (strcmp(nextToken, "--") == 0)
+ if (strcmp(nextToken, "--") == 0)
break;
for (const char *flg = nextToken+1; *flg!='\0'; flg++ ) {
if (supported(*flg)) {
makeSet(*flg);
- }
- else {
+ } else {
debugs(28, 0, HERE << "Flag '" << *flg << "' not supported");
self_destruct();
}
private:
/// Convert a flag to a 64bit unsigned integer.
/// The characters from 'A' to 'z' represented by the values from 65 to 122.
- /// They are 57 different characters which can be fit to the bits of an 64bit
+ /// They are 57 different characters which can be fit to the bits of an 64bit
/// integer.
uint64_t flagToInt(const ACLFlag f) const {
assert('A' <= f && f <= 'z');
static ACL* FindByName(const char *name);
ACL();
- explicit ACL(const ACLFlag flgs[]) : cfgline(NULL), flags(flgs){}
+ explicit ACL(const ACLFlag flgs[]) : cfgline(NULL), flags(flgs) {}
virtual ~ACL();
virtual ACL *clone()const = 0;
virtual void parse() = 0;