Home
last modified time | relevance | path

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

/frameworks/base/tools/localize/
DXMLHandler.h17 struct XMLAttribute struct
23 XMLAttribute(); argument
24 XMLAttribute(const XMLAttribute& that);
25 XMLAttribute(string ns, string name, string value);
26 ~XMLAttribute();
28 int Compare(const XMLAttribute& that) const;
30 inline bool operator<(const XMLAttribute& that) const { return Compare(that) < 0; }
31 inline bool operator<=(const XMLAttribute& that) const { return Compare(that) <= 0; }
32 inline bool operator==(const XMLAttribute& that) const { return Compare(that) == 0; }
33 inline bool operator!=(const XMLAttribute& that) const { return Compare(that) != 0; }
[all …]
DXMLHandler.cpp104 XMLNamespaceMap::AddToAttributes(vector<XMLAttribute>* attrs) const in AddToAttributes()
111 XMLAttribute attr; in AddToAttributes()
123 XMLAttribute::XMLAttribute() in XMLAttribute() function in XMLAttribute
127 XMLAttribute::XMLAttribute(const XMLAttribute& that) in XMLAttribute() function in XMLAttribute
134 XMLAttribute::XMLAttribute(string n, string na, string v) in XMLAttribute() function in XMLAttribute
141 XMLAttribute::~XMLAttribute() in ~XMLAttribute()
146 XMLAttribute::Compare(const XMLAttribute& that) const in Compare()
158 XMLAttribute::Find(const vector<XMLAttribute>& list, const string& ns, const string& name, in Find()
163 const XMLAttribute& attr = list[i]; in Find()
174 vector<vector<XMLAttribute>*> attributes;
[all …]
Dxmb.cpp40 vector<XMLAttribute>& attrs = node->EditAttributes(); in rename_id_attribute()
43 XMLAttribute attr = attrs[i]; in rename_id_attribute()
68 node->EditAttributes().push_back(XMLAttribute("", "name", name)); in convert_xliff_to_ph()
85 vector<XMLAttribute> attrs; in resource_to_xmb_msg()
89 attrs.push_back(XMLAttribute("", "name", name)); in resource_to_xmb_msg()
90 attrs.push_back(XMLAttribute("", "desc", strip_newlines(res.comment))); in resource_to_xmb_msg()
91 attrs.push_back(XMLAttribute(XMLNS_XMLNS, "space", "preserve")); in resource_to_xmb_msg()
149 vector<XMLAttribute> attrs; in do_xlb_export()
150 attrs.push_back(XMLAttribute("", "locale", "en")); in do_xlb_export()
DValuesFile.cpp32 const vector<XMLAttribute>& attrs, XMLHandler** next);
57 const vector<XMLAttribute>& attrs, XMLHandler** next) in OnStartElement()
94 const vector<XMLAttribute>& attrs, XMLHandler** next);
114 const vector<XMLAttribute>& attrs, XMLHandler** next) in OnStartElement()
117 string id = XMLAttribute::Find(attrs, "", "name", ""); in OnStartElement()
125 string id = XMLAttribute::Find(attrs, "", "name", ""); in OnStartElement()
217 vector<XMLAttribute> attrs; in ToXMLNode()
225 vector<XMLAttribute> arrayAttrs; in ToXMLNode()
226 arrayAttrs.push_back(XMLAttribute("", "name", it->first)); in ToXMLNode()
245 vector<XMLAttribute> attrs; in ToXMLNode()
[all …]
DXLIFFFile.cpp350 vector<XMLAttribute> attrs; in convert_html_to_xliff()
351 attrs.push_back(XMLAttribute(XLIFF_XMLNS, "ctype", ctype)); in convert_html_to_xliff()
370 vector<XMLAttribute> attrs; in convert_html_to_xliff()
374 attrs.push_back(XMLAttribute(XLIFF_XMLNS, "id", idStr)); in convert_html_to_xliff()
423 vector<XMLAttribute> attrs; in create_string_node()
424 attrs.push_back(XMLAttribute(XMLNS_XMLNS, "space", "preserve")); in create_string_node()
461 vector<XMLAttribute> attrs; in ToXMLNode()
463 attrs.push_back(XMLAttribute(XLIFF_XMLNS, "version", "1.2")); in ToXMLNode()
476 vector<XMLAttribute> fileAttrs; in ToXMLNode()
477 fileAttrs.push_back(XMLAttribute(XLIFF_XMLNS, "datatype", "x-android-res")); in ToXMLNode()
[all …]
DXMLNode.h8 struct XMLAttribute struct
14 static string Find(const vector<XMLAttribute>& list, argument
DXLIFFFile_test.cpp36 vector<XMLAttribute> attrs; in add_html_tag()
47 vector<XMLAttribute> attrs; in create_string_node_test()