Go to the source code of this file.
Namespaces | |
| namespace | cinder |
Functions | |
| std::string | cinder::expandPath (const std::string &path) |
| Returns a canonical version of path by expanding a "~" and symlinks on the Mac "..", "." and "//". | |
| std::string | cinder::getHomeDirectory () |
| Returns a path to the user's home directory. | |
| std::string | cinder::getDocumentsDirectory () |
| Returns a path to the user's documents directory. | |
| std::string | cinder::getPathDirectory (const std::string &path) |
| Returns the directory portion of file path path, the last component of which must be a file name or a terminating path separator. | |
| std::string | cinder::getPathFileName (const std::string &path) |
| Returns the file name portion of file path path. For example "C:\Images\Beyonce.jpg" returns "Beyonce.jpg". | |
| std::string | cinder::getPathExtension (const std::string &path) |
| Returns the file extension of the file located at path. | |
| bool | cinder::createDirectories (const std::string &path, bool createParents=true) |
Creates a directory at path and optionally creates any missing parent directories when createParents is true. Returns true upon success. | |
| std::wstring | cinder::toUtf16 (const std::string &utf8) |
| Returns a utf-16 encoded std::wstring by converting the utf-8 encoded string utf8. | |
| std::string | cinder::toUtf8 (const std::wstring &utf16) |
| Returns a utf-8 encoded std::string by converting the utf-16 encoded string utf16. | |
| void | cinder::sleep (float milliseconds) |
| Suspends the execution of the current thread until milliseconds have passed. Supports sub-millisecond precision only on Mac OS X. | |
| char | cinder::getPathSeparator () |
Returns the path separator for the host operating system's file system, '\' on Windows and '/' on Mac OS. | |
| template<typename T > | |
| std::string | cinder::toString (const T &t) |
| template<typename T > | |
| T | cinder::fromString (const std::string &s) |
| std::vector< std::string > | cinder::stackTrace () |
Returns a stack trace (aka backtrace) where stackTrace()[0] == caller, stackTrace()[1] == caller's parent, etc. | |
| int8_t | cinder::swapEndian (int8_t val) |
| uint8_t | cinder::swapEndian (uint8_t val) |
| int16_t | cinder::swapEndian (int16_t val) |
| uint16_t | cinder::swapEndian (uint16_t val) |
| int32_t | cinder::swapEndian (int32_t val) |
| uint32_t | cinder::swapEndian (uint32_t val) |
| float | cinder::swapEndian (float val) |
| double | cinder::swapEndian (double val) |
| void | cinder::swapEndianBlock (uint16_t *blockPtr, size_t blockSizeInBytes) |
| void | cinder::swapEndianBlock (float *blockPtr, size_t blockSizeInBytes) |