Loading...
Searching...
No Matches
XmlAttribute Struct Reference

A name-value pair representing an attribute of an XML tag. More...

Public Member Functions

bool equals (StringRef otherName, StringRef otherValue, bool ignoreCase) const
 Returns true if the name and value of this attribute compare equal to the passed-in strings.
 
bool equals (const XmlAttribute &other, bool ignoreCase) const
 Returns true if this attribute compares equal to the passed-in attribute.
 
bool operator== (const XmlAttribute &other) const
 Returns true if both attributes are equal.
 
bool operator!= (const XmlAttribute &other) const
 Returns true if the attributes have different values.
 

Public Attributes

Identifier name
 The name of the attribute.
 
String value
 The value of the attribute.
 

Detailed Description

A name-value pair representing an attribute of an XML tag.

See also
XmlElement

Member Function Documentation

◆ equals() [1/2]

bool XmlAttribute::equals ( StringRef otherName,
StringRef otherValue,
bool ignoreCase ) const

Returns true if the name and value of this attribute compare equal to the passed-in strings.

The 'ignoreCase' option only affects the value strings.

References name, and value.

Referenced by equals(), and operator==().

◆ equals() [2/2]

bool XmlAttribute::equals ( const XmlAttribute & other,
bool ignoreCase ) const

Returns true if this attribute compares equal to the passed-in attribute.

The 'ignoreCase' option only affects the value strings.

References equals(), name, and value.

◆ operator==()

bool XmlAttribute::operator== ( const XmlAttribute & other) const

Returns true if both attributes are equal.

This comparison is case-sensitive.

References equals().

Referenced by operator!=().

◆ operator!=()

bool XmlAttribute::operator!= ( const XmlAttribute & other) const

Returns true if the attributes have different values.

This comparison is case-sensitive.

References operator==().

Member Data Documentation

◆ name

Identifier XmlAttribute::name

The name of the attribute.

Referenced by equals(), and equals().

◆ value

String XmlAttribute::value

The value of the attribute.

Referenced by equals(), and equals().

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram