MagickCore  7.0.7
Convert, Edit, Or Compose Bitmap Images
token-private.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  UTFInfo
 

Macros

#define EILSEQ   ENOENT
 
#define MaxMultibyteCodes   6
 

Functions

MagickPrivate MagickBooleanType IsGlob (const char *)
 
static unsigned char * ConvertLatin1ToUTF8 (const unsigned char *content)
 
static int GetNextUTFCode (const char *text, unsigned int *octets)
 
static int GetUTFCode (const char *text)
 
static unsigned int GetUTFOctets (const char *text)
 
static MagickBooleanType IsUTFSpace (int code)
 
static MagickBooleanType IsUTFValid (int code)
 
static MagickBooleanType IsUTFAscii (int code)
 

Variables

static UTFInfo utf_info [MaxMultibyteCodes]
 

Macro Definition Documentation

◆ EILSEQ

#define EILSEQ   ENOENT

Definition at line 26 of file token-private.h.

Referenced by GetNextUTFCode().

◆ MaxMultibyteCodes

#define MaxMultibyteCodes   6

Definition at line 29 of file token-private.h.

Referenced by GetNextUTFCode().

Function Documentation

◆ ConvertLatin1ToUTF8()

static unsigned char* ConvertLatin1ToUTF8 ( const unsigned char *  content)
inlinestatic

Definition at line 54 of file token-private.h.

References AcquireQuantumMemory().

Referenced by CanonicalXMLContent(), and RenderType().

◆ GetNextUTFCode()

static int GetNextUTFCode ( const char *  text,
unsigned int *  octets 
)
inlinestatic

Definition at line 95 of file token-private.h.

References UTFInfo::code_value, EILSEQ, MaxMultibyteCodes, utf_info, and UTFInfo::utf_mask.

Referenced by GetUTFCode(), and GetUTFOctets().

◆ GetUTFCode()

static int GetUTFCode ( const char *  text)
inlinestatic

Definition at line 140 of file token-private.h.

References GetNextUTFCode().

Referenced by FormatMagickCaption(), GlobExpression(), and RenderType().

◆ GetUTFOctets()

static unsigned int GetUTFOctets ( const char *  text)
inlinestatic

Definition at line 148 of file token-private.h.

References GetNextUTFCode().

Referenced by FormatMagickCaption(), GlobExpression(), and RenderType().

◆ IsGlob()

MagickPrivate MagickBooleanType IsGlob ( const char *  )

Definition at line 619 of file token.c.

References IsPathAccessible(), MagickFalse, and MagickTrue.

Referenced by ExpandFilenames(), and InterpretImageProperties().

◆ IsUTFAscii()

static MagickBooleanType IsUTFAscii ( int  code)
inlinestatic

Definition at line 180 of file token-private.h.

References MagickFalse, and MagickTrue.

◆ IsUTFSpace()

static MagickBooleanType IsUTFSpace ( int  code)
inlinestatic

Definition at line 157 of file token-private.h.

References MagickFalse, and MagickTrue.

Referenced by FormatMagickCaption(), and RenderType().

◆ IsUTFValid()

static MagickBooleanType IsUTFValid ( int  code)
inlinestatic

Definition at line 168 of file token-private.h.

References MagickFalse, and MagickTrue.

Variable Documentation

◆ utf_info

UTFInfo utf_info[MaxMultibyteCodes]
static
Initial value:
=
{
{ 0x80, 0x00, 0x000007f, 0x0000000 },
{ 0xE0, 0xC0, 0x00007ff, 0x0000080 },
{ 0xF0, 0xE0, 0x000ffff, 0x0000800 },
{ 0xF8, 0xF0, 0x01fffff, 0x0010000 },
{ 0xFC, 0xF8, 0x03fffff, 0x0200000 },
{ 0xFE, 0xFC, 0x7ffffff, 0x4000000 },
}

Definition at line 44 of file token-private.h.

Referenced by GetNextUTFCode().