OS |
Compiler |
Status |
Coverage |
Linux (Ubuntu 14.04) |
g++ 4.8.4 |
![Build Status](https://camo.githubusercontent.com/593e073a1b97adafe11a92da83ca4a878e4ac5458c80c45b531775631c226e86/68747470733a2f2f7472617669732d63692e6f72672f706965726f626f742f6172636869766570702e7376673f6272616e63683d6d6173746572) |
![codecov](https://camo.githubusercontent.com/9c5ecd55823a5e3c5ca9e39add7843d407a9274447b38bedd9178f9a040858ab/68747470733a2f2f636f6465636f762e696f2f67682f706965726f626f742f6172636869766570702f6272616e63682f6d61737465722f67726170682f62616467652e737667) |
Windows |
MSVC 2015 |
![Build status](https://camo.githubusercontent.com/3ac42067b7462691b74e2ac7a17d76626b4fcddce5b5df1886cddeacb8d66c53/68747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f786834767434637577346c34643668672f6272616e63682f6d61737465723f7376673d74727565) |
|
- One function to open any of the supported archive formats. (see below for example)
- Not restricted to zip and rar extensions.
- Whitelist for linking extensions to formats.
- Accepts files without an extension. If no extension is found, it will scan for known archive signatures.
- Unicode support for paths, filenames, and passwords on Windows.
#include <archivepp/archive.hpp>
int main()
{
archivepp::string path = ARCHIVEPP_STR("~/random/path/archive.zip");
std::error_code error;
auto archive_ptr = archivepp::archive::open(path, error);
if (!archive_ptr || error)
return 1;
// Get contents by name
auto contents = archive_ptr->get_contents(ARCHIVEPP_STR("archive/file"), error);
if (error)
return 1;
// Do something with contents
return 0;
}