MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
Loading...
Searching...
No Matches
string_.h
1/*
2 Copyright @ 2003 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
4
5 You may not use this file except in compliance with the License. You may
6 obtain a copy of the License at
7
8 https://imagemagick.org/script/license.php
9
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.
15
16 MagickCore string methods.
17*/
18#ifndef MAGICKCORE_STRING_H_
19#define MAGICKCORE_STRING_H_
20
21#include "MagickCore/exception.h"
22
23#if defined(__cplusplus) || defined(c_plusplus)
24extern "C" {
25#endif
26
27typedef struct _StringInfo
28{
29 char
30 *path;
31
32 unsigned char
33 *datum;
34
35 size_t
36 length,
37 signature;
38
39 char
40 *name;
42
43extern MagickExport char
44 *AcquireString(const char *),
45 *CloneString(char **,const char *),
46 *ConstantString(const char *),
47 *DestroyString(char *),
48 **DestroyStringList(char **),
49 *EscapeString(const char *,const char),
50 *FileToString(const char *,const size_t,ExceptionInfo *),
51 *GetEnvironmentValue(const char *),
52 *SanitizeString(const char *),
53 *StringInfoToDigest(const StringInfo *),
54 *StringInfoToHexString(const StringInfo *),
55 *StringInfoToString(const StringInfo *),
56 **StringToArgv(const char *,int *),
57 *StringToken(const char *,char **),
58 **StringToList(const char *),
59 **StringToStrings(const char *,size_t *);
60
61extern MagickExport const char
62 *GetStringInfoName(const StringInfo *),
63 *GetStringInfoPath(const StringInfo *);
64
65extern MagickExport double
66 InterpretSiPrefixValue(const char *magick_restrict,char **magick_restrict),
67 *StringToArrayOfDoubles(const char *,ssize_t *,ExceptionInfo *);
68
69extern MagickExport int
70 CompareStringInfo(const StringInfo *,const StringInfo *);
71
72extern MagickExport MagickBooleanType
73 ConcatenateString(char **magick_restrict,const char *magick_restrict),
74 IsStringTrue(const char *) magick_attribute((__pure__)),
75 IsStringFalse(const char *) magick_attribute((__pure__)),
76 SubstituteString(char **,const char *,const char *);
77
78extern MagickExport size_t
79 ConcatenateMagickString(char *magick_restrict,const char *magick_restrict,
80 const size_t) magick_attribute((__nonnull__)),
81 CopyMagickString(char *magick_restrict,const char *magick_restrict,
82 const size_t) magick_attribute((__nonnull__)),
83 GetStringInfoLength(const StringInfo *),
84 StripMagickString(char *);
85
86extern MagickExport ssize_t
87 FormatMagickSize(const MagickSizeType,const MagickBooleanType,const char *,
88 const size_t,char *);
89
90extern MagickExport StringInfo
91 *AcquireStringInfo(const size_t),
92 *BlobToStringInfo(const void *,const size_t),
93 *CloneStringInfo(const StringInfo *),
94 *ConfigureFileToStringInfo(const char *),
95 *DestroyStringInfo(StringInfo *),
96 *FileToStringInfo(const char *,const size_t,ExceptionInfo *),
97 *SplitStringInfo(StringInfo *,const size_t),
98 *StringToStringInfo(const char *);
99
100extern MagickExport unsigned char
101 *GetStringInfoDatum(const StringInfo *);
102
103extern MagickExport void
104 ConcatenateStringInfo(StringInfo *,const StringInfo *)
105 magick_attribute((__nonnull__)),
106 PrintStringInfo(FILE *file,const char *,const StringInfo *),
107 ResetStringInfo(StringInfo *),
108 SetStringInfo(StringInfo *,const StringInfo *),
109 SetStringInfoDatum(StringInfo *,const unsigned char *),
110 SetStringInfoLength(StringInfo *,const size_t),
111 SetStringInfoName(StringInfo *,const char *),
112 SetStringInfoPath(StringInfo *,const char *),
113 StripString(char *);
114
115#if defined(__cplusplus) || defined(c_plusplus)
116}
117#endif
118
119#endif