Compute the contents of nodeArray from this zipfile.
94 int count = zip_get_num_files( z );
95 Set<std::string> alreadyAdded;
96 for (
int i = 0; i < count; ++i) {
98 zip_stat_init( &info );
99 zip_stat_index( z, i, ZIP_FL_NOCASE, &info );
112 size_t start = pathInsideZipfile.size();
113 if ((name.length() > start) &&
isSlash(name[start])) {
118 if (end == std::string::npos) {
120 name = name.substr(start);
121 if (alreadyAdded.insert(name)) {
128 name = name.substr(start, end);
129 if (alreadyAdded.insert(name)) {
142 (void)_pathInsideZipfile;
bool beginsWith(const std::string &test, const std::string &pattern)
Returns true if the test string begins with the pattern string.
Definition: stringutils.cpp:81
Definition: FileSystem.h:90
Array< Entry > nodeArray
Definition: FileSystem.h:112
arena_t NULL
Definition: jemalloc_internal.h:624
bool exists
Definition: FileSystem.h:106
Entry
Definition: boss_headless_horseman.cpp:50
bool isSlash(const unsigned char c)
Definition: stringutils.h:175
#define debugAssert(exp)
Definition: debugAssert.h:160
G3D::int16 z
Definition: Vector3int16.h:46
static std::string removeTrailingSlash(const std::string &f)
Definition: FileSystem.cpp:736
static std::string canonicalize(std::string x)
Definition: FileSystem.cpp:832
size_t findSlash(const std::string &f, size_t start=0)
Definition: stringutils.h:34
Definition: FileSystem.h:89