1 #ifndef BIBPARSER_PARSER_HPP
2 #define BIBPARSER_PARSER_HPP
7 #include <boost/filesystem.hpp>
25 const std::optional<boost::filesystem::path> &ruleFilePath,
26 std::vector<std::string> targetStyles,
27 const bool allowAll =
false
31 std::optional<std::stringstream> ruleFileContents,
32 std::vector<std::string> targetStyle,
33 const bool allowAll =
false
36 [[nodiscard]]
auto generate(
37 const std::vector<boost::filesystem::path> &inputPaths,
38 const std::optional<std::string> &sorting
39 )
const -> std::vector<BibElement>;
41 [[nodiscard]]
auto generate(
42 const boost::filesystem::path &inputPath,
43 const std::optional<std::string> &sorting
44 )
const -> std::vector<BibElement>;
46 [[nodiscard]]
auto generate(
47 std::string_view inputFileContent,
48 const std::optional<std::string> &sorting,
49 const std::string &filename
50 )
const -> std::vector<BibElement>;
54 static auto elementsOf(
55 std::string_view input,
56 const std::string &filename
57 ) -> std::vector<BibElement>;
59 static auto sortElements(
60 std::vector<BibElement> &elements,
61 const std::string &sorting
64 static auto filterElements(
65 const std::vector<BibElement> &elements,
66 const std::vector<StyleProperties> &props
67 ) noexcept -> std::vector<BibElement>;