Ejemplo n.º 1
0
void MarkupAccumulator::appendText(StringBuilder& result, Text& text)
{
    const String& str = text.data();
    unsigned length = str.length();
    unsigned start = 0;

    if (m_range) {
        if (text == m_range->endContainer())
            length = m_range->endOffset();
        if (text == m_range->startContainer()) {
            start = m_range->startOffset();
            length -= start;
        }
    }
    appendCharactersReplacingEntities(result, str, start, length, entityMaskForText(text));
}
Ejemplo n.º 2
0
void MarkupAccumulator::appendText(StringBuilder& out, Text* text)
{
    appendNodeValue(out, text, m_range, entityMaskForText(text));
}
Ejemplo n.º 3
0
void MarkupAccumulator::appendText(StringBuilder& result, const Text& text)
{
    appendNodeValue(result, text, m_range, entityMaskForText(text));
}
void MarkupFormatter::appendText(StringBuilder& result, Text& text)
{
    const String& str = text.data();
    appendCharactersReplacingEntities(result, str, 0, str.length(), entityMaskForText(text));
}