73ef4ff3
Hu Chunming
提交三方库
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/*=============================================================================
Copyright (c) 2002 2004 2006 Joel de Guzman
Copyright (c) 2004 Eric Niebler
http://spirit.sourceforge.net/
Use, modification and distribution is subject to the Boost Software
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
=============================================================================*/
#if !defined(BOOST_SPIRIT_QUICKBOOK_UTILS_HPP)
#define BOOST_SPIRIT_QUICKBOOK_UTILS_HPP
#include <ostream>
#include <string>
#include "string_view.hpp"
namespace quickbook
{
namespace detail
{
std::string decode_string(quickbook::string_view);
std::string encode_string(quickbook::string_view);
void print_char(char ch, std::ostream& out);
void print_string(quickbook::string_view str, std::ostream& out);
std::string make_identifier(quickbook::string_view);
// URI escape string
std::string escape_uri(quickbook::string_view);
// URI escape string, leaving characters generally used in URIs.
std::string partially_escape_uri(quickbook::string_view);
// Defined in id_xml.cpp. Just because.
std::string linkify(
quickbook::string_view source, quickbook::string_view linkend);
}
}
#endif // BOOST_SPIRIT_QUICKBOOK_UTILS_HPP
|