blob: 95a85fc25dad4f984a5a648eb330b778ec10ec75 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef NEWSBOAT_CHARENCODING_H_
#define NEWSBOAT_CHARENCODING_H_
#include <cstdint>
#include <string>
#include <vector>
#include "3rd-party/optional.hpp"
namespace newsboat {
namespace charencoding {
nonstd::optional<std::string> charset_from_bom(std::vector<std::uint8_t> content);
nonstd::optional<std::string> charset_from_xml_declaration(std::vector<std::uint8_t>
content);
nonstd::optional<std::string> charset_from_content_type_header(std::vector<std::uint8_t>
header);
} // namespace charencoding
} // namespace newsboat
#endif /* NEWSBOAT_CHARENCODING_H_ */
|