aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/poco/XML/src/Text.cpp
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:44:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:49 +0300
commit718c552901d703c502ccbefdfc3c9028d608b947 (patch)
tree46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/libs/poco/XML/src/Text.cpp
parente9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff)
downloadydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/poco/XML/src/Text.cpp')
-rw-r--r--contrib/libs/poco/XML/src/Text.cpp160
1 files changed, 80 insertions, 80 deletions
diff --git a/contrib/libs/poco/XML/src/Text.cpp b/contrib/libs/poco/XML/src/Text.cpp
index abdff3a4e9..62677623d0 100644
--- a/contrib/libs/poco/XML/src/Text.cpp
+++ b/contrib/libs/poco/XML/src/Text.cpp
@@ -1,80 +1,80 @@
-//
-// Text.cpp
-//
-// Library: XML
-// Package: DOM
-// Module: DOM
-//
-// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
-// and Contributors.
-//
-// SPDX-License-Identifier: BSL-1.0
-//
-
-
-#include "Poco/DOM/Text.h"
-#include "Poco/DOM/Document.h"
-#include "Poco/DOM/DOMException.h"
-
-
-namespace Poco {
-namespace XML {
-
-
-const XMLString Text::NODE_NAME = toXMLString("#text");
-
-
-Text::Text(Document* pOwnerDocument, const XMLString& data):
- CharacterData(pOwnerDocument, data)
-{
-}
-
-
-Text::Text(Document* pOwnerDocument, const Text& text):
- CharacterData(pOwnerDocument, text)
-{
-}
-
-
-Text::~Text()
-{
-}
-
-
-Text* Text::splitText(unsigned long offset)
-{
- Node* pParent = parentNode();
- if (!pParent) throw DOMException(DOMException::HIERARCHY_REQUEST_ERR);
- int n = length() - offset;
- Text* pNew = ownerDocument()->createTextNode(substringData(offset, n));
- deleteData(offset, n);
- pParent->insertBefore(pNew, nextSibling())->release();
- return pNew;
-}
-
-
-const XMLString& Text::nodeName() const
-{
- return NODE_NAME;
-}
-
-
-unsigned short Text::nodeType() const
-{
- return Node::TEXT_NODE;
-}
-
-
-XMLString Text::innerText() const
-{
- return nodeValue();
-}
-
-
-Node* Text::copyNode(bool /*deep*/, Document* pOwnerDocument) const
-{
- return new Text(pOwnerDocument, *this);
-}
-
-
-} } // namespace Poco::XML
+//
+// Text.cpp
+//
+// Library: XML
+// Package: DOM
+// Module: DOM
+//
+// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
+// and Contributors.
+//
+// SPDX-License-Identifier: BSL-1.0
+//
+
+
+#include "Poco/DOM/Text.h"
+#include "Poco/DOM/Document.h"
+#include "Poco/DOM/DOMException.h"
+
+
+namespace Poco {
+namespace XML {
+
+
+const XMLString Text::NODE_NAME = toXMLString("#text");
+
+
+Text::Text(Document* pOwnerDocument, const XMLString& data):
+ CharacterData(pOwnerDocument, data)
+{
+}
+
+
+Text::Text(Document* pOwnerDocument, const Text& text):
+ CharacterData(pOwnerDocument, text)
+{
+}
+
+
+Text::~Text()
+{
+}
+
+
+Text* Text::splitText(unsigned long offset)
+{
+ Node* pParent = parentNode();
+ if (!pParent) throw DOMException(DOMException::HIERARCHY_REQUEST_ERR);
+ int n = length() - offset;
+ Text* pNew = ownerDocument()->createTextNode(substringData(offset, n));
+ deleteData(offset, n);
+ pParent->insertBefore(pNew, nextSibling())->release();
+ return pNew;
+}
+
+
+const XMLString& Text::nodeName() const
+{
+ return NODE_NAME;
+}
+
+
+unsigned short Text::nodeType() const
+{
+ return Node::TEXT_NODE;
+}
+
+
+XMLString Text::innerText() const
+{
+ return nodeValue();
+}
+
+
+Node* Text::copyNode(bool /*deep*/, Document* pOwnerDocument) const
+{
+ return new Text(pOwnerDocument, *this);
+}
+
+
+} } // namespace Poco::XML