#include <Text.h>
Allows to access the glyphs (i.e. grapheme clusters) within a label.
- Note
- what is called glyph here, is actually a grapheme cluster. For more details refer to http://unicode.org/reports/tr29/
◆ ~Text()
| virtual myscript::iink::text::Text::~Text |
( |
| ) |
|
|
virtualdefault |
◆ getLabel()
| virtual String myscript::iink::text::Text::getLabel |
( |
| ) |
const |
|
pure virtualnoexcept |
Returns the label of this text.
- Returns
- the label of this text.
◆ getGlyphCount()
| virtual int myscript::iink::text::Text::getGlyphCount |
( |
| ) |
const |
|
pure virtualnoexcept |
Returns the number of glyphs associated with this text.
- Returns
- the number of glyphs in this text.
◆ getGlyphLabelAt()
| virtual String myscript::iink::text::Text::getGlyphLabelAt |
( |
int |
index | ) |
const |
|
pure virtual |
Returns the label of a glyph.
- Parameters
-
| index | the index of the glyph. |
- Returns
- the label of the glyph at
index.
- Exceptions
-
◆ getGlyphUtf8BeginAt()
| virtual int myscript::iink::text::Text::getGlyphUtf8BeginAt |
( |
int |
index | ) |
const |
|
pure virtual |
Returns the starting position of a glyph in the UTF-8 representation of the label of this text.
- Parameters
-
| index | the index of the glyph. |
- Returns
- the index of the first
char of the glyph at index.
- Exceptions
-
◆ getGlyphUtf8EndAt()
| virtual int myscript::iink::text::Text::getGlyphUtf8EndAt |
( |
int |
index | ) |
const |
|
pure virtual |
Returns the ending position of a glyph in the UTF-8 representation of the label of this text.
- Parameters
-
| index | the index of the glyph. |
- Returns
- the index after the last
char of the glyph at index.
- Exceptions
-
◆ getGlyphUtf16BeginAt()
| virtual int myscript::iink::text::Text::getGlyphUtf16BeginAt |
( |
int |
index | ) |
const |
|
pure virtual |
Returns the starting position of a glyph in the UTF-16 representation of the label of this text.
- Parameters
-
| index | the index of the glyph. |
- Returns
- the index of the first
char16_t of the glyph at index.
- Exceptions
-
◆ getGlyphUtf16EndAt()
| virtual int myscript::iink::text::Text::getGlyphUtf16EndAt |
( |
int |
index | ) |
const |
|
pure virtual |
Returns the ending position of a glyph in the UTF-16 representation of the label of this text.
- Parameters
-
| index | the index of the glyph. |
- Returns
- the index after the last
char16_t of the glyph at index.
- Exceptions
-
The documentation for this class was generated from the following file: