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

Function append_word_to_user_dictionary

src/spellers/HunspellInterface.cpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31namespace {
32void append_word_to_user_dictionary(const wchar_t *dictionary_path, const char *word) {
33 if (!dictionary_path)
34 return;
35
36 auto fp = _wfopen(dictionary_path, L"a");
37 fprintf(fp, "%s\n", word);
38 fclose(fp);
39}
40
41std::vector<char> read_file_data(const wchar_t *file_path) {
42 auto fp = _wfopen(file_path, L"rb");

Callers 1

add_to_dictionaryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected