|
Squid Web Cache master
|
low-level parser that extracts but does not interpret ACL options More...
Public Member Functions | |
| bool | extractOne () |
| const SBuf & | value () const |
| extracted option value (requires hasValue) | |
Public Attributes | |
| SBuf | name |
| extracted option name, including dash(es) | |
| bool | hasValue = false |
| whether the option has a value (-x=value) | |
Protected Member Functions | |
| bool | advance () |
| extracts a token with the next option/flag(s) or returns false | |
| void | extractWhole () |
| handles -x[=option] or –foo[=option] | |
| void | extractShort () |
| handles one flag letter inside an -xyx[=option] or +xyz[=option] sequence | |
Private Attributes | |
| SBuf | prefix_ |
| option name(s), including leading dash(es) | |
| SBuf | value_ |
| the last seen value of some option | |
| SBuf::size_type | letterPos_ = 0 |
| letter position inside an -xyz sequence | |
| bool | sawValue_ = false |
| the current option sequence had a value | |
Definition at line 22 of file Options.cc.
|
protected |
Definition at line 117 of file Options.cc.
References ConfigParser::NextKvPair(), ConfigParser::NextToken(), ConfigParser::PeekAtToken(), TexcHere, and ToSBuf().
| bool Acl::OptionExtractor::extractOne | ( | ) |
parses the next option and fills public members with its details
Definition at line 84 of file Options.cc.
References TexcHere, and ToSBuf().
Referenced by Acl::OptionsParser::parse().
|
protected |
Definition at line 154 of file Options.cc.
References debugs.
|
protected |
Definition at line 144 of file Options.cc.
References debugs.
| const SBuf & Acl::OptionExtractor::value | ( | ) | const |
Definition at line 77 of file Options.cc.
References Must.
Referenced by Acl::OptionsParser::parse().
| bool Acl::OptionExtractor::hasValue = false |
Definition at line 31 of file Options.cc.
Referenced by Acl::OptionsParser::parse().
|
private |
Definition at line 42 of file Options.cc.
| SBuf Acl::OptionExtractor::name |
Definition at line 30 of file Options.cc.
Referenced by Acl::OptionsParser::parse().
|
private |
Definition at line 40 of file Options.cc.
|
private |
Definition at line 43 of file Options.cc.
|
private |
Definition at line 41 of file Options.cc.