MCPcopy Create free account
hub / github.com/OpenBoardView/OpenBoardView / ReverseSearch

Method ReverseSearch

src/openboardview/PDFBridge/PDFBridgeSumatra.cpp:328–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328bool PDFBridgeSumatra::ReverseSearch(const std::string &pdfPath, const std::string &searchStr) {
329 std::string ddeCmd = "[Search(\"" + searchStr + "\")]";
330 auto wDdeCmd = utf8_to_utf16(ddeCmd);
331
332 if (!this->InitializeDDE())
333 return false;
334
335 if (!this->ConnectDDEClient(this->szServerService, utf8_to_utf16(pdfPath)))
336 return false;
337
338 return this->ExecuteDDECommand(wDdeCmd);
339}

Callers 1

mainFunction · 0.80

Calls 4

InitializeDDEMethod · 0.95
ConnectDDEClientMethod · 0.95
ExecuteDDECommandMethod · 0.95
utf8_to_utf16Function · 0.85

Tested by

no test coverage detected