Nuspell
spellchecker
Todo List
Member nuspell::v4::search_dir_for_dicts (const string &dir_path, vector< pair< string, string >> &dict_list) -> void
At some point this API should be made to be more strongly typed. Instead of using that pair of strings to represent the dictionary files, a new class should be created with three public functions, getters, that would return the name, the path to the .aff file (with filename extension to avoid confusions) and the path to the .dic file. The C++ 17 std::filesystem::path should probably be used. It is unspecified to the public what this class holds privately, but it should probably hold only one path to the aff file. For the directory paths, it is simple, just use the type std::filesystem::path. When this API is created, the same function names should be used, added as overloads. The old API should be marked as deprecated. This should be done when we start requiring GCC 9 which supports C++ 17 filesystem out of the box. GCC 8 has this too, but it is somewhat experimental and requires manually linking to additional static library.