1 /*=============================================================================
2 Copyright (c) 2002 2004 2006 Joel de Guzman
3 Copyright (c) 2004 Eric Niebler
4 http://spirit.sourceforge.net/
6 Use, modification and distribution is subject to the Boost Software
7 License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
8 http://www.boost.org/LICENSE_1_0.txt)
9 =============================================================================*/
10 #if !defined(BOOST_SPIRIT_QUICKBOOK_UTILS_HPP)
11 #define BOOST_SPIRIT_QUICKBOOK_UTILS_HPP
15 #include "string_view.hpp"
17 namespace quickbook { namespace detail {
18 std::string encode_string(quickbook::string_view);
19 void print_char(char ch, std::ostream& out);
20 void print_string(quickbook::string_view str, std::ostream& out);
21 std::string make_identifier(quickbook::string_view);
24 std::string escape_uri(quickbook::string_view);
26 // URI escape string, leaving characters generally used in URIs.
27 std::string partially_escape_uri(quickbook::string_view);
29 // Defined in id_xml.cpp. Just because.
30 std::string linkify(quickbook::string_view source, quickbook::string_view linkend);
33 #endif // BOOST_SPIRIT_QUICKBOOK_UTILS_HPP