18 #ifndef MAGICKCORE_STRING_PRIVATE_H
19 #define MAGICKCORE_STRING_PRIVATE_H
23 #if defined(__cplusplus) || defined(c_plusplus)
28 const double interval)
38 value*=interval/100.0;
45 #if defined(MAGICKCORE_HAVE_STRCASESTR)
46 return((
char *) strcasestr(haystack,needle));
56 if (!haystack || !needle)
58 length_needle=strlen(needle);
59 length_haystack=strlen(haystack)-length_needle+1;
60 for (i=0; i < length_haystack; i++)
65 for (j=0; j < length_needle; j++)
67 unsigned char c1 = haystack[i+j];
68 unsigned char c2 = needle[j];
69 if (toupper(c1) != toupper(c2))
72 return((
char *) haystack+i);
76 return((
char *) NULL);
88 const double interval)
98 value*=interval/100.0;
104 return((
int) strtol(value,(
char **) NULL,10));
109 return(strtol(value,(
char **) NULL,10));
115 return(strtoul(value,(
char **) NULL,10));
118 #if defined(__cplusplus) || defined(c_plusplus)
#define magick_restrict
Definition: MagickCore.h:41
MagickExport double InterpretSiPrefixValue(const char *magick_restrict string, char **magick_restrict sentinal)
Definition: string.c:1316
static unsigned long StringToUnsignedLong(const char *magick_restrict value)
Definition: string-private.h:112
static int StringToInteger(const char *magick_restrict value)
Definition: string-private.h:102
static double StringToDouble(const char *magick_restrict string, char **magick_restrict sentinal)
Definition: string-private.h:81
static long StringToLong(const char *magick_restrict value)
Definition: string-private.h:107
static double SiPrefixToDoubleInterval(const char *string, const double interval)
Definition: string-private.h:27
static double StringToDoubleInterval(const char *string, const double interval)
Definition: string-private.h:87
static char * StringLocateSubstring(const char *haystack, const char *needle)
Definition: string-private.h:42
MagickExport double InterpretLocaleValue(const char *magick_restrict string, char **magick_restrict sentinal)
Definition: locale.c:1000