| 101 | |
| 102 | |
| 103 | void 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 | |
| 120 | datablock zip_archive::uncompress_data(entry const &p_entry) |
no test coverage detected