MCPcopy Create free account
hub / github.com/Artikash/Textractor / ProcessSentence

Function ProcessSentence

extensions/threadlinker.cpp:70–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68} window;
69
70bool 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected