MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / splitText

Method splitText

base/poco/XML/src/Text.cpp:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43
44Text* Text::splitText(unsigned long offset)
45{
46 Node* pParent = parentNode();
47 if (!pParent) throw DOMException(DOMException::HIERARCHY_REQUEST_ERR);
48 int n = length() - offset;
49 Text* pNew = ownerDocument()->createTextNode(substringData(offset, n));
50 deleteData(offset, n);
51 pParent->insertBefore(pNew, nextSibling())->release();
52 return pNew;
53}
54
55
56const XMLString& Text::nodeName() const

Callers

nothing calls this directly

Calls 3

createTextNodeMethod · 0.80
releaseMethod · 0.45
insertBeforeMethod · 0.45

Tested by

no test coverage detected