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

Method appendName

src/pdf/PDFMetadata.cpp:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void PDFAttributeList::appendName(const std::string& owner, const std::string& name,
53 const std::string& value) {
54 if (!attributes) {
55 attributes = MakePDFArray();
56 }
57 auto attrDict = PDFDictionary::Make();
58 attrDict->insertName("O", owner);
59 attrDict->insertName(name.c_str(), value);
60 attributes->appendObject(std::move(attrDict));
61}
62
63void PDFAttributeList::appendFloatArray(const std::string& owner, const std::string& name,
64 const std::vector<float>& value) {

Callers

nothing calls this directly

Calls 5

MakePDFArrayFunction · 0.85
MakeFunction · 0.85
insertNameMethod · 0.80
c_strMethod · 0.80
appendObjectMethod · 0.80

Tested by

no test coverage detected