16#ifndef DOTATTRIBUTES_H
17#define DOTATTRIBUTES_H
37 void updateValue(
const QCString &key,
const QCString &inpValue)
40 const std::string regStr = key.
str()+R
"(\s*=)";
41 const reg::Ex re { regStr };
46 size_t len = s.length();
47 size_t startPos = match.position()+match.length();
48 size_t pos = startPos;
49 while (pos<len &&
qisspace(s[pos])) pos++;
50 if (pos<len && s[pos]==
'"')
54 while (pos<len && (s[pos]!=
'"' || (s[pos]==
'"' && pc==
'\\'))) pc=s[pos++];
59 while (pos<len && s[pos]!=
',' && s[pos]!=
';' && !
qisspace(s[pos])) pos++;
64 value =
m_input.mid(startPos,pos-startPos);
void updateValue(const QCString &key, const QCString &inpValue)
update a given attribute with a new value.
DotAttributes(const QCString &input)
Creates an instance of a DotAttribute list given its initial string representation.
QCString str() const
Return the string representation of the attribute list.
bool isEmpty() const
Returns TRUE iff the string is empty.
const std::string & str() const
bool search(std::string_view str, Match &match, const Ex &re, size_t pos)
Search in a given string str starting at position pos for a match against regular expression re.