47const std::vector<Data>&
74 "PrivacyCategory::parse()",
77 mValue.push_back(pb.
data(start));
109 for(std::vector<Data>::const_iterator i=mValue.begin(); i!=mValue.end(); ++i)
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
size_type size() const noexcept
Returns the number of bytes in this Data.
const char * data() const noexcept
Returns a pointer to the contents of this Data.
Provides string-parsing functionality with protection from buffer overflow.
CurrentPosition skipWhitespace()
CurrentPosition position() const
CurrentPosition skipToOneOf(const char *cs)
CurrentPosition skipChar()
void data(Data &data, const char *start) const
make the passed in data share memory with the buffer (uses Data::Share)
static const char * Whitespace
BaseException used to indicate parse failures.
Base class for all SIP grammar elements that can have parameters.
ParserCategory & operator=(const ParserCategory &rhs)
Represents the "token" element in the RFC 3261 grammar.
virtual EncodeStream & encodeParsed(EncodeStream &str) const
virtual ParserCategory * clone() const
PrivacyCategory & operator=(const PrivacyCategory &)
const std::vector< Data > & value() const
virtual void parse(ParseBuffer &pb)
dcm! – add UnusedChecking(_enum) below;
static const Data parseContext("PrivacyCategory constructor")