Add xml_escape_text_append and use it
[deliverable/binutils-gdb.git] / gdb / common / xml-utils.h
index c73bf072d5d9a1d45c0b291a9845a074ea233123..3427ab246dc2acdfece5889b0da6fb629f12c58a 100644 (file)
@@ -1,6 +1,6 @@
 /* Shared helper routines for manipulating XML.
 
-   Copyright (C) 2006-2016 Free Software Foundation, Inc.
+   Copyright (C) 2006-2018 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
 #ifndef XML_UTILS_H
 #define XML_UTILS_H
 
-/* Return a malloc allocated string with special characters from TEXT
-   replaced by entity references.  */
+/* Return a string with special characters from TEXT replaced by entity
+   references.  */
 
-extern char *xml_escape_text (const char *text);
+extern std::string xml_escape_text (const char *text);
+
+/* Append TEXT to RESULT, with special characters replaced by entity
+   references.  */
+
+extern void xml_escape_text_append (std::string *result, const char *text);
 
 #endif
This page took 0.026483 seconds and 4 git commands to generate.