24#ifndef NUSPELL_FINDER_HXX
25#define NUSPELL_FINDER_HXX
28#include "nuspell_export.h"
36#define NUSPELL_MSVC_PRAGMA_WARNING(x) __pragma(warning(x))
38#define NUSPELL_MSVC_PRAGMA_WARNING(x)
40NUSPELL_MSVC_PRAGMA_WARNING(push)
41NUSPELL_MSVC_PRAGMA_WARNING(disable : 4251)
44NUSPELL_BEGIN_INLINE_NAMESPACE
52 const std::filesystem::path& dict_name_stem)
53 -> std::filesystem::path;
56 std::vector<std::filesystem::path>& dict_list) -> void;
58 -> std::vector<std::filesystem::path>;
60NUSPELL_DEPRECATED_EXPORT
63NUSPELL_DEPRECATED_EXPORT
auto
66NUSPELL_DEPRECATED_EXPORT
auto search_dir_for_dicts(
67 const std::string& dir_path,
68 std::vector<std::pair<std::string, std::string>>& dict_list) -> void;
71 const std::vector<std::string>& dir_paths,
72 std::vector<std::pair<std::string, std::string>>& dict_list) -> void;
75 std::vector<std::pair<std::string, std::string>>& dict_list) -> void;
77NUSPELL_DEPRECATED_EXPORT
auto find_dictionary(
78 const std::vector<std::pair<std::string, std::string>>& dict_list,
79 const std::string& dict_name)
80 -> std::vector<std::pair<std::string, std::string>>::const_iterator;
88class NUSPELL_DEPRECATED_EXPORT Dict_Finder_For_CLI_Tool {
89 std::vector<std::string> dir_paths;
90 std::vector<std::pair<std::string, std::string>> dict_multimap;
93 Dict_Finder_For_CLI_Tool();
94 auto& get_dir_paths()
const {
return dir_paths; }
95 auto& get_dictionaries()
const {
return dict_multimap; }
96 auto get_dictionary_path(
const std::string& dict)
const -> std::string;
105class NUSPELL_EXPORT Dict_Finder_For_CLI_Tool_2 {
106 std::vector<std::filesystem::path> dir_paths;
109 Dict_Finder_For_CLI_Tool_2();
110 auto& get_dir_paths()
const {
return dir_paths; }
111 auto get_dictionary_path(
const std::filesystem::path& dict)
const
112 -> std::filesystem::path;
115NUSPELL_END_INLINE_NAMESPACE
117NUSPELL_MSVC_PRAGMA_WARNING(pop)
Library main namespace.
Definition aff_data.cxx:33
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:264
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:167
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:315
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:66
auto search_default_dirs_for_dicts() -> vector< fs_path >
Search the default directories for dictionaries.
Definition finder.cxx:330