|
constexpr | text_cursor (text_cursor const &) noexcept=default |
|
constexpr | text_cursor (text_cursor &&) noexcept=default |
|
constexpr text_cursor & | operator= (text_cursor const &) noexcept=default |
|
constexpr text_cursor & | operator= (text_cursor &&) noexcept=default |
|
constexpr text_cursor & | resize (size_t size) &noexcept |
| Set the text size.
|
|
constexpr text_cursor | resize (size_t size) &&noexcept |
|
constexpr | text_cursor (size_t index, bool after) noexcept |
| Create a new text cursor.
|
|
constexpr text_cursor | neighbor (size_t size) const noexcept |
| Return the neighbor cursor.
|
|
constexpr text_cursor | after_neighbor (size_t size) const noexcept |
|
constexpr text_cursor | before_neighbor (size_t size) const noexcept |
|
constexpr bool | start_of_text () const noexcept |
|
constexpr bool | end_of_text (size_t size) const noexcept |
|
constexpr size_t | index () const noexcept |
|
constexpr bool | after () const noexcept |
|
constexpr bool | before () const noexcept |
|
A cursor-position in text.
The cursor position takes into account the index of the character and if it is in front or behind this character. This allows for more detailed positioning inside bidirectional text.