 |
Exiv2
|
23 #include "exiv2lib_export.h"
58 EXIV2API std::string
getEnv(
int env_var);
67 EXIV2API std::string
urlencode(
const char* str);
78 EXIV2API
char*
urldecode(
const char* str);
84 EXIV2API
void urldecode(std::string& str);
97 EXIV2API
int base64encode(
const void* data_buf,
size_t dataLength,
char* result,
size_t resultSize);
108 EXIV2API
long base64decode(
const char* in,
char* out,
size_t out_size);
117 #ifdef EXV_UNICODE_PATH
137 EXIV2API
bool fileExists(
const std::string& path,
bool ct =
false);
139 #ifdef EXV_UNICODE_PATH
145 EXIV2API
bool fileExists(
const std::wstring& wpath,
bool ct =
false);
156 #ifdef EXV_UNICODE_PATH
161 EXIV2API std::wstring
pathOfFileUrl(
const std::wstring& wurl);
194 static Uri EXIV2API
Parse(
const std::string& uri);
202 #endif // #ifndef FUTILS_HPP_
std::string Port
URL port.
Definition: futils.hpp:189
EXIV2API bool fileExists(const std::string &path, bool ct=false)
Test if a file exists.
Definition: futils.cpp:271
std::string Path
URL file path.
Definition: futils.hpp:186
EXIV2API std::string strError()
Return a system error message and the error code (errno). See strerror(3).
Definition: futils.cpp:316
EXIV2API char * urldecode(const char *str)
Decode the input url.
Definition: futils.cpp:115
EXIV2API std::string pathOfFileUrl(const std::string &url)
Get the path of file URL.
Definition: futils.cpp:301
EXIV2API std::string getEnv(int env_var)
Return the value of environmental variable.
Definition: futils.cpp:74
const char * ENVARDEF[]
default URL for http exiv2 handler and time-out
Definition: futils.cpp:70
std::string stringFormat(const char *format,...)
format a string in the pattern of sprintf .
Definition: image_int.cpp:32
EXIV2API std::string getProcessPath()
Return the path of the current process.
Definition: futils.cpp:434
std::string Password
URL password.
Definition: futils.hpp:191
EXIV2API Protocol fileProtocol(const std::string &path)
Return the protocol of the path.
Definition: futils.cpp:221
static Uri EXIV2API Parse(const std::string &uri)
Parse the input URL to the protocol, host, path, username, password.
Definition: futils.cpp:355
Protocol
the collection of protocols.
Definition: futils.hpp:38
char from_hex(char ch)
Convert a hex character to its integer value.
Definition: futils.cpp:90
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: asfvideo.hpp:36
EXIV2API long base64decode(const char *in, char *out, size_t out_size)
Decode base64 data and put the resulting string in out.
Definition: futils.cpp:181
const char * ENVARKEY[]
request keys for http exiv2 handler and time-out
Definition: futils.cpp:71
EXIV2API int base64encode(const void *data_buf, size_t dataLength, char *result, size_t resultSize)
Encode in base64 the data in data_buf and put the resulting string in result.
Definition: futils.cpp:152
EnVar
the name of environmental variables.
Definition: futils.hpp:32
std::string Host
URL host.
Definition: futils.hpp:188
static void EXIV2API Decode(Uri &uri)
Decode the url components.
Definition: futils.cpp:346
std::string QueryString
URL query string.
Definition: futils.hpp:185
IPTC dataset and type information.
char to_hex(char code)
Convert an integer value to its hex character.
Definition: futils.cpp:84
std::string Username
URL username.
Definition: futils.hpp:190
std::string Protocol
URL protocol.
Definition: futils.hpp:187
A container for URL components. It also provides the method to parse a URL to get the protocol,...
Definition: futils.hpp:181
EXIV2API std::string urlencode(const char *str)
Encode the input url.
Definition: futils.cpp:94