Orcus
stream.hpp
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This Source Code Form is subject to the terms of the Mozilla Public
4  * License, v. 2.0. If a copy of the MPL was not distributed with this
5  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6  */
7 
8 #ifndef INCLUDED_ORCUS_STREAM_HPP
9 #define INCLUDED_ORCUS_STREAM_HPP
10 
11 #include "env.hpp"
12 #include "orcus/pstring.hpp"
13 
14 namespace orcus {
15 
22 ORCUS_PSR_DLLPUBLIC std::string load_file_content(const char* filepath);
23 
33 ORCUS_PSR_DLLPUBLIC std::string create_parse_error_output(
34  const pstring& strm, std::ptrdiff_t offset);
35 
47 ORCUS_PSR_DLLPUBLIC size_t locate_first_different_char(
48  const pstring& left, const pstring& right);
49 }
50 
51 #endif
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: base64.hpp:15