2 Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
8 http://www.imagemagick.org/script/license.php
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
16 MagickCore string methods.
18 #ifndef _MAGICKCORE_STRING_H_
19 #define _MAGICKCORE_STRING_H_
21 #if defined(__cplusplus) || defined(c_plusplus)
27 #include "MagickCore/exception.h"
29 typedef struct _StringInfo
42 extern MagickExport char
43 *AcquireString(const char *),
44 *CloneString(char **,const char *),
45 *ConstantString(const char *),
46 *DestroyString(char *),
47 **DestroyStringList(char **),
48 *EscapeString(const char *,const char),
49 *FileToString(const char *,const size_t,ExceptionInfo *),
50 *GetEnvironmentValue(const char *),
51 *StringInfoToHexString(const StringInfo *),
52 *StringInfoToString(const StringInfo *),
53 **StringToArgv(const char *,int *),
54 *StringToken(const char *,char **),
55 **StringToList(const char *);
57 extern MagickExport const char
58 *GetStringInfoPath(const StringInfo *);
60 extern MagickExport double
61 InterpretSiPrefixValue(const char *restrict,char **restrict);
63 extern MagickExport int
64 CompareStringInfo(const StringInfo *,const StringInfo *),
65 LocaleCompare(const char *,const char *),
66 LocaleNCompare(const char *,const char *,const size_t);
68 extern MagickExport MagickBooleanType
69 ConcatenateString(char **,const char *),
70 SubstituteString(char **,const char *,const char *);
72 extern MagickExport size_t
73 ConcatenateMagickString(char *,const char *,const size_t)
74 magick_attribute((nonnull)),
75 CopyMagickString(char *,const char *,const size_t)
76 magick_attribute((nonnull)),
77 GetStringInfoLength(const StringInfo *);
79 extern MagickExport ssize_t
80 FormatMagickSize(const MagickSizeType,const MagickBooleanType,char *),
81 FormatMagickTime(const time_t,const size_t,char *);
83 extern MagickExport StringInfo
84 *AcquireStringInfo(const size_t),
85 *BlobToStringInfo(const void *,const size_t),
86 *CloneStringInfo(const StringInfo *),
87 *ConfigureFileToStringInfo(const char *),
88 *DestroyStringInfo(StringInfo *),
89 *FileToStringInfo(const char *,const size_t,ExceptionInfo *),
90 *SplitStringInfo(StringInfo *,const size_t),
91 *StringToStringInfo(const char *);
93 extern MagickExport unsigned char
94 *GetStringInfoDatum(const StringInfo *);
96 extern MagickExport void
97 ConcatenateStringInfo(StringInfo *,const StringInfo *)
98 magick_attribute((nonnull)),
101 PrintStringInfo(FILE *file,const char *,const StringInfo *),
102 ResetStringInfo(StringInfo *),
103 SetStringInfo(StringInfo *,const StringInfo *),
104 SetStringInfoDatum(StringInfo *,const unsigned char *),
105 SetStringInfoLength(StringInfo *,const size_t),
106 SetStringInfoPath(StringInfo *,const char *),
109 #if defined(__cplusplus) || defined(c_plusplus)