One immutable whole-grapheme byte range retaining its original owning input.
More...
#include <text_transform.hpp>
|
|
| ~TextSegment ()=default |
| | Release a shared input owner; rvalue transfer uses the nonallocating shared-owner copy.
|
| std::string_view | bytes () const noexcept |
| WidthPolicy | policy () const noexcept |
| GraphemeText | text () const |
| bool | operator== (const TextSegment &other) const noexcept |
One immutable whole-grapheme byte range retaining its original owning input.
◆ bytes()
| std::string_view portals::TextSegment::bytes |
( |
| ) |
const |
|
noexcept |
- Returns
- Borrowed token bytes, valid until this segment is assigned or destroyed.
◆ operator==()
| bool portals::TextSegment::operator== |
( |
const TextSegment & | other | ) |
const |
|
noexcept |
- Parameters
-
| other | Owning token to compare. |
- Returns
- Equal token bytes and width policy, independently of original offsets/storage.
◆ policy()
- Returns
- Width policy of the retained immutable input.
◆ text()
- Returns
- Owning segmented token under its input policy; allocation failures propagate.
The documentation for this class was generated from the following file: