File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -77,12 +77,20 @@ optionalt<std::string> jar_filet::get_entry(const std::string &name)
77
77
}
78
78
}
79
79
80
+ // / Wrapper for `std::isspace` from `cctype`
81
+ // / \param ch: the character to check
82
+ // / \return true if the parameter is considered to be a space in the current
83
+ // / locale, else false
80
84
static bool is_space (const char ch)
81
85
{
82
86
return std::isspace (ch) != 0 ;
83
87
}
84
88
85
89
// / Remove leading and trailing whitespace characters from string
90
+ // / \param begin: iterator to start search in string
91
+ // / \param end: iterator to end search in string
92
+ // / \return string truncated from begin to end and all whitespace removed at the
93
+ // / begin and end
86
94
static std::string trim (
87
95
const std::string::const_iterator begin,
88
96
const std::string::const_iterator end)
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ Author: Diffblue Ltd
18
18
19
19
#include " mz_zip_archive.h"
20
20
21
- // / Class representing a .jar archive
21
+ // / Class representing a .jar archive uses miniz to decompress and index
22
+ // / archive.
22
23
class jar_filet final
23
24
{
24
25
public:
@@ -44,7 +45,8 @@ class jar_filet final
44
45
// / \param filename Name of the file in the archive
45
46
optionalt<std::string> get_entry (const std::string &filename);
46
47
47
- // / Get contents of the Manifest file in the jar archive
48
+ // / Get contents of the Manifest file in the jar archive as a key-value map
49
+ // / (both as strings)
48
50
std::unordered_map<std::string, std::string> get_manifest ();
49
51
50
52
// / Get list of filenames in the archive
You can’t perform that action at this time.
0 commit comments