|
Doxygen
|
Portable versions of functions that are platform dependent. More...
#include <cstdint>#include <cstdio>#include <fstream>#include <sys/types.h>#include "containers.h"#include "dstring.h"Go to the source code of this file.
Namespaces | |
| namespace | Portable |
Functions | |
| int | Portable::system (const DString &command, const DString &args, bool commandHasConsole=true) |
| uint32_t | Portable::pid () |
| DString | Portable::getenv (const DString &variable) |
| void | Portable::setenv (const DString &variable, const DString &value) |
| void | Portable::unsetenv (const DString &variable) |
| FILE * | Portable::fopen (const DString &fileName, const DString &mode) |
| int | Portable::fclose (FILE *f) |
| void | Portable::unlink (const DString &fileName) |
| DString | Portable::pathSeparator () |
| DString | Portable::pathListSeparator () |
| const char * | Portable::ghostScriptCommand () |
| const char * | Portable::commandExtension () |
| bool | Portable::fileSystemIsCaseSensitive () |
| FILE * | Portable::popen (const DString &name, const DString &type) |
| int | Portable::pclose (FILE *stream) |
| double | Portable::getSysElapsedTime () |
| bool | Portable::isAbsolutePath (const DString &fileName) |
| void | Portable::correctPath (const StringVector &list) |
| Correct a possible wrong PATH variable. | |
| void | Portable::setShortDir () |
| const char * | Portable::strnstr (const char *haystack, const char *needle, size_t haystack_len) |
| const char * | Portable::devNull () |
| bool | Portable::checkForExecutable (const DString &fileName) |
| size_t | Portable::recodeUtf8StringToW (const DString &inputStr, uint16_t **buf) |
| std::ofstream | Portable::openOutputStream (const DString &name, bool append=false) |
| std::ifstream | Portable::openInputStream (const DString &name, bool binary=false, bool openAtEnd=false) |
| DString | Portable::removeLongPathMarker (const DString &path) |
| void * | portable_iconv_open (const char *tocode, const char *fromcode) |
| size_t | portable_iconv (void *cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft) |
| int | portable_iconv_close (void *cd) |
Portable versions of functions that are platform dependent.
Definition in file portable.h.
| size_t portable_iconv | ( | void * | cd, |
| const char ** | inbuf, | ||
| size_t * | inbytesleft, | ||
| char ** | outbuf, | ||
| size_t * | outbytesleft ) |
| int portable_iconv_close | ( | void * | cd | ) |
| void * portable_iconv_open | ( | const char * | tocode, |
| const char * | fromcode ) |