webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
#import <WebTextIterator.h>
Instance Methods | |
(id) | - initWithRange: |
(void) | - advance |
(BOOL) | - atEnd |
(NSUInteger) | - currentTextLength |
(const unichar *) | - currentTextPointer |
(DOMRange *) | - currentRange |
(DOMNode *) | - currentNode |
(NSString *) | - currentText |
- (void) advance |
advance Moves the WebTextIterator to the next bit of text or boundary between runs of text. The iterator can break up runs of text however it finds convenient, so clients need to handle text runs that are broken up into arbitrary pieces.
- (BOOL) atEnd |
atEnd
- (DOMNode *) currentNode |
currentNode A convenience method that finds the first node in currentRange; it's almost always better to use currentRange instead.
Provided by category WebTextIterator(WebTextIteratorDeprecated).
- (DOMRange *) currentRange |
currentRange A function that identifies the specific document range that text corresponds to. This can be quite costly to compute for non-text items, so when possible this should only be called once the caller has determined that the text is text it wants to process. If you call currentRange every time you advance the iterator, performance will be extremely slow due to the cost of computing a DOM range.
- (NSString *) currentText |
currentText A convenience method that makes an NSString out of the current text; it's almost always better to use currentTextPointer and currentTextLength instead.
Provided by category WebTextIterator(WebTextIteratorDeprecated).
- (NSUInteger) currentTextLength |
currentTextLength
- (const unichar *) currentTextPointer |
currentTextPointer