39 if (!discard_prefix || !
defined())
42 throw pushlex_error(
"not a valid PUSH_x message [1]");
49 if (c >=
'A' && c <=
'Z')
52 throw pushlex_error(
"not a valid PUSH_x message [2]");
void advance(const size_t delta)
Advances the buffer by the specified delta.
bool empty() const
Returns true if the buffer is empty.
T pop_front()
Removes and returns the first element from the buffer.
bool in_quote() const
Check if currently inside a quote.
PushLex(const ConstBuffer &buf, const bool discard_prefix)
OPENVPN_EXCEPTION(pushlex_error)
bool in_backslash() const
bool starts_with(const STRING &str, const std::string &prefix)