Comprehensive Guide for Developers: Features, Integration, and API Reference
The CharIterator class represents an iterator to a character in a Layout. More...
#include <pdfsdk/cxx/text_edit.h>
Public Member Functions | |
| CharIterator | GetBlockBegin () const |
| Gets the iterator to the beginning of the current block. | |
| CharIterator | GetBlockEnd () const |
| Gets the iterator to the end of the current block. | |
| CharIterator | GetParaBegin () const |
| Gets the iterator to the beginning of the current paragraph. | |
| CharIterator | GetParaEnd () const |
| Gets the iterator to the end of the current paragraph. | |
| CharIterator | GetLineBegin () const |
| Gets the iterator to the beginning of the current line. | |
| CharIterator | GetLineEnd () const |
| Gets the iterator to the end of the current line. | |
| CharIterator | GetWordBegin () const |
| Gets the iterator to the beginning of the current word. | |
| CharIterator | GetWordEnd () const |
| Gets the iterator to the end of the current word. | |
| CharIterator | GetSpanBegin () const |
| Gets the iterator to the beginning of the current span. | |
| CharIterator | GetSpanEnd () const |
| Gets the iterator to the end of the current span. | |
| CharIterator | GetAbove () const |
| Gets the iterator to the character above the current character. | |
| CharIterator | GetAboveAtPage (const Layout &prev_page_text_layout) const |
| Gets the iterator to the character above the current character on the previous page. | |
| CharIterator | GetBelow () const |
| Gets the iterator to the character below the current character. | |
| CharIterator | GetBelowAtPage (const Layout &next_page_text_layout) const |
| Gets the iterator to the character below the current character on the next page. | |
| CharIterator | Copy () const |
| Creates a copy of the current iterator. | |
| void | MoveNext () |
| Moves the iterator to the next character. | |
| void | MovePrev () |
| Moves the iterator to the previous character. | |
| void | Move (int n) |
| Moves the iterator by the specified number of characters. | |
| int | Distance (const CharIterator &that) const |
| Calculates the distance between the current iterator and another iterator. | |
| bool | Less (const CharIterator &that) const |
| Checks if the current iterator is less than another iterator. | |
| bool | Equal (const CharIterator &that) const |
| Checks if the current iterator is equal to another iterator. | |
| std::wstring | GetUnicodeChar () const |
| Gets the Unicode character at the current iterator position. | |
| size_t | GetPageIndex () const |
| Gets the page index of the current iterator. | |
| Quad | GetQuad () const |
| Gets the quad representing the bounding box of the current character. | |
| Quad | GetOutlineQuad () const |
| Gets the quad representing the outline of the current character. | |
| TextBlock | GetTextBlock () const |
| Gets the TextBlock containing the current character. | |
| PDTFontAttrs | GetFontAttrs () const |
| Gets the font attributes of the current character. | |
| PDTParaAttrs | GetParaAttrs () const |
| Gets the paragraph attributes of the current character. | |
| PDTListAttrs | GetListAttrs () const |
| Gets the list attributes of the current character. | |
| Matrix | GetTransform () const |
| Gets the transformation matrix of the current character. | |
| TextRun | GetTextRun () const |
| Gets the TextRun containing the current character. | |
| CharIterator (PDTCharIterator handle, bool adopt=false) noexcept | |
| CharIterator (const CharIterator &rhs) noexcept | |
| CharIterator & | operator= (const CharIterator &rhs) noexcept |
| CharIterator (CharIterator &&rhs) noexcept | |
| CharIterator & | operator= (CharIterator &&rhs) noexcept |
The CharIterator class represents an iterator to a character in a Layout.
|
inline |
Creates a copy of the current iterator.
|
inline |
Calculates the distance between the current iterator and another iterator.
| that | The other iterator. |
|
inline |
Checks if the current iterator is equal to another iterator.
| that | The other iterator. |
|
inline |
Gets the iterator to the character above the current character.
|
inline |
Gets the iterator to the character above the current character on the previous page.
| prev_page_text_layout | The Layout object of the previous page. |
|
inline |
Gets the iterator to the character below the current character.
|
inline |
Gets the iterator to the character below the current character on the next page.
| next_page_text_layout | The Layout object of the next page. |
|
inline |
Gets the iterator to the beginning of the current block.
|
inline |
Gets the iterator to the end of the current block.
|
inline |
Gets the font attributes of the current character.
|
inline |
Gets the iterator to the beginning of the current line.
|
inline |
Gets the iterator to the end of the current line.
|
inline |
Gets the list attributes of the current character.
|
inline |
Gets the quad representing the outline of the current character.
|
inline |
Gets the page index of the current iterator.
|
inline |
Gets the paragraph attributes of the current character.
|
inline |
Gets the iterator to the beginning of the current paragraph.
|
inline |
Gets the iterator to the end of the current paragraph.
|
inline |
Gets the quad representing the bounding box of the current character.
|
inline |
Gets the iterator to the beginning of the current span.
|
inline |
Gets the iterator to the end of the current span.
|
inline |
Gets the TextBlock containing the current character.
|
inline |
Gets the TextRun containing the current character.
|
inline |
Gets the transformation matrix of the current character.
|
inline |
Gets the Unicode character at the current iterator position.
|
inline |
Gets the iterator to the beginning of the current word.
|
inline |
Gets the iterator to the end of the current word.
|
inline |
Checks if the current iterator is less than another iterator.
| that | The other iterator. |
|
inline |
Moves the iterator by the specified number of characters.
| n | The number of characters to move the iterator. |