Flutter Engine
The Flutter Engine
|
Public Member Functions | |
SkUnicode_libgrapheme () | |
~SkUnicode_libgrapheme () override=default | |
std::unique_ptr< SkBidiIterator > | makeBidiIterator (const uint16_t text[], int count, SkBidiIterator::Direction dir) override |
std::unique_ptr< SkBidiIterator > | makeBidiIterator (const char text[], int count, SkBidiIterator::Direction dir) override |
std::unique_ptr< SkBreakIterator > | makeBreakIterator (const char locale[], BreakType breakType) override |
std::unique_ptr< SkBreakIterator > | makeBreakIterator (BreakType breakType) override |
bool | getBidiRegions (const char utf8[], int utf8Units, TextDirection dir, std::vector< BidiRegion > *results) override |
bool | getSentences (const char utf8[], int utf8Units, const char *locale, std::vector< SkUnicode::Position > *results) override |
bool | computeCodeUnitFlags (char utf8[], int utf8Units, bool replaceTabs, skia_private::TArray< SkUnicode::CodeUnitFlags, true > *results) override |
bool | computeCodeUnitFlags (char16_t utf16[], int utf16Units, bool replaceTabs, skia_private::TArray< SkUnicode::CodeUnitFlags, true > *results) override |
bool | getUtf8To16Mapping (const char utf8[], int utf8Units, std::unordered_map< Position, Position > *results) |
bool | getWords (const char utf8[], int utf8Units, const char *locale, std::vector< Position > *results) override |
bool | getUtf8Words (const char utf8[], int utf8Units, const char *locale, std::vector< Position > *results) override |
SkString | toUpper (const SkString &str) override |
SkString | toUpper (const SkString &str, const char *locale) override |
void | reorderVisual (const BidiLevel runLevels[], int levelsCount, int32_t logicalFromVisual[]) override |
Public Member Functions inherited from SkUnicodeHardCodedCharProperties | |
bool | isControl (SkUnichar utf8) override |
bool | isWhitespace (SkUnichar utf8) override |
bool | isSpace (SkUnichar utf8) override |
bool | isTabulation (SkUnichar utf8) override |
bool | isHardBreak (SkUnichar utf8) override |
bool | isEmoji (SkUnichar utf8) override |
bool | isEmojiComponent (SkUnichar utf8) override |
bool | isEmojiModifierBase (SkUnichar utf8) override |
bool | isEmojiModifier (SkUnichar utf8) override |
bool | isRegionalIndicator (SkUnichar utf8) override |
bool | isIdeographic (SkUnichar utf8) override |
Public Member Functions inherited from SkUnicode | |
~SkUnicode () override=default | |
virtual SkString | toUpper (const SkString &)=0 |
virtual SkString | toUpper (const SkString &, const char *locale)=0 |
virtual bool | isControl (SkUnichar utf8)=0 |
virtual bool | isWhitespace (SkUnichar utf8)=0 |
virtual bool | isSpace (SkUnichar utf8)=0 |
virtual bool | isTabulation (SkUnichar utf8)=0 |
virtual bool | isHardBreak (SkUnichar utf8)=0 |
virtual bool | isEmoji (SkUnichar utf8)=0 |
virtual bool | isEmojiComponent (SkUnichar utf8)=0 |
virtual bool | isEmojiModifierBase (SkUnichar utf8)=0 |
virtual bool | isEmojiModifier (SkUnichar utf8)=0 |
virtual bool | isRegionalIndicator (SkUnichar utf8)=0 |
virtual bool | isIdeographic (SkUnichar utf8)=0 |
virtual std::unique_ptr< SkBidiIterator > | makeBidiIterator (const uint16_t text[], int count, SkBidiIterator::Direction)=0 |
virtual std::unique_ptr< SkBidiIterator > | makeBidiIterator (const char text[], int count, SkBidiIterator::Direction)=0 |
virtual std::unique_ptr< SkBreakIterator > | makeBreakIterator (const char locale[], BreakType breakType)=0 |
virtual std::unique_ptr< SkBreakIterator > | makeBreakIterator (BreakType type)=0 |
virtual bool | getBidiRegions (const char utf8[], int utf8Units, TextDirection dir, std::vector< BidiRegion > *results)=0 |
virtual bool | getWords (const char utf8[], int utf8Units, const char *locale, std::vector< Position > *results)=0 |
virtual bool | getUtf8Words (const char utf8[], int utf8Units, const char *locale, std::vector< Position > *results)=0 |
virtual bool | getSentences (const char utf8[], int utf8Units, const char *locale, std::vector< Position > *results)=0 |
virtual bool | computeCodeUnitFlags (char utf8[], int utf8Units, bool replaceTabs, skia_private::TArray< SkUnicode::CodeUnitFlags, true > *results)=0 |
virtual bool | computeCodeUnitFlags (char16_t utf16[], int utf16Units, bool replaceTabs, skia_private::TArray< SkUnicode::CodeUnitFlags, true > *results)=0 |
template<typename Callback > | |
void | forEachCodepoint (const char *utf8, int32_t utf8Units, Callback &&callback) |
template<typename Callback > | |
void | forEachCodepoint (const char16_t *utf16, int32_t utf16Units, Callback &&callback) |
template<typename Callback > | |
void | forEachBidiRegion (const uint16_t utf16[], int utf16Units, SkBidiIterator::Direction dir, Callback &&callback) |
template<typename Callback > | |
void | forEachBreak (const char16_t utf16[], int utf16Units, SkUnicode::BreakType type, Callback &&callback) |
virtual void | reorderVisual (const BidiLevel runLevels[], int levelsCount, int32_t logicalFromVisual[])=0 |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Friends | |
class | SkBreakIterator_libgrapheme |
Additional Inherited Members | |
Public Types inherited from SkUnicode | |
enum | CodeUnitFlags { kNoCodeUnitFlag = 0x00 , kPartOfWhiteSpaceBreak = 0x01 , kGraphemeStart = 0x02 , kSoftLineBreakBefore = 0x04 , kHardLineBreakBefore = 0x08 , kPartOfIntraWordBreak = 0x10 , kControl = 0x20 , kTabulation = 0x40 , kGlyphClusterStart = 0x80 , kIdeographic = 0x100 , kEmoji = 0x200 , kWordBreak = 0x400 , kSentenceBreak = 0x800 } |
enum class | TextDirection { kLTR , kRTL } |
enum class | LineBreakType { kSoftLineBreak = 0 , kHardLineBreak = 100 } |
enum class | BreakType { kWords , kGraphemes , kLines , kSentences } |
typedef size_t | Position |
typedef uint8_t | BidiLevel |
Static Public Member Functions inherited from SkUnicode | |
static bool | hasTabulationFlag (SkUnicode::CodeUnitFlags flags) |
static bool | hasHardLineBreakFlag (SkUnicode::CodeUnitFlags flags) |
static bool | hasSoftLineBreakFlag (SkUnicode::CodeUnitFlags flags) |
static bool | hasGraphemeStartFlag (SkUnicode::CodeUnitFlags flags) |
static bool | hasControlFlag (SkUnicode::CodeUnitFlags flags) |
static bool | hasPartOfWhiteSpaceBreakFlag (SkUnicode::CodeUnitFlags flags) |
static bool | extractBidi (const char utf8[], int utf8Units, TextDirection dir, std::vector< BidiRegion > *bidiRegions) |
static SkString | convertUtf16ToUtf8 (const char16_t *utf16, int utf16Units) |
static SkString | convertUtf16ToUtf8 (const std::u16string &utf16) |
static std::u16string | convertUtf8ToUtf16 (const char *utf8, int utf8Units) |
static std::u16string | convertUtf8ToUtf16 (const SkString &utf8) |
template<typename Appender8 , typename Appender16 > | |
static bool | extractUtfConversionMapping (SkSpan< const char > utf8, Appender8 &&appender8, Appender16 &&appender16) |
Definition at line 30 of file SkUnicode_libgrapheme.cpp.
|
inline |
Definition at line 32 of file SkUnicode_libgrapheme.cpp.
|
overridedefault |
|
inlineoverridevirtual |
Implements SkUnicode.
Definition at line 60 of file SkUnicode_libgrapheme.cpp.
|
inlineoverridevirtual |
Implements SkUnicode.
Definition at line 115 of file SkUnicode_libgrapheme.cpp.
|
inlineoverridevirtual |
Implements SkUnicode.
Definition at line 45 of file SkUnicode_libgrapheme.cpp.
|
inlineoverridevirtual |
Implements SkUnicode.
Definition at line 52 of file SkUnicode_libgrapheme.cpp.
|
inline |
Definition at line 121 of file SkUnicode_libgrapheme.cpp.
|
inlineoverridevirtual |
Implements SkUnicode.
Definition at line 159 of file SkUnicode_libgrapheme.cpp.
|
inlineoverridevirtual |
Implements SkUnicode.
Definition at line 143 of file SkUnicode_libgrapheme.cpp.
|
overridevirtual |
Implements SkUnicode.
Definition at line 286 of file SkUnicode_libgrapheme.cpp.
|
overridevirtual |
Implements SkUnicode.
Definition at line 282 of file SkUnicode_libgrapheme.cpp.
|
overridevirtual |
Implements SkUnicode.
Definition at line 295 of file SkUnicode_libgrapheme.cpp.
|
overridevirtual |
Implements SkUnicode.
Definition at line 291 of file SkUnicode_libgrapheme.cpp.
|
inlineoverridevirtual |
Implements SkUnicode.
Definition at line 227 of file SkUnicode_libgrapheme.cpp.
Implements SkUnicode.
Definition at line 217 of file SkUnicode_libgrapheme.cpp.
|
inlineoverridevirtual |
Implements SkUnicode.
Definition at line 221 of file SkUnicode_libgrapheme.cpp.
|
friend |
Definition at line 233 of file SkUnicode_libgrapheme.cpp.