OpenCPN Partial API docs
|
Standard, mostly strings utilities. More...
Functions | |
bool | endswith (const std::string &str, const std::string &suffix) |
bool | startswith (const std::string &str, const std::string &prefix) |
std::vector< std::string > | split (const char *token_string, const std::string &delimiter) |
std::vector< std::string > | split (const std::string &string, const std::string &delimiter) |
bool | exists (const std::string &name) |
void | mkdir (const std::string path) |
std::string | ltrim (std::string s) |
std::string | rtrim (std::string s) |
std::string | trim (std::string s) |
std::string | join (std::vector< std::string > v, char c) |
std::string | tolower (const std::string &input) |
bool | replace (std::string &str, const std::string &from, const std::string &to) |
void | copy_file (const std::string &src_path, const std::string &dest_path) |
std::string | get_basename (const char *path) |
bool | store_metadata (const char *path) |
Store metadata in metadata cache, return success/fail. | |
std::string | lookup_metadata (const char *name=0) |
Get metadata path for a given name defaulting to ocpn-plugins.xml) More... | |
bool | store_tarball (const char *path, const char *basename) |
Store a tarball in tarball cache, return success/fail. | |
std::string | lookup_tarball (const char *basename) |
Get path to tarball in cache for given filename. More... | |
unsigned | cache_file_count () |
Return number of files in cache. | |
unsigned long | cache_size () |
Return total size of files in cache in kbytes. | |
void | cache_clear () |
Remove all files in cache: | |
Standard, mostly strings utilities.
std::string ocpn::lookup_metadata | ( | const char * | name = 0 | ) |
Get metadata path for a given name defaulting to ocpn-plugins.xml)
Definition at line 93 of file plugin_cache.cpp.
std::string ocpn::lookup_tarball | ( | const char * | basename | ) |
Get path to tarball in cache for given filename.
Definition at line 109 of file plugin_cache.cpp.