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

Method appendFloat

src/pdf/PDFMetadata.cpp:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void PDFAttributeList::appendFloat(const std::string& owner, const std::string& name, float value) {
43 if (!attributes) {
44 attributes = MakePDFArray();
45 }
46 auto attrDict = PDFDictionary::Make();
47 attrDict->insertName("O", owner);
48 attrDict->insertScalar(name.c_str(), value);
49 attributes->appendObject(std::move(attrDict));
50}
51
52void PDFAttributeList::appendName(const std::string& owner, const std::string& name,
53 const std::string& value) {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected