Lines Matching full:attribute
35 AttributeItem *getAttributeItem(unsigned Attribute) {
37 if (Contents[i].Tag == Attribute)
42 void setAttributeItem(unsigned Attribute, unsigned Value,
44 // Look for existing attribute item.
45 if (AttributeItem *Item = getAttributeItem(Attribute)) {
53 // Create new attribute item.
54 Contents.push_back({AttributeType::Numeric, Attribute, Value, ""});
57 void setAttributeItem(unsigned Attribute, StringRef Value,
59 // Look for existing attribute item.
60 if (AttributeItem *Item = getAttributeItem(Attribute)) {
68 // Create new attribute item.
69 Contents.push_back({AttributeType::Text, Attribute, 0, std::string(Value)});
72 void setAttributeItems(unsigned Attribute, unsigned IntValue,
74 // Look for existing attribute item.
75 if (AttributeItem *Item = getAttributeItem(Attribute)) {
84 // Create new attribute item.
85 Contents.push_back({AttributeType::NumericAndText, Attribute, IntValue,
89 void emitAttribute(unsigned Attribute, unsigned Value) override;
90 void emitTextAttribute(unsigned Attribute, StringRef String) override;