MCPcopy Create free account
hub / github.com/OSSystems/EasySplash / find_entries_with_path

Method find_entries_with_path

src/zip_archive.cpp:103–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101
102
103void zip_archive::find_entries_with_path(std::string const &p_path, entry_iter_callback const &p_callback)
104{
105 std::string path = normalize_path(p_path);
106 for (auto const &pair : m_entries)
107 {
108 entry const &p_entry = pair.second;
109 if (p_entry.m_filename.find(path) == 0)
110 {
111 LOG_MSG(trace, "entry filename \"" << p_entry.m_filename << "\" starts with path \"" << path << "\" - invoking callback");
112 p_callback(p_entry);
113 }
114 else
115 LOG_MSG(trace, "entry filename \"" << p_entry.m_filename << "\" does not start with path \"" << path << "\" - skipping");
116 }
117}
118
119
120datablock zip_archive::uncompress_data(entry const &p_entry)

Callers 1

animationMethod · 0.80

Calls 1

normalize_pathFunction · 0.85

Tested by

no test coverage detected