00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef flstring_h
00020 # define flstring_h
00021
00022 # include <FL/Fl_Export.H>
00023 # include <config.h>
00024 # include <stdio.h>
00025 # include <stdarg.h>
00026 # include <string.h>
00027 # ifdef HAVE_STRINGS_H
00028 # include <strings.h>
00029 # endif
00030 # include <ctype.h>
00031
00032
00033
00034
00035
00036
00037
00038 # ifdef index
00039 # undef index
00040 # endif
00041
00042 # if defined(WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
00043 # define strcasecmp(s,t) _stricmp((s), (t))
00044 # define strncasecmp(s,t,n) _strnicmp((s), (t), (n))
00045
00046
00047
00048
00049 # ifndef __WATCOMC__
00050 # define strdup _strdup
00051 # define unlink _unlink
00052 # endif
00053 # elif defined(__EMX__)
00054 # define strcasecmp(s,t) stricmp((s), (t))
00055 # define strncasecmp(s,t,n) strnicmp((s), (t), (n))
00056 # endif
00057
00058 # ifdef __cplusplus
00059 extern "C" {
00060 # endif
00061
00062 FL_EXPORT extern int fl_snprintf(char *, size_t, const char *, ...);
00063 # ifndef HAVE_SNPRINTF
00064 # define snprintf fl_snprintf
00065 # endif
00066
00067 FL_EXPORT extern int fl_vsnprintf(char *, size_t, const char *, va_list ap);
00068 # ifndef HAVE_VSNPRINTF
00069 # define vsnprintf fl_vsnprintf
00070 # endif
00071
00072
00073
00074
00075
00076
00077 FL_EXPORT extern size_t fl_strlcat(char *, const char *, size_t);
00078 # ifndef HAVE_STRLCAT
00079 # define strlcat fl_strlcat
00080 # endif
00081
00082 FL_EXPORT extern size_t fl_strlcpy(char *, const char *, size_t);
00083 # ifndef HAVE_STRLCPY
00084 # define strlcpy fl_strlcpy
00085 # endif
00086
00087
00088
00089
00090
00091 FL_EXPORT extern int fl_ascii_strcasecmp(const char *s, const char *t);
00092
00093 # ifdef __cplusplus
00094 }
00095 # endif
00096
00097 #endif
00098
00099
00100
00101