Home
last modified time | relevance | path

Searched refs:XmlConst (Results 1 – 7 of 7) sorted by relevance

/external/dynamic_depth/internal/xmpmeta/xml/
Dconst.cc7 const char* XmlConst::EncodingStr() { return "UTF-8"; } in EncodingStr()
10 const char* XmlConst::RdfAbout() { return "about"; } in RdfAbout()
12 const char* XmlConst::RdfDescription() { return "Description"; } in RdfDescription()
14 const char* XmlConst::RdfNodeName() { return "RDF"; } in RdfNodeName()
16 const char* XmlConst::RdfNodeNs() { in RdfNodeNs()
20 const char* XmlConst::RdfPrefix() { return "rdf"; } in RdfPrefix()
22 const char* XmlConst::RdfSeq() { return "Seq"; } in RdfSeq()
24 const char* XmlConst::RdfLi() { return "li"; } in RdfLi()
26 const char* XmlConst::RdfParseType() { return "parseType"; } in RdfParseType()
29 const char* XmlConst::NsAttrName() { return "xmlns"; } in NsAttrName()
[all …]
Dserializer_impl.cc79 if (namespaces_.count(XmlConst::RdfPrefix()) == 0 || in CreateItemSerializer()
80 namespaces_.at(XmlConst::RdfPrefix()) == nullptr) { in CreateItemSerializer()
88 if (strcmp(XmlConst::RdfSeq(), FromXmlChar(node_->name)) != 0) { in CreateItemSerializer()
93 xmlNsPtr rdf_prefix_ns = namespaces_.at(string(XmlConst::RdfPrefix())); in CreateItemSerializer()
94 xmlNodePtr li_node = xmlNewNode(nullptr, ToXmlChar(XmlConst::RdfLi())); in CreateItemSerializer()
107 if (namespaces_.count(XmlConst::RdfPrefix()) == 0 || in CreateListSerializer()
108 namespaces_.at(XmlConst::RdfPrefix()) == nullptr) { in CreateListSerializer()
120 xmlNsPtr rdf_prefix_ns = namespaces_.at(string(XmlConst::RdfPrefix())); in CreateListSerializer()
121 xmlNodePtr seq_node = xmlNewNode(nullptr, ToXmlChar(XmlConst::RdfSeq())); in CreateListSerializer()
137 if (!strcmp(XmlConst::RdfSeq(), FromXmlChar(node_->name))) { in WriteProperty()
[all …]
Dutils.cc13 return DepthFirstSearch(parent, XmlConst::RdfDescription()); in GetFirstDescriptionElement()
18 return DepthFirstSearch(parent, XmlConst::RdfSeq()); in GetFirstSeqElement()
24 return DepthFirstSearch(parent, XmlConst::RdfSeq()); in GetFirstSeqElement()
35 if (strcmp(node_name.c_str(), XmlConst::RdfSeq())) { in GetElementAt()
42 if (strcmp(FromXmlChar(child->name), XmlConst::RdfLi())) { in GetElementAt()
57 if (node == nullptr || strcmp(FromXmlChar(node->name), XmlConst::RdfLi())) { in GetLiNodeContent()
71 XmlConst::EncodingStr(), 1); in XmlDocToString()
Dconst.h8 struct XmlConst { struct
/external/dynamic_depth/internal/xmpmeta/
Dxmp_writer.cc24 using ::dynamic_depth::xmpmeta::xml::XmlConst;
47 xmlNodePtr rdf_node = xmlNewNode(nullptr, ToXmlChar(XmlConst::RdfNodeName())); in CreateXmpRdfNode()
48 xmlNsPtr rdf_ns = xmlNewNs(rdf_node, ToXmlChar(XmlConst::RdfNodeNs()), in CreateXmpRdfNode()
49 ToXmlChar(XmlConst::RdfPrefix())); in CreateXmpRdfNode()
69 xmlDocPtr xmp_meta = xmlNewDoc(ToXmlChar(XmlConst::Version())); in CreateXmpSection()
74 xmlNewNode(nullptr, ToXmlChar(XmlConst::RdfDescription())); in CreateXmpSection()
76 xmlNewNs(description_node, nullptr, ToXmlChar(XmlConst::RdfPrefix())); in CreateXmpSection()
80 xmlSetNsProp(description_node, rdf_node->ns, ToXmlChar(XmlConst::RdfAbout()), in CreateXmpSection()
110 XmlConst::EncodingStr(), kXmlDumpFormat); in SerializeMeta()
/external/dynamic_depth/internal/dynamic_depth/
Dcontainer.cc9 using ::dynamic_depth::xmpmeta::xml::XmlConst;
98 if (!container_serializer->WriteProperty(XmlConst::RdfPrefix(), in Serialize()
99 XmlConst::RdfParseType(), in Serialize()
Ddevice.cc25 using ::dynamic_depth::xmpmeta::xml::XmlConst;
39 DepthFirstSearch(xmlDoc, XmlConst::RdfDescription()); in ParseFields()
266 ns_name_href_map->emplace(XmlConst::RdfPrefix(), XmlConst::RdfNodeNs()); in GetNamespaces()