103 if (((v[0] ==
'"') && (v[n-1] ==
'"')) ||
104 ((v[0] ==
'\'') && (v[n-1] ==
'\''))) {
106 v = v.substr(1, n-2);
void copy_members(const GXmlAttribute &attr)
Copy class members.
std::string m_value
Attribute value.
void clear(void)
Clear element attribute.
void write(GUrl &url) const
Write attribute into URL.
virtual ~GXmlAttribute(void)
Destructor.
const std::string & name(void) const
Return attribute name.
std::string print(const GChatter &chatter=NORMAL) const
Print element attribute.
GXmlAttribute * clone(void) const
Clone element attribute.
GXmlAttribute & operator=(const GXmlAttribute &attr)
Assignment operator.
virtual void printf(const char *format,...)=0
std::string xml2str(const std::string &arg)
Convert XML character references in string to characters.
std::string m_name
Attribute name.
GXmlAttribute(void)
Void constructor.
const std::string & value(void) const
Return attribute value.
void free_members(void)
Delete class members.
std::string str2xml(const std::string &arg)
Convert special characters in string to XML character references.
void init_members(void)
Initialise class members.
XML attribute class interface definition.