mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
merge some changes from develop branch; modernize and clean-up code; remove support for compiling without POCO_WIN32_UTF8
This commit is contained in:
@@ -45,8 +45,8 @@ public:
|
||||
XMLString type;
|
||||
bool specified;
|
||||
};
|
||||
typedef std::vector<Attribute> AttributeVec;
|
||||
typedef AttributeVec::const_iterator iterator;
|
||||
using AttributeVec = std::vector<Attribute>;
|
||||
using iterator = AttributeVec::const_iterator;
|
||||
|
||||
AttributesImpl();
|
||||
/// Creates the AttributesImpl.
|
||||
@@ -57,12 +57,18 @@ public:
|
||||
AttributesImpl(const AttributesImpl& attributes);
|
||||
/// Creates the AttributesImpl by copying another one.
|
||||
|
||||
AttributesImpl(AttributesImpl&& attributes) noexcept;
|
||||
/// Creates the AttributesImpl by copying another one.
|
||||
|
||||
~AttributesImpl();
|
||||
/// Destroys the AttributesImpl.
|
||||
|
||||
AttributesImpl& operator = (const AttributesImpl& attributes);
|
||||
/// Assignment operator.
|
||||
|
||||
AttributesImpl& operator = (AttributesImpl&& attributes) noexcept;
|
||||
/// Assignment operator.
|
||||
|
||||
int getIndex(const XMLString& name) const;
|
||||
int getIndex(const XMLString& namespaceURI, const XMLString& localName) const;
|
||||
int getLength() const;
|
||||
@@ -154,9 +160,14 @@ protected:
|
||||
Attribute* find(const XMLString& qname) const;
|
||||
Attribute* find(const XMLString& namespaceURI, const XMLString& localName) const;
|
||||
|
||||
struct EmptyAttribute: Attribute
|
||||
{
|
||||
EmptyAttribute();
|
||||
};
|
||||
|
||||
private:
|
||||
AttributeVec _attributes;
|
||||
Attribute _empty;
|
||||
static EmptyAttribute _empty;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user