MagickCore  7.0.7
Convert, Edit, Or Compose Bitmap Images
utility.c File Reference
Include dependency graph for utility.c:

Go to the source code of this file.

Functions

static int IsPathDirectory (const char *)
 
MagickExport MagickBooleanType AcquireUniqueFilename (char *path)
 
MagickExport MagickBooleanType AcquireUniqueSymbolicLink (const char *source, char *destination)
 
MagickExport void AppendImageFormat (const char *format, char *filename)
 
MagickExport unsigned char * Base64Decode (const char *source, size_t *length)
 
MagickExport char * Base64Encode (const unsigned char *blob, const size_t blob_length, size_t *encode_length)
 
MagickPrivate void ChopPathComponents (char *path, const size_t components)
 
MagickPrivate void ExpandFilename (char *path)
 
MagickExport MagickBooleanType ExpandFilenames (int *number_arguments, char ***arguments)
 
MagickPrivate MagickBooleanType GetExecutionPath (char *path, const size_t extent)
 
MagickPrivate ssize_t GetMagickPageSize (void)
 
MagickExport MagickBooleanType GetPathAttributes (const char *path, void *attributes)
 
MagickExport void GetPathComponent (const char *path, PathType type, char *component)
 
MagickPrivate char ** GetPathComponents (const char *path, size_t *number_components)
 
MagickExport MagickBooleanType IsPathAccessible (const char *path)
 
static int FileCompare (const void *x, const void *y)
 
MagickPrivate char ** ListFiles (const char *directory, const char *pattern, size_t *number_entries)
 
MagickExport void MagickDelay (const MagickSizeType milliseconds)
 
MagickExport size_t MultilineCensus (const char *label)
 
MagickPrivate MagickBooleanType ShredFile (const char *path)
 

Variables

static const char Base64 [] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
 

Function Documentation

◆ AcquireUniqueFilename()

MagickExport MagickBooleanType AcquireUniqueFilename ( char *  path)

◆ AcquireUniqueSymbolicLink()

◆ AppendImageFormat()

MagickExport void AppendImageFormat ( const char *  format,
char *  filename 
)

◆ Base64Decode()

MagickExport unsigned char* Base64Decode ( const char *  source,
size_t *  length 
)

◆ Base64Encode()

MagickExport char* Base64Encode ( const unsigned char *  blob,
const size_t  blob_length,
size_t *  encode_length 
)

Definition at line 501 of file utility.c.

References AcquireQuantumMemory(), Base64, GetMagickModule, LogMagickEvent(), and TraceEvent.

Referenced by CanonicalXMLContent().

◆ ChopPathComponents()

MagickPrivate void ChopPathComponents ( char *  path,
const size_t  components 
)

Definition at line 584 of file utility.c.

References GetPathComponent(), and HeadPath.

◆ ExpandFilename()

MagickPrivate void ExpandFilename ( char *  path)

◆ ExpandFilenames()

◆ FileCompare()

static int FileCompare ( const void *  x,
const void *  y 
)
static

Definition at line 1568 of file utility.c.

References LocaleCompare().

Referenced by ListFiles().

◆ GetExecutionPath()

◆ GetMagickPageSize()

MagickPrivate ssize_t GetMagickPageSize ( void  )

Definition at line 1122 of file utility.c.

Referenced by AcquireAlignedMemory(), PersistPixelCache(), and ResourceComponentGenesis().

◆ GetPathAttributes()

MagickExport MagickBooleanType GetPathAttributes ( const char *  path,
void *  attributes 
)

◆ GetPathComponent()

◆ GetPathComponents()

MagickPrivate char** GetPathComponents ( const char *  path,
size_t *  number_components 
)

◆ IsPathAccessible()

◆ IsPathDirectory()

static int IsPathDirectory ( const char *  path)
static

Definition at line 1511 of file utility.c.

References GetPathAttributes(), MagickFalse, and S_ISDIR.

Referenced by ExpandFilenames(), GetPathComponent(), and ListFiles().

◆ ListFiles()

◆ MagickDelay()

MagickExport void MagickDelay ( const MagickSizeType  milliseconds)

Definition at line 1703 of file utility.c.

References lib.

Referenced by InvokeDelegate(), and ValidatePixelCacheMorphology().

◆ MultilineCensus()

MagickExport size_t MultilineCensus ( const char *  label)

Definition at line 1769 of file utility.c.

Referenced by MontageImageList().

◆ ShredFile()

Variable Documentation

◆ Base64

const char Base64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
static

Definition at line 80 of file utility.c.

Referenced by Base64Decode(), and Base64Encode().