MCPcopy Create free account
hub / github.com/Tencent/tgfx / AddSubDictionary

Function AddSubDictionary

src/pdf/PDFResourceDictionary.cpp:50–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void AddSubDictionary(const std::vector<PDFIndirectReference>& resourceList, PDFResourceType type,
51 PDFDictionary* destination) {
52 if (!resourceList.empty()) {
53 auto resources = PDFDictionary::Make();
54 for (auto ref : resourceList) {
55 resources->insertRef(GetResourceName(type, ref.value), ref);
56 }
57 destination->insertObject(ResourceName(type), std::move(resources));
58 }
59}
60
61} // namespace
62

Callers 1

Calls 6

MakeFunction · 0.85
GetResourceNameFunction · 0.85
ResourceNameFunction · 0.85
insertRefMethod · 0.80
insertObjectMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected