Flutter Engine
The Flutter Engine
Classes | Macros | Functions
SkUnicode_icupriv.h File Reference
#include <unicode/ubidi.h>
#include <unicode/ubrk.h>
#include <unicode/uchar.h>
#include <unicode/uloc.h>
#include <unicode/uscript.h>
#include <unicode/ustring.h>
#include <unicode/utext.h>
#include <unicode/utypes.h>
#include <cstdint>
#include <memory>

Go to the source code of this file.

Classes

struct  SkICULib
 

Macros

#define SKICU_EMIT_FUNCS
 
#define SKICU_FUNC(funcname)   decltype(funcname)* f_##funcname;
 

Functions

std::unique_ptr< SkICULibSkLoadICULib ()
 
const SkICULibSkGetICULib ()
 

Macro Definition Documentation

◆ SKICU_EMIT_FUNCS

#define SKICU_EMIT_FUNCS
Value:
SKICU_FUNC(u_errorName) \
SKICU_FUNC(u_hasBinaryProperty) \
SKICU_FUNC(u_getIntPropertyValue) \
SKICU_FUNC(u_iscntrl) \
SKICU_FUNC(u_isspace) \
SKICU_FUNC(u_isWhitespace) \
SKICU_FUNC(u_strToUpper) \
SKICU_FUNC(ubidi_close) \
SKICU_FUNC(ubidi_getDirection) \
SKICU_FUNC(ubidi_getLength) \
SKICU_FUNC(ubidi_getLevelAt) \
SKICU_FUNC(ubidi_openSized) \
SKICU_FUNC(ubidi_reorderVisual) \
SKICU_FUNC(ubidi_setPara) \
SKICU_FUNC(ubrk_close) \
SKICU_FUNC(ubrk_current) \
SKICU_FUNC(ubrk_first) \
SKICU_FUNC(ubrk_following) \
SKICU_FUNC(ubrk_getRuleStatus) \
SKICU_FUNC(ubrk_next) \
SKICU_FUNC(ubrk_open) \
SKICU_FUNC(ubrk_preceding) \
SKICU_FUNC(ubrk_setText) \
SKICU_FUNC(ubrk_setUText) \
SKICU_FUNC(uloc_forLanguageTag) \
SKICU_FUNC(uloc_getDefault) \
SKICU_FUNC(uscript_getScript) \
SKICU_FUNC(utext_close) \
SKICU_FUNC(utext_openUChars) \
SKICU_FUNC(utext_openUTF8) \
#define SKICU_FUNC(funcname)

Definition at line 21 of file SkUnicode_icupriv.h.

◆ SKICU_FUNC

#define SKICU_FUNC (   funcname)    decltype(funcname)* f_##funcname;

Definition at line 53 of file SkUnicode_icupriv.h.

Function Documentation

◆ SkGetICULib()

const SkICULib * SkGetICULib ( )

Definition at line 49 of file SkUnicode_icu.cpp.

49 {
50 static const auto gICU = SkLoadICULib();
51 return gICU.get();
52}
std::unique_ptr< SkICULib > SkLoadICULib()

◆ SkLoadICULib()

std::unique_ptr< SkICULib > SkLoadICULib ( )

Definition at line 59 of file SkUnicode_icu_builtin.cpp.

59 {
60 return std::make_unique<SkICULib>(SkICULib{
62 &SkUbrkClone<const UBreakIterator*>::clone,
63 nullptr,
64 &SkUbrkGetLocaleByType<const UBreakIterator*>::getLocaleByType,
65 });
66}
#define SKICU_EMIT_FUNCS