Flutter Engine
The Flutter Engine
Variables
jbParser Namespace Reference

Variables

static const TagHandler fileHandler
 
static const TagHandler fileSetHandler
 
static const TagHandler nameHandler
 
static const TagHandler nameSetHandler
 
static const TagHandler familyHandler
 
static const TagHandler familySetHandler
 

Variable Documentation

◆ familyHandler

const TagHandler jbParser::familyHandler
static
Initial value:
= {
[](FamilyData* self, const char* tag, const char** attributes) {
self->fCurrentFamily = std::make_unique<FontFamily>(self->fBasePath, self->fIsFallback);
for (size_t i = 0; ATTS_NON_NULL(attributes, i); i += 2) {
const char* value = attributes[i+1];
parse_non_negative_integer(value, &self->fCurrentFamily->fOrder);
}
},
[](FamilyData* self, const char* tag) {
*self->fFamilies.append() = self->fCurrentFamily.release();
},
[](FamilyData* self, const char* tag, const char** attributes) -> const TagHandler* {
size_t len = strlen(tag);
if (MEMEQ("nameset", tag, len)) {
return &nameSetHandler;
} else if (MEMEQ("fileset", tag, len)) {
return &fileSetHandler;
}
return nullptr;
},
nullptr,
}
#define ATTS_NON_NULL(a, i)
#define MEMEQ(c, s, n)
bool parse_non_negative_integer(const char *s, T *value)
uint8_t value
static const TagHandler nameSetHandler
static const TagHandler fileSetHandler

Definition at line 514 of file SkFontMgr_android_parser.cpp.

◆ familySetHandler

const TagHandler jbParser::familySetHandler
static
Initial value:
= {
nullptr,
nullptr,
[](FamilyData* self, const char* tag, const char** attributes) -> const TagHandler* {
size_t len = strlen(tag);
if (MEMEQ("family", tag, len)) {
return &familyHandler;
}
return nullptr;
},
nullptr,
}
static const TagHandler familyHandler

Definition at line 538 of file SkFontMgr_android_parser.cpp.

◆ fileHandler

const TagHandler jbParser::fileHandler
static

Definition at line 414 of file SkFontMgr_android_parser.cpp.

◆ fileSetHandler

const TagHandler jbParser::fileSetHandler
static
Initial value:
= {
nullptr,
nullptr,
[](FamilyData* self, const char* tag, const char** attributes) -> const TagHandler* {
size_t len = strlen(tag);
if (MEMEQ("file", tag, len)) {
return &fileHandler;
}
return nullptr;
},
nullptr,
}
static const TagHandler fileHandler

Definition at line 474 of file SkFontMgr_android_parser.cpp.

◆ nameHandler

const TagHandler jbParser::nameHandler
static
Initial value:
= {
[](FamilyData* self, const char* tag, const char** attributes) {
self->fCurrentFamily->fNames.push_back();
},
nullptr,
nullptr,
[](void* data, const char* s, int len) {
FamilyData* self = static_cast<FamilyData*>(data);
self->fCurrentFamily->fNames.back().append(tolc.lc(), len);
}
}
struct MyStruct s
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

Definition at line 487 of file SkFontMgr_android_parser.cpp.

◆ nameSetHandler

const TagHandler jbParser::nameSetHandler
static
Initial value:
= {
nullptr,
nullptr,
[](FamilyData* self, const char* tag, const char** attributes) -> const TagHandler* {
size_t len = strlen(tag);
if (MEMEQ("name", tag, len)) {
return &nameHandler;
}
return nullptr;
},
nullptr,
}
static const TagHandler nameHandler

Definition at line 501 of file SkFontMgr_android_parser.cpp.