File-related utility functions. More...
#include "skinkit.h"#include "hqmemcpy.h"#include "paths.h"#include "sanitize_path.h"#include "skinmon.h"#include <string.h>Functions | |
| static uint8 * | PSFilenameSplitDeviceAndName (uint8 *ptbzPS, uint8 *ptbzDevice, uint8 dirchar) |
| Helper function to split a PostScript filename into device and path sections. More... | |
| static uint32 | PSDeviceNameToPlatform (uint8 *pPlatform, uint8 **ppPostScript) |
| Converts a PostScript device name to a platform-specific drive or volume name. | |
| uint8 * | PlatformFilenameSkipToLeafname (uint8 *ptbzPlatform) |
| Returns a pointer to the leafname part of a Platform filename. More... | |
| uint32 | PSPrefixAndFilenameToPlatform (uint8 *pPlatform, uint8 *ptbzPSPrefix, uint8 *ptbzPSRelative) |
| Converts a PostScript device name and prefix and a relative filename to a platform dependent filename. More... | |
| uint32 | PlatformPathElementToPS (uint8 *pszOutput, const uint8 **ppszInput) |
| Converts a platform specific path element to a PostScript path element. Input is terminated by the platform directory separator DIRECTORY_SEPARATOR or zero. More... | |
| uint32 | PlatformFilenameRootToPS (uint8 *pOutput, const uint8 **pptbInput) |
| Converts the root part (if any) of a platform specific filename to a PostScript device name. More... | |
| uint32 | PlatformFilenameToPS (uint8 *pszOutput, const uint8 *pszInput) |
| Converts a platform specific filename to its PostScript equivalent. More... | |
| uint8 * | PSFilenameSkipToLeafname (uint8 *ptbzPS) |
| Returns a pointer to the leafname part of a PostScript filename. More... | |
| uint8 * | PSFilenameSkipDevice (uint8 *ptbzPS) |
| Skips the device name part (if any) of a PostScript filename. More... | |
| uint32 | PSFilenameToDevice (uint8 *pszOutput, uint8 *pszInput) |
| Extracts the device name part (if any) of a PostScript filename. More... | |
File-related utility functions.
|
static |
Helper function to split a PostScript filename into device and path sections.
| ptbzPS | The original PostScript filename. |
| ptbzDevice | Pointer to an array (at least LONGESTDEVICENAME characters in length) which will be filled with the device name (minus device delimiters). |
| dirchar | Replacement character for PS_DIRECTORY_SEPARATOR in the device part. |