| 68 | } window; |
| 69 | |
| 70 | bool ProcessSentence(std::wstring& sentence, SentenceInfo sentenceInfo) |
| 71 | { |
| 72 | concurrency::reader_writer_lock::scoped_lock_read readLock(m); |
| 73 | auto action = separateSentences ? sentenceInfo["add sentence"] : sentenceInfo["add text"]; |
| 74 | auto it = links.find(sentenceInfo["text number"]); |
| 75 | for (const auto& linkSet : { it != links.end() ? it->second : empty, sentenceInfo["text number"] > 1 ? universalLinks : empty }) |
| 76 | for (auto link : linkSet) |
| 77 | ((void(*)(int64_t, const wchar_t*))action)(link, sentence.c_str()); |
| 78 | return false; |
| 79 | } |
nothing calls this directly
no outgoing calls
no test coverage detected