Lines Matching defs:const

32 const char* parse_map(const TMap& map, const char* str, T* result) {
36 const char* next_tok = strchr(str, ' ');
38 if (const auto len = next_tok ? (next_tok - str) : strlen(str)) {
39 for (const auto& e : map) {
40 const char* key = std::get<0>(e);
51 SkFontStyle FontStyle(const AnimationBuilder* abuilder, const char* style) {
52 static constexpr std::tuple<const char*, SkFontStyle::Weight> gWeightMap[] = {
78 static constexpr std::tuple<const char*, SkFontStyle::Slant> gSlantMap[] = {
102 bool parse_glyph_path(const skjson::ObjectValue* jdata,
103 const AnimationBuilder* abuilder,
127 const skjson::ArrayValue* jshapes = (*jdata)["shapes"];
133 for (const skjson::ObjectValue* jgrp : *jshapes) {
138 const skjson::ArrayValue* jit = (*jgrp)["it"];
143 for (const skjson::ObjectValue* jshape : *jit) {
168 bool AnimationBuilder::FontInfo::matches(const char family[], const char style[]) const {
174 void AnimationBuilder::parseFonts(const skjson::ObjectValue* jfonts,
175 const skjson::ArrayValue* jchars) {}
177 sk_sp<sksg::RenderNode> AnimationBuilder::attachTextLayer(const skjson::ObjectValue& jlayer,
178 LayerInfo*) const {
182 void AnimationBuilder::parseFonts(const skjson::ObjectValue* jfonts,
183 const skjson::ArrayValue* jchars) {
200 const skjson::ArrayValue* jlist = jfonts
201 ? static_cast<const skjson::ArrayValue*>((*jfonts)["list"])
208 for (const skjson::ObjectValue* jfont : *jlist) {
213 const skjson::StringValue* jname = (*jfont)["fName"];
214 const skjson::StringValue* jfamily = (*jfont)["fFamily"];
215 const skjson::StringValue* jstyle = (*jfont)["fStyle"];
216 const skjson::StringValue* jpath = (*jfont)["fPath"];
256 fFonts.foreach([&](const SkString& name, FontInfo* finfo) {
264 const auto& fmgr = fLazyFontMgr.get();
299 bool AnimationBuilder::resolveEmbeddedTypefaces(const skjson::ArrayValue& jchars) {
315 for (const skjson::ObjectValue* jchar : jchars) {
320 const skjson::StringValue* jch = (*jchar)["ch"];
325 const skjson::StringValue* jfamily = (*jchar)["fFamily"];
326 const skjson::StringValue* jstyle = (*jchar)["style"]; // "style", not "fStyle"...
328 const auto* ch_ptr = jch->begin();
329 const auto ch_len = jch->size();
336 const auto uni = SkUTF::NextUTF8(&ch_ptr, ch_ptr + ch_len);
344 const auto glyph_id = SkTo<SkGlyphID>(uni);
346 const auto* family = jfamily->begin();
347 const auto* style = jstyle->begin();
355 fFonts.foreach([&](const SkString& name, FontInfo* finfo) {
373 const auto advance = ParseDefault((*jchar)["w"], 0.0f);
387 fFonts.foreach([&has_unresolved](const SkString&, FontInfo* finfo) {
400 sk_sp<sksg::RenderNode> AnimationBuilder::attachTextLayer(const skjson::ObjectValue& jlayer,
401 LayerInfo*) const {
409 const AnimationBuilder::FontInfo* AnimationBuilder::findFont(const SkString& font_name) const {