13 #ifndef G3D_fileutils_h
14 #define G3D_fileutils_h
32 (
const std::string& filename);
41 const std::string& filename,
42 const std::string& str,
64 (
const std::string& filename,
65 std::string& outZipfile,
66 std::string& outInternalFile);
95 const std::string& filename,
97 Array<std::string>& path,
111 std::string
filenameExt(
const std::string& filename);
121 std::string
generateFilenameBase(
const std::string& prefix =
"",
const std::string& suffix =
"");
134 std::string
pathConcat(
const std::string& dirname,
const std::string& file);
std::string filenameExt(const std::string &filename)
Definition: fileutils.cpp:859
std::string readWholeFile(const std::string &filename)
Definition: fileutils.cpp:101
std::string filenamePath(const std::string &filename)
Definition: fileutils.cpp:869
bool filenameContainsWildcards(const std::string &filename)
Definition: fileutils.cpp:921
void writeWholeFile(const std::string &filename, const std::string &str, bool flush=true)
Definition: fileutils.cpp:207
std::string filenameBase(const std::string &filename)
Definition: fileutils.cpp:848
std::string generateFilenameBase(const std::string &prefix="", const std::string &suffix="")
Definition: fileutils.cpp:411
std::string pathConcat(const std::string &dirname, const std::string &file)
Definition: fileutils.cpp:47
std::string filenameBaseExt(const std::string &filename)
Definition: fileutils.cpp:825
bool zipfileExists(const std::string &filename, std::string &outZipfile, std::string &outInternalFile)
Definition: fileutils.cpp:335
void parseFilename(const std::string &filename, std::string &drive, Array< std::string > &path, std::string &base, std::string &ext)
Definition: fileutils.cpp:457