An iterator for iterating over the characters in a PageText object.
More...
#include <pdfsdk/cxx/page_text.h>
An iterator for iterating over the characters in a PageText object.
◆ PageTextIterator() [1/2]
| PDF::PageTextIterator::PageTextIterator |
( |
const PageText & | pagetext, |
|
|
size_t | charindex = 0 ) |
|
inline |
Constructor with PageText and character index.
- Parameters
-
| pagetext | The PageText object. |
| charindex | The character index. Default is 0. |
◆ PageTextIterator() [2/2]
Copy constructor.
- Parameters
-
| rhs | The PageTextIterator to copy from. |
◆ Advance()
Advance the iterator by the specified offset.
- Parameters
-
| offset | The offset to advance the iterator by. |
- Returns
- A reference to the advanced PageTextIterator.
◆ begin()
Get the beginning iterator.
- Returns
- A new PageTextIterator at the beginning.
◆ end()
Get the ending iterator.
- Returns
- A new PageTextIterator at the end.
◆ Equals()
Equality comparison.
- Parameters
-
| rhs | The PageTextIterator to compare with. |
- Returns
- True if the iterators are equal, false otherwise.
◆ GetChar()
Get the character at the current iterator position.
- Returns
- The character at the current iterator position.
◆ GetCharIndex()
| size_t PDF::PageTextIterator::GetCharIndex |
( |
| ) |
const |
|
inline |
Get the character index.
- Returns
- The character index.
◆ GetPageText()
| PageText PDF::PageTextIterator::GetPageText |
( |
| ) |
const |
|
inline |
Get the PageText object.
- Returns
- The PageText object.
◆ LessThen()
Less than comparison.
- Parameters
-
| rhs | The PageTextIterator to compare with. |
- Returns
- True if this iterator is less than the rhs iterator, false otherwise.
◆ Next()
Move the iterator to the next character.
- Returns
- A reference to the next PageTextIterator.
◆ operator!=()
Inequality operator.
- Parameters
-
| rhs | The PageTextIterator to compare with. |
- Returns
- True if the iterators are not equal, false otherwise.
◆ operator+()
| PageTextIterator PDF::PageTextIterator::operator+ |
( |
difference_type | offset | ) |
const |
|
inline |
Addition operator.
- Parameters
-
- Returns
- A new PageTextIterator with the added offset.
◆ operator++() [1/2]
Pre-increment operator.
- Returns
- A reference to the incremented PageTextIterator.
◆ operator++() [2/2]
Post-increment operator.
- Returns
- A copy of the original PageTextIterator.
◆ operator+=()
Addition assignment operator.
- Parameters
-
- Returns
- A reference to the modified PageTextIterator.
◆ operator-()
| PageTextIterator PDF::PageTextIterator::operator- |
( |
difference_type | offset | ) |
const |
|
inline |
Subtraction operator.
- Parameters
-
| offset | The offset to subtract. |
- Returns
- A new PageTextIterator with the subtracted offset.
◆ operator--() [1/2]
Pre-decrement operator.
- Returns
- A reference to the decremented PageTextIterator.
◆ operator--() [2/2]
Post-decrement operator.
- Returns
- A copy of the original PageTextIterator.
◆ operator-=()
Subtraction assignment operator.
- Parameters
-
| offset | The offset to subtract. |
- Returns
- A reference to the modified PageTextIterator.
◆ operator<()
Less than operator.
- Parameters
-
| rhs | The PageTextIterator to compare with. |
- Returns
- True if this iterator is less than the rhs iterator, false otherwise.
◆ operator<=()
Less than or equal to operator.
- Parameters
-
| rhs | The PageTextIterator to compare with. |
- Returns
- True if this iterator is less than or equal to the rhs iterator, false otherwise.
◆ operator=()
Assignment operator.
- Parameters
-
| rhs | The PageTextIterator to assign from. |
- Returns
- A reference to the assigned PageTextIterator.
◆ operator==()
Equality operator.
- Parameters
-
| rhs | The PageTextIterator to compare with. |
- Returns
- True if the iterators are equal, false otherwise.
◆ operator>()
Greater than operator.
- Parameters
-
| rhs | The PageTextIterator to compare with. |
- Returns
- True if this iterator is greater than the rhs iterator, false otherwise.
◆ operator>=()
Greater than or equal to operator.
- Parameters
-
| rhs | The PageTextIterator to compare with. |
- Returns
- True if this iterator is greater than or equal to the rhs iterator, false otherwise.
◆ Prev()
Move the iterator to the previous character.
- Returns
- A reference to the previous PageTextIterator.
The documentation for this class was generated from the following file: