24#ifndef NUSPELL_FINDER_HXX
25#define NUSPELL_FINDER_HXX
27#include "nuspell_export.h"
35#define NUSPELL_MSVC_PRAGMA_WARNING(x) __pragma(warning(x))
37#define NUSPELL_MSVC_PRAGMA_WARNING(x)
39NUSPELL_MSVC_PRAGMA_WARNING(push)
40NUSPELL_MSVC_PRAGMA_WARNING(disable : 4251)
51 const std::filesystem::path& dict_name_stem)
52 -> std::filesystem::path;
55 std::vector<std::filesystem::path>& dict_list) -> void;
57 -> std::vector<std::filesystem::path>;
59NUSPELL_DEPRECATED_EXPORT
62NUSPELL_DEPRECATED_EXPORT
auto
65NUSPELL_DEPRECATED_EXPORT
auto search_dir_for_dicts(
66 const std::string& dir_path,
67 std::vector<std::pair<std::string, std::string>>& dict_list) -> void;
70 const std::vector<std::string>& dir_paths,
71 std::vector<std::pair<std::string, std::string>>& dict_list) -> void;
74 std::vector<std::pair<std::string, std::string>>& dict_list) -> void;
76NUSPELL_DEPRECATED_EXPORT
auto find_dictionary(
77 const std::vector<std::pair<std::string, std::string>>& dict_list,
78 const std::string& dict_name)
79 -> std::vector<std::pair<std::string, std::string>>::const_iterator;
87 std::vector<std::string> dir_paths;
88 std::vector<std::pair<std::string, std::string>> dict_multimap;
92 auto& get_dir_paths()
const {
return dir_paths; }
93 auto& get_dictionaries()
const {
return dict_multimap; }
94 auto get_dictionary_path(
const std::string& dict)
const -> std::string;
103 using fs_path = std::filesystem::path;
104 std::vector<fs_path> dir_paths;
108 auto& get_dir_paths()
const {
return dir_paths; }
109 auto get_dictionary_path(
const fs_path& dict)
const -> fs_path;
114NUSPELL_MSVC_PRAGMA_WARNING(pop)
auto append_libreoffice_dir_paths(vector< fs::path > &paths) -> void
Append the paths of the LibreOffice's directories to be searched for dictionaries.
Definition: finder.cxx:164
auto search_default_dirs_for_dicts() -> vector< fs::path >
Search the default directories for dictionaries.
Definition: finder.cxx:327
auto append_default_dir_paths(vector< fs::path > &paths) -> void
Append the paths of the default directories to be searched for dictionaries.
Definition: finder.cxx:63
auto search_dirs_for_dicts(const vector< fs::path > &dir_paths, vector< fs::path > &dict_list) -> void
Search the directories for dictionaries.
Definition: finder.cxx:312
auto search_dirs_for_one_dict(const vector< fs::path > &dir_paths, const fs::path &dict_name_stem) -> fs::path
Serach the directories for only one dictionary.
Definition: finder.cxx:261
Library main namespace.
Definition: aff_data.cxx:33