4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
10 * Full author contact details are available in file CREDITS.
16 #include "support/types.h"
28 * Escape the given character, if necessary,
29 * to an SGML entity. Returns true
30 * if it was a whitespace character.
32 std::pair<bool, std::string> escapeChar(char c);
34 /// Escape a word instead of a single character
35 std::string escapeString(std::string const & raw);
37 /// replaces illegal chars like ':' or '_' from SGML ID attributes
38 std::string cleanID(std::string const & orig, std::string const & allowed = std::string());
40 /// returns a uniq numeric id
41 std::string const uniqueID(std::string const label);
44 void openTag(std::ostream & os, std::string const & name,
45 std::string const & attribute = std::string());
48 void openTag(Buffer const & buf, std::ostream & os, Paragraph const & par);
51 void closeTag(std::ostream & os, std::string const & name);
54 void closeTag(std::ostream & os, Paragraph const & par);