OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |