]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/quickbook/src/utils.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / tools / quickbook / src / utils.hpp
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 <string>
14 #include <ostream>
15 #include "string_view.hpp"
16
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);
22
23 // URI escape string
24 std::string escape_uri(quickbook::string_view);
25
26 // URI escape string, leaving characters generally used in URIs.
27 std::string partially_escape_uri(quickbook::string_view);
28
29 // Defined in id_xml.cpp. Just because.
30 std::string linkify(quickbook::string_view source, quickbook::string_view linkend);
31 }}
32
33 #endif // BOOST_SPIRIT_QUICKBOOK_UTILS_HPP
34