|
| SkUnicode_client ()=delete |
|
| SkUnicode_client (SkSpan< char > text, std::vector< SkUnicode::Position > words, std::vector< SkUnicode::Position > graphemeBreaks, std::vector< SkUnicode::LineBreakBefore > lineBreaks) |
|
| ~SkUnicode_client () override=default |
|
void | reset () |
|
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 | getUtf8Words (const char utf8[], int utf8Units, const char *locale, std::vector< Position > *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, TArray< SkUnicode::CodeUnitFlags, true > *results) override |
|
bool | computeCodeUnitFlags (char16_t utf16[], int utf16Units, bool replaceTabs, TArray< SkUnicode::CodeUnitFlags, true > *results) override |
|
bool | getWords (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 |
|
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 |
|
| ~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 |
|
| SkRefCntBase () |
|
virtual | ~SkRefCntBase () |
|
bool | unique () const |
|
void | ref () const |
|
void | unref () const |
|
|
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 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 39 of file SkUnicode_client.cpp.