• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*=============================================================================
2     Copyright (c) 2002 2004 2006 Joel de Guzman
3     Copyright (c) 2004 Eric Niebler
4     http://spirit.sourceforge.net/
5 
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
12 
13 #include <ostream>
14 #include <string>
15 #include "string_view.hpp"
16 
17 namespace quickbook
18 {
19     namespace detail
20     {
21         std::string decode_string(quickbook::string_view);
22         std::string encode_string(quickbook::string_view);
23         void print_char(char ch, std::ostream& out);
24         void print_string(quickbook::string_view str, std::ostream& out);
25         std::string make_identifier(quickbook::string_view);
26 
27         // URI escape string
28         std::string escape_uri(quickbook::string_view);
29 
30         // URI escape string, leaving characters generally used in URIs.
31         std::string partially_escape_uri(quickbook::string_view);
32 
33         // Defined in id_xml.cpp. Just because.
34         std::string linkify(
35             quickbook::string_view source, quickbook::string_view linkend);
36     }
37 }
38 
39 #endif // BOOST_SPIRIT_QUICKBOOK_UTILS_HPP
40