DOM_Text(3m)

NAME
DOM_Text - the Document Object Model (DOM) DOM_Text interface

SYNOPSIS
#include <domc.h>

DOM_Text *DOM_Text_splitText(DOM_Text *this, int offset);

DESCRIPTION
The DOM_Text node inherits the structure of the DOM_CharacterData interface. It represents the character data between elements (and much less frequently the character data associated with an attribute of an element). The length of the text string may be retrived with the DOM_CharacterData_getLength function.

splitText
    The DOM_Text_splitText function splits this DOM_Text node at the specified offset into two adjacent DOM_Text nodes. The first is a string offset size in length whereas the seconds is the remain string. If offset is equal to the length of the string the new sibling is created with a string of 0 length.

RETURNS

splitText
    The new DOM_Text node containing the text that was at offset.