Go to the source code of this file.
◆ SKICU_FUNC
#define SKICU_FUNC |
( |
|
funcname | ) |
|
Value: template <typename... Args> \
auto sk_##funcname(Args&&...
args) ->
decltype(funcname(std::forward<Args>(
args)...)) { \
} \
const SkICULib * SkGetICULib()
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
Definition at line 55 of file SkUnicode_icu.cpp.
◆ ICUBreakIterator
◆ ICUUText
◆ convertType()
Definition at line 87 of file SkUnicode_icu.cpp.
87 {
93 return UBRK_SENTENCE;
94 default:
95 return UBRK_CHARACTER;
96 }
97}
◆ sk_ubrk_clone()
static SKICU_EMIT_FUNCS UBreakIterator * sk_ubrk_clone |
( |
const UBreakIterator * |
bi, |
|
|
UErrorCode * |
status |
|
) |
| |
|
inlinestatic |
Definition at line 64 of file SkUnicode_icu.cpp.
64 {
66 SkASSERT(icu->f_ubrk_clone_ || icu->f_ubrk_safeClone_);
67 return icu->f_ubrk_clone_
68 ? icu->f_ubrk_clone_(bi, status)
69 : icu->f_ubrk_safeClone_(bi, nullptr, nullptr, status);
70}
◆ SkGetICULib()
Definition at line 49 of file SkUnicode_icu.cpp.
49 {
51 return gICU.get();
52}
std::unique_ptr< SkICULib > SkLoadICULib()
◆ ubrk_close_wrapper()
static void ubrk_close_wrapper |
( |
UBreakIterator * |
bi | ) |
|
|
static |
◆ utext_close_wrapper()
static UText * utext_close_wrapper |
( |
UText * |
ut | ) |
|
|
static |
◆ utf8_next()
static SkUnichar utf8_next |
( |
const char ** |
ptr, |
|
|
const char * |
end |
|
) |
| |
|
inlinestatic |
Replaces invalid utf-8 sequences with REPLACEMENT CHARACTER U+FFFD.
Definition at line 82 of file SkUnicode_icu.cpp.
82 {
84 return val < 0 ? 0xFFFD : val;
85}
SK_SPI SkUnichar NextUTF8(const char **ptr, const char *end)