Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: tools/gn/xml_element_writer.h

Issue 2813213002: Moved/renamed EscapeString from visual_studio_writer to XmlEscape in xml_element_writer. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/gn/visual_studio_writer.cc ('k') | tools/gn/xml_element_writer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef TOOLS_GN_XML_ELEMENT_WRITER_H_ 5 #ifndef TOOLS_GN_XML_ELEMENT_WRITER_H_
6 #define TOOLS_GN_XML_ELEMENT_WRITER_H_ 6 #define TOOLS_GN_XML_ELEMENT_WRITER_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 template <class Writer> 113 template <class Writer>
114 std::unique_ptr<XmlElementWriter> XmlElementWriter::SubElement( 114 std::unique_ptr<XmlElementWriter> XmlElementWriter::SubElement(
115 const std::string& tag, 115 const std::string& tag,
116 const std::string& attribute_name, 116 const std::string& attribute_name,
117 const Writer& attribute_value_writer) { 117 const Writer& attribute_value_writer) {
118 StartContent(true); 118 StartContent(true);
119 return base::WrapUnique(new XmlElementWriter( 119 return base::WrapUnique(new XmlElementWriter(
120 out_, tag, attribute_name, attribute_value_writer, indent_ + 2)); 120 out_, tag, attribute_name, attribute_value_writer, indent_ + 2));
121 } 121 }
122 122
123 std::string XmlEscape(const std::string& value);
124
123 #endif // TOOLS_GN_XML_ELEMENT_WRITER_H_ 125 #endif // TOOLS_GN_XML_ELEMENT_WRITER_H_
OLDNEW
« no previous file with comments | « tools/gn/visual_studio_writer.cc ('k') | tools/gn/xml_element_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698