MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / find

Method find

Telegram/SourceFiles/export/export_api_wrap.cpp:360–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360std::optional<QString> ApiWrap::LoadedFileCache::find(
361 const Location &location) const {
362 if (!location) {
363 return std::nullopt;
364 }
365 const auto key = ComputeLocationKey(location);
366 if (const auto i = _map.find(key); i != end(_map)) {
367 return i->second;
368 }
369 return std::nullopt;
370}
371
372ApiWrap::FileProcess::FileProcess(const QString &path, Output::Stats *stats)
373: file(path, stats) {

Callers 15

mouseStateMethod · 0.45
loadResourceMethod · 0.45
SceneMethod · 0.45
startTextEditingMethod · 0.45
appendChatsSliceMethod · 0.45
getCustomEmojiMethod · 0.45
loadMessageEmojiDoneMethod · 0.45
loadCustomEmojiDoneMethod · 0.45
writePreloadedFileMethod · 0.45
SerializeMessageFunction · 0.45
peerMethod · 0.45
ApplicationColorIndexFunction · 0.45

Calls 1

ComputeLocationKeyFunction · 0.85

Tested by

no test coverage detected