Harlequin RIP SDK

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 uint8PSFilenameSplitDeviceAndName (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.
 
uint8PlatformFilenameSkipToLeafname (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...
 
uint8PSFilenameSkipToLeafname (uint8 *ptbzPS)
 Returns a pointer to the leafname part of a PostScript filename. More...
 
uint8PSFilenameSkipDevice (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...
 

Detailed Description

File-related utility functions.

Function Documentation

◆ PSFilenameSplitDeviceAndName()

static uint8* PSFilenameSplitDeviceAndName ( uint8 ptbzPS,
uint8 ptbzDevice,
uint8  dirchar 
)
static

Helper function to split a PostScript filename into device and path sections.

Parameters
ptbzPSThe original PostScript filename.
ptbzDevicePointer to an array (at least LONGESTDEVICENAME characters in length) which will be filled with the device name (minus device delimiters).
dircharReplacement character for PS_DIRECTORY_SEPARATOR in the device part.
Returns
A pointer to the character immediately after the second PS_DEVICE_DELIMITER, or ptbzPS if there is no device name part.