merge some changes from develop branch; modernize and clean-up code; remove support for compiling without POCO_WIN32_UTF8

This commit is contained in:
Günter Obiltschnig
2020-01-09 10:08:09 +01:00
parent 7c177b6f89
commit 1bf40a0cd2
389 changed files with 3029 additions and 4111 deletions

View File

@@ -19,24 +19,35 @@ namespace Poco {
namespace XML {
AttributesImpl::EmptyAttribute::EmptyAttribute()
{
specified = false;
type = XML_LIT("CDATA");
}
AttributesImpl::EmptyAttribute AttributesImpl::_empty;
AttributesImpl::AttributesImpl()
{
_empty.specified = false;
_empty.type = XML_LIT("CDATA");
}
AttributesImpl::AttributesImpl(const Attributes& attributes)
{
_empty.specified = false;
_empty.type = XML_LIT("CDATA");
setAttributes(attributes);
}
AttributesImpl::AttributesImpl(const AttributesImpl& attributes):
_attributes(attributes._attributes),
_empty(attributes._empty)
_attributes(attributes._attributes)
{
}
AttributesImpl::AttributesImpl(AttributesImpl&& attributes) noexcept:
_attributes(std::move(attributes._attributes))
{
}
@@ -56,6 +67,14 @@ AttributesImpl& AttributesImpl::operator = (const AttributesImpl& attributes)
}
AttributesImpl& AttributesImpl::operator = (AttributesImpl&& attributes) noexcept
{
_attributes = std::move(attributes._attributes);
return *this;
}
int AttributesImpl::getIndex(const XMLString& qname) const
{
int i = 0;