JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::XmlAttribute Struct Reference

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

#include <juce_XmlElement.h>

Collaboration diagram for juce::XmlAttribute:

Public Member Functions

bool equals (const XmlAttribute &other, bool ignoreCase) const
 Returns true if this attribute compares equal to the passed-in attribute.
 
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 operator!= (const XmlAttribute &other) const
 Returns true if the attributes have different values.
 
bool operator== (const XmlAttribute &other) const
 Returns true if both attributes are equal.
 

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

@tags{Core}

Member Function Documentation

◆ equals() [1/2]

bool juce::XmlAttribute::equals ( const XmlAttribute other,
bool  ignoreCase 
) const
inline

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.

◆ equals() [2/2]

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

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 juce::String::equalsIgnoreCase(), name, and value.

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

◆ operator!=()

bool juce::XmlAttribute::operator!= ( const XmlAttribute other) const
inline

Returns true if the attributes have different values.

This comparison is case-sensitive.

References operator==().

◆ operator==()

bool juce::XmlAttribute::operator== ( const XmlAttribute other) const
inline

Returns true if both attributes are equal.

This comparison is case-sensitive.

References equals().

Referenced by operator!=().

Member Data Documentation

◆ name

Identifier juce::XmlAttribute::name

The name of the attribute.

Referenced by equals(), and equals().

◆ value

String juce::XmlAttribute::value

The value of the attribute.

Referenced by equals(), and equals().


The documentation for this struct was generated from the following file: