]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/quickbook/src/glob.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / tools / quickbook / src / glob.hpp
CommitLineData
7c673cae
FG
1/*=============================================================================
2 Copyright (c) 2013 Daniel James
3
4 Use, modification and distribution is subject to the Boost Software
5 License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 http://www.boost.org/LICENSE_1_0.txt)
7=============================================================================*/
8
b32b8144 9#include "string_view.hpp"
7c673cae
FG
10#include <stdexcept>
11
12namespace quickbook
13{
14 struct glob_error : std::runtime_error
15 {
16 explicit glob_error(char const* error) :
17 std::runtime_error(error) {}
18 };
19
20 // Is this path a glob? Throws glob_error if glob is invalid.
b32b8144 21 bool check_glob(quickbook::string_view);
7c673cae
FG
22
23 // pre: glob is valid (call check_glob first on user data).
b32b8144
FG
24 bool glob(quickbook::string_view const& pattern,
25 quickbook::string_view const& filename);
7c673cae 26
b32b8144 27 std::size_t find_glob_char(quickbook::string_view,
7c673cae 28 std::size_t start = 0);
b32b8144 29 std::string glob_unescape(quickbook::string_view);
7c673cae 30}