string.c File Reference

#include "magick/studio.h"
#include "magick/blob.h"
#include "magick/blob-private.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/list.h"
#include "magick/log.h"
#include "magick/memory_.h"
#include "magick/property.h"
#include "magick/resource_.h"
#include "magick/signature-private.h"
#include "magick/string_.h"
Include dependency graph for string.c:

Go to the source code of this file.

Functions

MagickExport char * AcquireString (const char *source)
MagickExport StringInfoAcquireStringInfo (const size_t length)
MagickExport char * CloneString (char **destination, const char *source)
MagickExport StringInfoCloneStringInfo (const StringInfo *string_info)
static size_t MagickMin (const size_t x, const size_t y)
MagickExport int CompareStringInfo (const StringInfo *target, const StringInfo *source)
MagickExport size_t ConcatenateMagickString (char *destination, const char *source, const size_t length)
MagickExport MagickBooleanType ConcatenateString (char **destination, const char *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 *destination, const char *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 long FormatMagickSize (const MagickSizeType size, const MagickBooleanType bi, char *format)
MagickExport long FormatMagickStringList (char *string, const size_t length, const char *format, va_list operands)
MagickExport long FormatMagickString (char *string, const size_t length, const char *format,...)
MagickExport long FormatMagickTime (const time_t time, const size_t length, char *timestamp)
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 * GetStringInfoPath (const StringInfo *string_info)
MagickExport int LocaleCompare (const char *p, const char *q)
MagickExport void LocaleLower (char *string)
MagickExport int LocaleNCompare (const char *p, const char *q, const size_t length)
MagickExport void LocaleUpper (char *string)
MagickExport void PrintStringInfo (FILE *file, const char *id, const StringInfo *string_info)
MagickExport void ResetStringInfo (StringInfo *string_info)
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 SetStringInfoPath (StringInfo *string_info, const char *path)
MagickExport StringInfoSplitStringInfo (StringInfo *string_info, const size_t offset)
MagickExport char * StringInfoToString (const StringInfo *string_info)
MagickExport char ** StringToArgv (const char *text, int *argc)
MagickExport char * StringInfoToHexString (const StringInfo *string_info)
MagickExport char * StringToken (const char *delimiters, char **string)
MagickExport char ** StringToList (const char *text)
MagickExport StringInfoStringToStringInfo (const char *string)
MagickExport void StripString (char *message)
MagickExport MagickBooleanType SubstituteString (char **string, const char *search, const char *replace)

Function Documentation

MagickExport char* AcquireString ( const char *  source  ) 
MagickExport StringInfo* AcquireStringInfo ( const size_t  length  ) 
MagickExport char* CloneString ( char **  destination,
const char *  source 
)
MagickExport StringInfo* CloneStringInfo ( const StringInfo string_info  ) 
MagickExport int CompareStringInfo ( const StringInfo target,
const StringInfo source 
)
MagickExport size_t ConcatenateMagickString ( char *  destination,
const char *  source,
const size_t  length 
)
MagickExport MagickBooleanType ConcatenateString ( char **  destination,
const char *  source 
)
MagickExport void ConcatenateStringInfo ( StringInfo string_info,
const StringInfo source 
)
MagickExport StringInfo* ConfigureFileToStringInfo ( const char *  filename  ) 
MagickExport char* ConstantString ( const char *  source  ) 

Definition at line 622 of file string.c.

References AcquireQuantumMemory(), CopyMagickString(), ResourceLimitFatalError, and ThrowFatalException.

Referenced by AcquireFxInfo(), AcquireFxThreadSet(), AcquireStreamInfo(), AcquireUniqueFileResource(), AddChildToXMLTree(), CloneImageArtifacts(), CloneImageOptions(), CloneImageProfiles(), CloneImageProperties(), ExpandFilenames(), FxChannelStatistics(), FxEvaluateSubexpression(), FxGetSymbol(), GenerateEntropicChaos(), GetCoderList(), GetColorList(), GetConfigureList(), GetConfigureOption(), GetConfigurePaths(), GetDelegateList(), GetEnvironmentValue(), GetExceptionMessage(), GetImageAttribute(), GetImageRegistry(), GetLocaleList(), GetLogList(), GetMagickHomeURL(), GetMagickList(), GetMagickProperty(), GetMagicList(), GetMimeList(), GetPathTemplate(), GetPolicyList(), GetPolicyValue(), GetThresholdMapFile(), GetTypeList(), GetXMLTreeAttributes(), GetXMPProperty(), InitializeLocaleList(), LoadCoderList(), LoadCoderLists(), LoadColorList(), LoadConfigureList(), LoadDelegateList(), LoadFontConfigFonts(), LoadLocaleList(), LoadLogList(), LoadLogLists(), LoadMagicList(), LoadMimeList(), LoadPolicyList(), LoadTypeList(), MagickToMime(), NewXMLTree(), NewXMLTreeTag(), ParseEntities(), ParseInternalDoctype(), ParseOpenTag(), ParseProcessingInstructions(), ProfileImage(), SetImageArtifact(), SetImageOption(), SetImageProfile(), SetImageProperty(), SetImageRegistry(), SetLogFormat(), SetMagickInfo(), SetXMLTreeAttribute(), SetXMLTreeContent(), ThrowException(), XGetResourceInfo(), XMakeImageLSBFirst(), and XMakeImageMSBFirst().

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

Definition at line 674 of file string.c.

Referenced by AcquireImage(), AcquireNextImage(), AcquireString(), AllocateString(), AppendImageFormat(), BlobToImage(), ClipImagePath(), CloneImage(), CloneImageInfo(), CloneImageProperties(), CloneMontageInfo(), CloneString(), ConfigureFileToStringInfo(), ConstantString(), DefineImageArtifact(), DefineImageOption(), DefineImageProperty(), DefineImageRegistry(), DrawImage(), DrawPrimitive(), ExpandFilename(), ExpandFilenames(), FileToStringInfo(), FontToList(), FormatMagickCaption(), FxEvaluateSubexpression(), FxGetSymbol(), Get8BIMProperty(), GetColorInfo(), GetConfigureBlob(), GetConfigureOptions(), GetConfigurePaths(), GetExceptionMessage(), GetExecutionPath(), GetEXIFProperty(), GetGeometry(), GetImageMagick(), GetImageProfile(), GetIPTCProperty(), GetLocaleOptions(), GetMagickProperty(), GetMagickToken(), GetMontageInfo(), GetNumberColors(), GetPageGeometry(), GetPathComponent(), GetPathComponents(), GetPathTemplate(), GetPolicyInfo(), GlobExpression(), IdentifyImage(), ImagesToBlob(), ImageToBlob(), InjectImageBlob(), InterpretImageFilename(), InterpretImageProperties(), InvokeDelegate(), IsTaintImage(), ListDelegateInfo(), ListMagickInfo(), ListMagickResourceInfo(), LoadCoderList(), LoadColorList(), LoadConfigureList(), LoadDelegateList(), LoadFontConfigFonts(), LoadLocaleList(), LoadLogList(), LoadMagicList(), LoadMagicLists(), LoadMimeList(), LoadPolicyList(), LoadTypeList(), LoadTypeLists(), MagickCoreGenesis(), MontageImageList(), OpenBlob(), OpenStream(), ParseEntities(), ParseGeometry(), ParseMagickOption(), ParseProcessingInstructions(), PersistPixelCache(), PingImages(), PreviewImage(), QueryMagickColor(), QueryMagickColorname(), ReadImage(), ReadImages(), RelinquishUniqueFileResource(), SetClientName(), SetClientPath(), SetImageInfo(), SetImageProfile(), SetLogName(), SetStringInfoPath(), StringInfoToString(), StringToArgv(), StringToList(), ThrowMagickExceptionList(), ThumbnailImage(), TranslateEvent(), TranslateFilename(), WriteImage(), WriteImages(), XColorBrowserWidget(), XConfirmWidget(), XDialogWidget(), XEditText(), XFileBrowserWidget(), XFontBrowserWidget(), XImportImage(), XListBrowserWidget(), XMakeImageLSBFirst(), XMakeImageMSBFirst(), XMakeWindow(), XMenuWidget(), XNoticeWidget(), XPreferencesWidget(), XTextViewWidget(), and XWarning().

MagickExport char* DestroyString ( char *  string  ) 

Definition at line 742 of file string.c.

References RelinquishMagickMemory().

Referenced by AcquireFxThreadSet(), AcquireImage(), AddPathToXMLTree(), AnnotateImage(), BlurImageChannel(), CanonicalXMLContent(), ClipImagePath(), CloneString(), ConfigureFileToStringInfo(), ConvolveImageChannel(), DestroyAttribute(), DestroyCoderNode(), DestroyColorElement(), DestroyConfigureElement(), DestroyDelegate(), DestroyDrawInfo(), DestroyExceptionElement(), DestroyFxInfo(), DestroyImage(), DestroyImageInfo(), DestroyLocaleNode(), DestroyLogElement(), DestroyMagicElement(), DestroyMagickNode(), DestroyMimeElement(), DestroyMontageInfo(), DestroyPolicyElement(), DestroyStreamInfo(), DestroyStringList(), DestroyThresholdMap(), DestroyTypeNode(), DestroyXMLTree(), DestroyXMLTreeAttributes(), DrawImage(), EncodePredefinedEntities(), ExpandFilename(), ExpandFilenames(), FilterImageChannel(), FormatMagickCaption(), GenerateEntropicChaos(), Get8BIMProperty(), GetConfigureBlob(), GetConfigureOptions(), GetConfigurePaths(), GetDelegateCommand(), GetEXIFProperty(), GetIPTCProperty(), GetLocaleOptions(), GetMagickPrecision(), GetMultilineTypeMetrics(), GetPathTemplate(), GetXMLTreePath(), GetXMPProperty(), IdentifyImage(), InitializeLocaleList(), InitializeMagickList(), InterpretImageProperties(), InvokeDelegate(), ListDelegateInfo(), ListMagickInfo(), LoadLogList(), LoadMimeList(), LoadTypeList(), LoadTypeLists(), MagickCoreGenesis(), NewXMLTree(), ParseCharacterContent(), ParseInternalDoctype(), PolaroidImage(), ProfileImage(), ReadImage(), RecolorImage(), RenderPostscript(), ResourceComponentGenesis(), SelectiveBlurImageChannel(), SetImageProperty(), SetLogFormat(), SetXMLTreeAttribute(), SetXMLTreeContent(), SignatureImage(), StringToArgv(), SyncImageSettings(), SystemCommand(), TracePSClippath(), TraceSVGClippath(), XBestFont(), XColorBrowserWidget(), XDestroyResourceInfo(), XDisplayImageInfo(), and XFileBrowserWidget().

MagickExport StringInfo* DestroyStringInfo ( StringInfo string_info  ) 
MagickExport char** DestroyStringList ( char **  list  ) 

Definition at line 804 of file string.c.

References DestroyString(), and RelinquishMagickMemory().

MagickExport char* EscapeString ( const char *  source,
const char  escape 
)
MagickExport char* FileToString ( const char *  filename,
const size_t  extent,
ExceptionInfo exception 
)
MagickExport StringInfo* FileToStringInfo ( const char *  filename,
const size_t  extent,
ExceptionInfo exception 
)
MagickExport long FormatMagickSize ( const MagickSizeType  size,
const MagickBooleanType  bi,
char *  format 
)
MagickExport long FormatMagickString ( char *  string,
const size_t  length,
const char *  format,
  ... 
)

Definition at line 1101 of file string.c.

References FormatMagickStringList().

Referenced by AnnotateImage(), AppendImageFormat(), BlobToImage(), BlurImageChannel(), CanonicalXMLContent(), ClipImagePath(), ConcatenateColorComponent(), ConcatentateHexColorComponent(), ConvolveImageChannel(), DeleteMagickRegistry(), DestroyPixelCache(), DistortImage(), DrawClipPath(), DrawImage(), DrawPatternPath(), DrawPrimitive(), EncodePredefinedEntities(), ExtendCache(), FilterImageChannel(), FormatMagickSize(), FormatMagickTime(), FxChannelStatistics(), FxEvaluateSubexpression(), GetConfigureBlob(), GetConfigureOptions(), GetConfigurePaths(), GetExecutionPath(), GetEXIFProperty(), GetImageProperty(), GetLocaleExceptionMessage(), GetLocaleMessage(), GetLocaleMonitorMessage(), GetLocaleOptions(), GetMagickHomeURL(), GetMagickProperty(), GetMagickRegistry(), GetPathTemplate(), IdentifyImage(), ImagesToBlob(), ImageToBlob(), InjectImageBlob(), InterpretImageFilename(), InterpretImageProperties(), InvokeDelegate(), ListMagickResourceInfo(), ListTypeInfo(), LoadTypeLists(), MagickToMime(), MontageImageList(), OpenBlob(), OpenPixelCache(), PolaroidImage(), PreviewImage(), RecolorImage(), RenderPostscript(), SelectiveBlurImageChannel(), SetImageProfile(), SetImageProgress(), SetMagickRegistry(), StringToList(), SyncImageSettings(), ThrowMagickExceptionList(), ThumbnailImage(), TracePSClippath(), TraceSVGClippath(), TranslateEvent(), TranslateFilename(), VignetteImage(), XAnnotateImage(), XBestVisualInfo(), XColorBrowserWidget(), XDisplayImageInfo(), XDrawImage(), XGetResourceClass(), XGetResourceDatabase(), XGetResourceInstance(), XGetScreenDensity(), XMakeImageLSBFirst(), XMakeImageMSBFirst(), XMakeMagnifyImage(), XMakeWindow(), XMLTreeInfoToXML(), XMLTreeTagToXML(), XPreferencesWidget(), and XUserPreferences().

MagickExport long FormatMagickStringList ( char *  string,
const size_t  length,
const char *  format,
va_list  operands 
)

Definition at line 1085 of file string.c.

References vsnprintf.

Referenced by FormatMagickString(), and FormatString().

MagickExport long FormatMagickTime ( const time_t  time,
const size_t  length,
char *  timestamp 
)

Definition at line 1145 of file string.c.

References FormatMagickString(), and ResetMagickMemory().

Referenced by ReadImage(), and TranslateEvent().

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* GetStringInfoPath ( const StringInfo string_info  ) 
MagickExport int LocaleCompare ( const char *  p,
const char *  q 
)

Definition at line 1346 of file string.c.

References strcasecmp.

Referenced by AcquireKernelInfo(), AppendImageFormat(), CoderCompare(), CoderInfoCompare(), ColorCompare(), ColorInfoCompare(), CompareHashmapString(), CompareSplayTreeString(), ConfigureCompare(), ConfigureInfoCompare(), DelegateCompare(), DelegateInfoCompare(), DeleteImageProfile(), DrawImage(), ExpandFilenames(), ExportImagePixels(), FileCompare(), FileToBlob(), FxEvaluateSubexpression(), FxGetSymbol(), Get8BIMProperty(), GetCoderInfo(), GetColorInfo(), GetConfigureInfo(), GetDelegateInfo(), GetEXIFProperty(), GetLocaleInfo_(), GetLogInfo(), GetMagickInfo(), GetPolicyInfo(), GetQuantumInfo(), GetThresholdMapFile(), GetTypeInfo(), GetTypeInfoByFamily(), GetXMPProperty(), GlobExpression(), HuffmanEncodeImage(), IdentifyImage(), ImageToFile(), ImportImagePixels(), InvokeDelegate(), InvokeDynamicImageFilter(), IsMagickTrue(), IsTaintImage(), ListCoderInfo(), ListColorInfo(), ListConfigureInfo(), ListDelegateInfo(), ListFiles(), ListLocaleInfo(), ListLogInfo(), ListMagicInfo(), ListPolicyInfo(), ListTypeInfo(), LoadCoderList(), LoadColorList(), LoadConfigureList(), LoadDelegateList(), LoadFontConfigFonts(), LoadLocaleList(), LoadLogList(), LoadMagicList(), LoadPolicyList(), LoadTypeList(), LocaleInfoCompare(), LocaleTagCompare(), LogCompare(), LogInfoCompare(), MagicCompare(), MagicInfoCompare(), MagickCompare(), MagickInfoCompare(), MontageImageList(), OpenBlob(), ParseMagickOption(), PingImages(), ProfileImage(), QueryMagickColor(), RandomChannelThresholdImage(), ReadImage(), ReadImages(), RelinquishUniqueFileResource(), RemoveImageProfile(), SetImageInfo(), SetImageOption(), SetImageProfile(), SetImageProperty(), StreamImagePixels(), ThrowException(), ThumbnailImage(), TranslateEvent(), TypeCompare(), TypeInfoCompare(), UnregisterMagickInfo(), WriteImage(), XBestVisualInfo(), XColorBrowserWidget(), XConfirmWidget(), XDialogWidget(), XFileBrowserWidget(), XFontBrowserWidget(), XGetResourceInfo(), XImportImage(), XListBrowserWidget(), and XWindowByName().

MagickExport void LocaleLower ( char *  string  ) 
MagickExport int LocaleNCompare ( const char *  p,
const char *  q,
const size_t  length 
)
MagickExport void LocaleUpper ( char *  string  ) 

Definition at line 1500 of file string.c.

Referenced by InvokeDelegate(), SetImageInfo(), and XBestVisualInfo().

static size_t MagickMin ( const size_t  x,
const size_t  y 
) [inline, static]
MagickExport void PrintStringInfo ( FILE *  file,
const char *  id,
const StringInfo string_info 
)
MagickExport void ResetStringInfo ( StringInfo string_info  ) 
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 SetStringInfoPath ( StringInfo string_info,
const char *  path 
)
MagickExport StringInfo* SplitStringInfo ( StringInfo string_info,
const size_t  offset 
)
MagickExport char* StringInfoToHexString ( const StringInfo string_info  ) 
MagickExport char* StringInfoToString ( const StringInfo string_info  ) 
MagickExport char** StringToArgv ( const char *  text,
int *  argc 
)
MagickExport char* StringToken ( const char *  delimiters,
char **  string 
)

Definition at line 2066 of file string.c.

Referenced by FxEvaluateSubexpression().

MagickExport char** StringToList ( const char *  text  ) 
MagickExport StringInfo* StringToStringInfo ( const char *  string  ) 
MagickExport void StripString ( char *  message  ) 

Definition at line 2299 of file string.c.

References CopyMagickMemory().

Referenced by ExpandFilenames(), FxGetSymbol(), and ListDelegateInfo().

MagickExport MagickBooleanType SubstituteString ( char **  string,
const char *  search,
const char *  replace 
)
Generated by  doxygen 1.6.2-20100208