MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / init

Method init

src/spellers/AspellInterface.cpp:195–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195bool AspellInterface::init(const wchar_t *path_arg) {
196#ifdef _WIN64
197 constexpr auto cur_bitness = 64;
198#else
199 constexpr auto cur_bitness = 32;
200#endif
201 m_correct_bitness = true;
202 auto lib_bitness = WinApi::library_bitness(path_arg);
203 if (!lib_bitness)
204 return false;
205 if (lib_bitness != cur_bitness) {
206 m_correct_bitness = false;
207 return false;
208 }
209 return (m_aspell_loaded = load_aspell(path_arg));
210}
211
212AspellStatus AspellInterface::get_status() const {
213 if (is_working()) {

Callers 2

SpellerContainerMethod · 0.45

Calls 2

library_bitnessFunction · 0.85
load_aspellFunction · 0.85

Tested by

no test coverage detected