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

Go to the source code of this file.

Macros

#define CharsPerLine   0x14
 

Functions

MagickExport char * AcquireString (const char *source)
 
static StringInfoAcquireStringInfoContainer ()
 
MagickExport StringInfoAcquireStringInfo (const size_t length)
 
MagickExport StringInfoBlobToStringInfo (const void *blob, const size_t length)
 
MagickExport char * CloneString (char **destination, const char *source)
 
MagickExport StringInfoCloneStringInfo (const StringInfo *string_info)
 
MagickExport int CompareStringInfo (const StringInfo *target, const StringInfo *source)
 
MagickExport size_t ConcatenateMagickString (char *magick_restrict destination, const char *magick_restrict source, const size_t length)
 
MagickExport MagickBooleanType ConcatenateString (char **magick_restrict destination, const char *magick_restrict source)
 
MagickExport void ConcatenateStringInfo (StringInfo *string_info, const StringInfo *source)
 
MagickExport StringInfoConfigureFileToStringInfo (const char *filename)
 
MagickExport char * ConstantString (const char *source)
 
MagickExport size_t CopyMagickString (char *magick_restrict destination, const char *magick_restrict source, const size_t length)
 
MagickExport char * DestroyString (char *string)
 
MagickExport StringInfoDestroyStringInfo (StringInfo *string_info)
 
MagickExport char ** DestroyStringList (char **list)
 
MagickExport char * EscapeString (const char *source, const char escape)
 
MagickExport char * FileToString (const char *filename, const size_t extent, ExceptionInfo *exception)
 
MagickExport StringInfoFileToStringInfo (const char *filename, const size_t extent, ExceptionInfo *exception)
 
MagickExport ssize_t FormatMagickSize (const MagickSizeType size, const MagickBooleanType bi, const char *suffix, const size_t length, char *format)
 
MagickExport char * GetEnvironmentValue (const char *name)
 
MagickExport unsigned char * GetStringInfoDatum (const StringInfo *string_info)
 
MagickExport size_t GetStringInfoLength (const StringInfo *string_info)
 
MagickExport const char * GetStringInfoName (const StringInfo *string_info)
 
MagickExport const char * GetStringInfoPath (const StringInfo *string_info)
 
MagickExport double InterpretSiPrefixValue (const char *magick_restrict string, char **magick_restrict sentinal)
 
MagickExport MagickBooleanType IsStringTrue (const char *value)
 
MagickExport MagickBooleanType IsStringFalse (const char *value)
 
MagickExport void PrintStringInfo (FILE *file, const char *id, const StringInfo *string_info)
 
MagickExport void ResetStringInfo (StringInfo *string_info)
 
MagickExport char * SanitizeString (const char *source)
 
MagickExport void SetStringInfo (StringInfo *string_info, const StringInfo *source)
 
MagickExport void SetStringInfoDatum (StringInfo *string_info, const unsigned char *source)
 
MagickExport void SetStringInfoLength (StringInfo *string_info, const size_t length)
 
MagickExport void SetStringInfoName (StringInfo *string_info, const char *name)
 
MagickExport void SetStringInfoPath (StringInfo *string_info, const char *path)
 
MagickExport StringInfoSplitStringInfo (StringInfo *string_info, const size_t offset)
 
MagickExport char * StringInfoToDigest (const StringInfo *signature)
 
MagickExport char * StringInfoToHexString (const StringInfo *string_info)
 
MagickExport char * StringInfoToString (const StringInfo *string_info)
 
MagickExport char ** StringToArgv (const char *text, int *argc)
 
MagickExport double * StringToArrayOfDoubles (const char *string, ssize_t *count, ExceptionInfo *exception)
 
MagickExport char * StringToken (const char *delimiters, char **string)
 
MagickExport char ** StringToList (const char *text)
 
MagickExport char ** StringToStrings (const char *text, size_t *count)
 
MagickExport StringInfoStringToStringInfo (const char *string)
 
MagickExport void StripString (char *message)
 
MagickExport size_t StripMagickString (char *message)
 
MagickExport MagickBooleanType SubstituteString (char **string, const char *search, const char *replace)
 

Macro Definition Documentation

◆ CharsPerLine

#define CharsPerLine   0x14

Definition at line 64 of file string.c.

Function Documentation

◆ AcquireString()

◆ AcquireStringInfo()

◆ AcquireStringInfoContainer()

static StringInfo * AcquireStringInfoContainer ( )
static

◆ BlobToStringInfo()

MagickExport StringInfo * BlobToStringInfo ( const void *  blob,
const size_t  length 
)

◆ CloneString()

◆ CloneStringInfo()

◆ CompareStringInfo()

MagickExport int CompareStringInfo ( const StringInfo target,
const StringInfo source 
)

◆ ConcatenateMagickString()

◆ ConcatenateString()

◆ ConcatenateStringInfo()

◆ ConfigureFileToStringInfo()

◆ ConstantString()

MagickExport char * ConstantString ( const char *  source)

Definition at line 678 of file string.c.

References AcquireQuantumMemory(), ResourceLimitFatalError, and ThrowFatalException.

Referenced by AcquireCoderCache(), AcquireFxInfoPrivate(), AcquireMagickInfo(), AcquireStreamInfo(), AcquireUniqueFileResource(), AddChildToXMLTree(), AddConfigureKey(), CloneImageArtifacts(), CloneImageOptions(), CloneImageProfiles(), CloneImageProperties(), CloneImageView(), ConfigureFileToStringInfo(), ExpandFilenames(), FileToStringInfo(), GetCoderList(), GetColorList(), GetConfigureList(), GetConfigureOption(), GetConfigurePaths(), GetDelegateList(), GetEnvironmentValue(), GetExceptionMessage(), GetImageRegistry(), GetLocaleList(), GetLogList(), GetMagickHomeURL(), GetMagickList(), GetMagicList(), GetMimeList(), GetMVGMacros(), GetPathTemplate(), GetThresholdMapFile(), GetTypeList(), GetXMLTreeAttributes(), GetXMPProperty(), InterpretDelegateProperties(), InterpretImageProperties(), IsLocaleTreeInstantiated(), IsOptionMember(), LoadColorCache(), LoadConfigureCache(), LoadDelegateCache(), LoadLocaleCache(), LoadLogCache(), LoadMimeCache(), LoadTypeCache(), MagickToMime(), NewImageView(), NewImageViewRegion(), NewXMLTree(), NewXMLTreeTag(), ParseEntities(), ParseInternalDoctype(), ParseOpenTag(), ParseProcessingInstructions(), SetImageArtifact(), SetImageOption(), SetImageProfileInternal(), SetImageProperty(), SetImageRegistry(), SetImageViewDescription(), SetLogFormat(), SetStringInfoName(), SetStringInfoPath(), SetTypeNodePath(), SetXMLTreeAttribute(), SetXMLTreeContent(), ThrowException(), and WriteTo8BimProfile().

◆ CopyMagickString()

MagickExport size_t CopyMagickString ( char *magick_restrict  destination,
const char *magick_restrict  source,
const size_t  length 
)

Definition at line 731 of file string.c.

References magick_restrict.

Referenced by AcquireDistributeCacheInfo(), AcquireImage(), AcquireNextImage(), AcquireTypeCache(), AppendImageFormat(), BlobToImage(), ClipImagePath(), CloneImage(), CloneImageInfo(), CloneImageProperties(), CloneMontageInfo(), ConnectedComponentsImage(), CustomStreamToImage(), DefineImageArtifact(), DefineImageOption(), DefineImageProperty(), DefineImageRegistry(), DrawPrimitive(), ExpandFilename(), ExpandFilenames(), ExternalDelegateCommand(), FormatMagickCaption(), Get8BIMProperty(), GetColorCompliance(), GetColorRange(), GetCommandOptionFlags(), GetConfigureOptions(), GetConfigurePaths(), GetConstantColour(), GetExceptionMessage(), GetExecutionPath(), GetGeometry(), GetHexColour(), GetImageMagick(), GetImageViewException(), GetIPTCProperty(), GetLocaleOptions(), GetMagickProperty(), GetMagickPropertyLetter(), GetMontageInfo(), GetMVGMacros(), GetNumberColors(), GetPageGeometry(), GetPathComponent(), GetPathComponents(), GetPolicyInfo(), GetProperty(), GetToken(), GlobExpression(), IdentifyImage(), ImagesToBlob(), ImagesToCustomStream(), ImageToBlob(), ImageToCustomStream(), InjectImageBlob(), InterpretImageFilename(), InvokeDelegate(), IsTaintImage(), KmeansImage(), ListDelegateInfo(), ListMagickInfo(), ListMagickResourceInfo(), LoadColorCache(), LoadConfigureCache(), LoadDelegateCache(), LoadLocaleCache(), LoadLogCache(), LoadMimeCache(), LoadPolicyCache(), LoadTypeCache(), MagickCoreGenesis(), MontageImageList(), NameOfUserSym(), OpenBlob(), OpenStream(), ParseCommandOption(), ParseEntities(), ParseGeometry(), ParseProcessingInstructions(), PersistPixelCache(), PingBlob(), PingImages(), PreviewImage(), QueryColorCompliance(), QueryColorname(), ReadImage(), ReadImages(), RegisterStaticModule(), RelinquishUniqueFileResource(), RenderMVGContent(), ReplaceSpaceWithNewline(), SetClientName(), SetClientPath(), SetImageInfo(), SetImageInfoFromExtension(), SetImageProfileInternal(), SetImageProperty(), SetLogName(), SetPtrShortExp(), StringToStrings(), ThrowMagickExceptionList(), ThumbnailImage(), TranslateEvent(), TranslateFilename(), TranslateStatementList(), WriteImage(), and WriteImages().

◆ DestroyString()

MagickExport char * DestroyString ( char *  string)

Definition at line 788 of file string.c.

References RelinquishMagickMemory().

Referenced by AcquireDistributeCacheInfo(), AcquireFxInfoPrivate(), AcquireImage(), AcquireKernelInfo(), AcquireMatrixInfo(), AcquirePixelCache(), AcquireStreamPixels(), AcquireTypeCache(), AcquireUniqueSymbolicLink(), AcquireVirtualMemory(), AddPathToXMLTree(), AnnotateImage(), CanonicalXMLContent(), ClipImagePath(), CloneString(), ColorMatrixImage(), ConfigureFileToStringInfo(), ConnectPixelCacheServer(), DestroyCoderNode(), DestroyColorElement(), DestroyConfigureElement(), DestroyDelegate(), DestroyDrawInfo(), DestroyExceptionElement(), DestroyFxInfo(), DestroyImage(), DestroyImageInfo(), DestroyImageView(), DestroyLocaleNode(), DestroyLogElement(), DestroyMagicElement(), DestroyMagickNode(), DestroyMimeElement(), DestroyMontageInfo(), DestroyPolicyElement(), DestroyStreamInfo(), DestroyStringInfo(), DestroyStringList(), DestroyTemporaryResources(), DestroyThresholdMap(), DestroyTypeNode(), DestroyXMLTree(), DestroyXMLTreeAttributes(), DestroyXMLTreeRoot(), DrawClippingMask(), DrawPrimitive(), EncodePredefinedEntities(), ExpandFilename(), ExpandFilenames(), ExternalDelegateCommand(), FormatMagickCaption(), GenerateEntropicChaos(), Get8BIMProperty(), GetConfigurePaths(), GetDelegateCommand(), GetEXIFProperty(), GetHostname(), GetImageBoundingBox(), GetImageInfo(), GetImagePerceptualHash(), GetIPTCProperty(), GetMagickProperty(), GetMaxMemoryRequest(), GetMultilineTypeMetrics(), GetMVGMacros(), GetPathTemplate(), GetProperty(), GetXMLTreePath(), GetXMPProperty(), GlobExpression(), IdentifyImage(), InterpretDelegateProperties(), InterpretImageProperties(), InvokeDelegate(), IsCommandOption(), IsLocaleTreeInstantiated(), IsOptionMember(), ListDelegateInfo(), ListMagickInfo(), LoadColorCache(), LoadConfigureCache(), LoadDelegateCache(), LoadLocaleCache(), LoadLogCache(), LoadMimeCache(), LoadPolicyCache(), MagickCoreGenesis(), MontageImageList(), NewXMLTree(), OpenBlob(), OpenPixelCache(), ParseCharacterContent(), ParseInternalDoctype(), PolaroidImage(), QueryColorCompliance(), ReadImage(), RenderMVGContent(), RenderPostscript(), RenderType(), ReplaceSpaceWithNewline(), ResourceComponentGenesis(), SelectiveBlurImage(), SetImageProperty(), SetLogFormat(), SetMagickPrecision(), SetMagickResourceLimit(), SetMagickSecurityPolicyValue(), SetPolicyValue(), SetTypeNodePath(), SetXMLTreeAttribute(), SetXMLTreeContent(), ShredFile(), SignatureImage(), StringToArgv(), SyncImageSettings(), TracePSClippath(), and TraceSVGClippath().

◆ DestroyStringInfo()

◆ DestroyStringList()

MagickExport char ** DestroyStringList ( char **  list)

Definition at line 853 of file string.c.

References DestroyString(), and RelinquishMagickMemory().

◆ EscapeString()

MagickExport char * EscapeString ( const char *  source,
const char  escape 
)

◆ FileToString()

MagickExport char * FileToString ( const char *  filename,
const size_t  extent,
ExceptionInfo exception 
)

◆ FileToStringInfo()

MagickExport StringInfo * FileToStringInfo ( const char *  filename,
const size_t  extent,
ExceptionInfo exception 
)

◆ FormatMagickSize()

MagickExport ssize_t FormatMagickSize ( const MagickSizeType  size,
const MagickBooleanType  bi,
const char *  suffix,
const size_t  length,
char *  format 
)

◆ GetEnvironmentValue()

◆ GetStringInfoDatum()

◆ GetStringInfoLength()

◆ GetStringInfoName()

MagickExport const char * GetStringInfoName ( const StringInfo string_info)

Definition at line 1236 of file string.c.

References MagickCoreSignature, _StringInfo::name, and _StringInfo::signature.

◆ GetStringInfoPath()

◆ InterpretSiPrefixValue()

MagickExport double InterpretSiPrefixValue ( const char *magick_restrict  string,
char **magick_restrict  sentinal 
)

Definition at line 1299 of file string.c.

References InterpretLocaleValue(), and MagickEpsilon.

Referenced by SiPrefixToDoubleInterval().

◆ IsStringFalse()

MagickExport MagickBooleanType IsStringFalse ( const char *  value)

Definition at line 1429 of file string.c.

References LocaleCompare(), MagickFalse, and MagickTrue.

Referenced by InitializeConstituteInfo(), ProfileImage(), and SetImageGray().

◆ IsStringTrue()

◆ PrintStringInfo()

MagickExport void PrintStringInfo ( FILE *  file,
const char *  id,
const StringInfo string_info 
)

◆ ResetStringInfo()

MagickExport void ResetStringInfo ( StringInfo string_info)

◆ SanitizeString()

MagickExport char * SanitizeString ( const char *  source)

Definition at line 1587 of file string.c.

References AcquireString().

Referenced by ExternalDelegateCommand(), and OpenBlob().

◆ SetStringInfo()

◆ SetStringInfoDatum()

◆ SetStringInfoLength()

◆ SetStringInfoName()

MagickExport void SetStringInfoName ( StringInfo string_info,
const char *  name 
)

◆ SetStringInfoPath()

MagickExport void SetStringInfoPath ( StringInfo string_info,
const char *  path 
)

◆ SplitStringInfo()

◆ StringInfoToDigest()

MagickExport char * StringInfoToDigest ( const StringInfo signature)

◆ StringInfoToHexString()

MagickExport char * StringInfoToHexString ( const StringInfo string_info)

◆ StringInfoToString()

MagickExport char * StringInfoToString ( const StringInfo string_info)

Definition at line 1969 of file string.c.

References AcquireQuantumMemory(), _StringInfo::datum, _StringInfo::length, and MagickPathExtent.

Referenced by GetXMPProperty().

◆ StringToArgv()

◆ StringToArrayOfDoubles()

MagickExport double * StringToArrayOfDoubles ( const char *  string,
ssize_t *  count,
ExceptionInfo exception 
)

◆ StringToken()

MagickExport char * StringToken ( const char *  delimiters,
char **  string 
)

Definition at line 2237 of file string.c.

Referenced by GetImageBoundingBox(), and GetImagePerceptualHash().

◆ StringToList()

MagickExport char ** StringToList ( const char *  text)

◆ StringToStringInfo()

MagickExport StringInfo * StringToStringInfo ( const char *  string)

Definition at line 2480 of file string.c.

References AcquireStringInfo(), and SetStringInfoDatum().

Referenced by GenerateEntropicChaos().

◆ StringToStrings()

MagickExport char ** StringToStrings ( const char *  text,
size_t *  count 
)

◆ StripMagickString()

MagickExport size_t StripMagickString ( char *  message)

Definition at line 2520 of file string.c.

Referenced by ListDelegateInfo(), and StripString().

◆ StripString()

MagickExport void StripString ( char *  message)

Definition at line 2515 of file string.c.

References StripMagickString().

◆ SubstituteString()