Flutter Engine
The Flutter Engine
Functions
SkUnicodes::ICU Namespace Reference

Functions

SKUNICODE_API sk_sp< SkUnicodeMake ()
 

Function Documentation

◆ Make()

sk_sp< SkUnicode > SkUnicodes::ICU::Make ( )

Definition at line 685 of file SkUnicode_icu.cpp.

685 {
686 // We haven't yet created a way to encode the ICU data for assembly on Windows,
687 // so we use a helper library to load icudtl.dat from the harddrive.
688#if defined(SK_USING_THIRD_PARTY_ICU) && defined(SK_BUILD_FOR_WIN)
689 if (!SkLoadICU()) {
690 static SkOnce once;
691 once([] { SkDEBUGF("SkLoadICU() failed!\n"); });
692 return nullptr;
693 }
694#endif
695 if (SkGetICULib()) {
696 return sk_make_sp<SkUnicode_icu>();
697 }
698 return nullptr;
699}
#define SkDEBUGF(...)
Definition: SkDebug.h:24
const SkICULib * SkGetICULib()
static bool SkLoadICU()
Definition: SkLoadICU.h:13
Definition: SkOnce.h:22