webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | List of all members
WebCore::TextIterator Class Reference

#include <TextIterator.h>

Public Member Functions

WEBCORE_EXPORT TextIterator (const Range *, TextIteratorBehavior=TextIteratorDefaultBehavior)
 
WEBCORE_EXPORT ~TextIterator ()
 
bool atEnd () const
 
WEBCORE_EXPORT void advance ()
 
StringView text () const
 
WEBCORE_EXPORT Ref< Range > range () const
 
WEBCORE_EXPORT Node * node () const
 
const TextIteratorCopyableText & copyableText () const
 
void appendTextToStringBuilder (StringBuilder &builder) const
 
WEBCORE_EXPORT TextIterator (const Range *, TextIteratorBehavior=TextIteratorDefaultBehavior)
 
WEBCORE_EXPORT ~TextIterator ()
 
bool atEnd () const
 
WEBCORE_EXPORT void advance ()
 
StringView text () const
 
WEBCORE_EXPORT Ref< Range > range () const
 
WEBCORE_EXPORT Node * node () const
 
const TextIteratorCopyableText & copyableText () const
 
void appendTextToStringBuilder (StringBuilder &builder) const
 

Static Public Member Functions

static WEBCORE_EXPORT int rangeLength (const Range *, bool spacesForReplacedElements=false)
 
static WEBCORE_EXPORT RefPtr< Range > rangeFromLocationAndLength (ContainerNode *scope, int rangeLocation, int rangeLength, bool spacesForReplacedElements=false)
 
static WEBCORE_EXPORT bool getLocationAndLengthFromRange (Node *scope, const Range *, size_t &location, size_t &length)
 
static WEBCORE_EXPORT Ref< Range > subrange (Range *entireRange, int characterOffset, int characterCount)
 
static WEBCORE_EXPORT int rangeLength (const Range *, bool spacesForReplacedElements=false)
 
static WEBCORE_EXPORT RefPtr< Range > rangeFromLocationAndLength (ContainerNode *scope, int rangeLocation, int rangeLength, bool spacesForReplacedElements=false)
 
static WEBCORE_EXPORT bool getLocationAndLengthFromRange (Node *scope, const Range *, size_t &location, size_t &length)
 
static WEBCORE_EXPORT Ref< Range > subrange (Range *entireRange, int characterOffset, int characterCount)
 

Constructor & Destructor Documentation

◆ TextIterator() [1/2]

WebCore::TextIterator::TextIterator ( const Range *  range,
TextIteratorBehavior  behavior = TextIteratorDefaultBehavior 
)
explicit

◆ ~TextIterator() [1/2]

WebCore::TextIterator::~TextIterator ( )

◆ TextIterator() [2/2]

WEBCORE_EXPORT WebCore::TextIterator::TextIterator ( const Range *  ,
TextIteratorBehavior  = TextIteratorDefaultBehavior 
)
explicit

◆ ~TextIterator() [2/2]

WEBCORE_EXPORT WebCore::TextIterator::~TextIterator ( )

Member Function Documentation

◆ advance() [1/2]

void WebCore::TextIterator::advance ( )

◆ advance() [2/2]

WEBCORE_EXPORT void WebCore::TextIterator::advance ( )

◆ appendTextToStringBuilder() [1/2]

void WebCore::TextIterator::appendTextToStringBuilder ( StringBuilder &  builder) const
inline

◆ appendTextToStringBuilder() [2/2]

void WebCore::TextIterator::appendTextToStringBuilder ( StringBuilder &  builder) const
inline

◆ atEnd() [1/2]

bool WebCore::TextIterator::atEnd ( ) const
inline

◆ atEnd() [2/2]

bool WebCore::TextIterator::atEnd ( ) const
inline

◆ copyableText() [1/2]

const TextIteratorCopyableText& WebCore::TextIterator::copyableText ( ) const
inline

◆ copyableText() [2/2]

const TextIteratorCopyableText& WebCore::TextIterator::copyableText ( ) const
inline

◆ getLocationAndLengthFromRange() [1/2]

bool WebCore::TextIterator::getLocationAndLengthFromRange ( Node *  scope,
const Range *  range,
size_t &  location,
size_t &  length 
)
static

◆ getLocationAndLengthFromRange() [2/2]

static WEBCORE_EXPORT bool WebCore::TextIterator::getLocationAndLengthFromRange ( Node *  scope,
const Range *  ,
size_t &  location,
size_t &  length 
)
static

◆ node() [1/2]

WEBCORE_EXPORT Node* WebCore::TextIterator::node ( ) const

◆ node() [2/2]

Node * WebCore::TextIterator::node ( ) const

◆ range() [1/2]

Ref< Range > WebCore::TextIterator::range ( ) const

◆ range() [2/2]

WEBCORE_EXPORT Ref<Range> WebCore::TextIterator::range ( ) const

◆ rangeFromLocationAndLength() [1/2]

static WEBCORE_EXPORT RefPtr<Range> WebCore::TextIterator::rangeFromLocationAndLength ( ContainerNode *  scope,
int  rangeLocation,
int  rangeLength,
bool  spacesForReplacedElements = false 
)
static

◆ rangeFromLocationAndLength() [2/2]

RefPtr< Range > WebCore::TextIterator::rangeFromLocationAndLength ( ContainerNode *  scope,
int  rangeLocation,
int  rangeLength,
bool  spacesForReplacedElements = false 
)
static

◆ rangeLength() [1/2]

int WebCore::TextIterator::rangeLength ( const Range *  range,
bool  spacesForReplacedElements = false 
)
static

◆ rangeLength() [2/2]

static WEBCORE_EXPORT int WebCore::TextIterator::rangeLength ( const Range *  ,
bool  spacesForReplacedElements = false 
)
static

◆ subrange() [1/2]

static WEBCORE_EXPORT Ref<Range> WebCore::TextIterator::subrange ( Range *  entireRange,
int  characterOffset,
int  characterCount 
)
static

◆ subrange() [2/2]

Ref< Range > WebCore::TextIterator::subrange ( Range *  entireRange,
int  characterOffset,
int  characterCount 
)
static

◆ text() [1/2]

StringView WebCore::TextIterator::text ( ) const
inline

◆ text() [2/2]

StringView WebCore::TextIterator::text ( ) const
inline

The documentation for this class was generated from the following files: