Go to the documentation of this file.
28 #ifndef _HAVE_FL_UTF8_HDR_
29 #define _HAVE_FL_UTF8_HDR_
31 #include "Fl_Export.H"
39 # include <sys/types.h>
40 # include <sys/stat.h>
43 # define xchar wchar_t
44 # if !defined(FL_DLL) && !defined(__CYGWIN__)
46 # define strdup _strdup
48 # define putenv _putenv
50 # define stricmp _stricmp
52 # define strnicmp _strnicmp
56 #elif defined(__APPLE__)
58 # include <sys/stat.h>
59 # define xchar wchar_t
61 # include <sys/types.h>
62 # include <sys/stat.h>
63 # if defined(FL_LIBRARY)
64 # include <X11/Xlocale.h>
65 # include <X11/Xlib.h>
68 # define xchar unsigned short
99 FL_EXPORT
unsigned fl_utf8decode(
const char* p,
const char* end,
int* len);
105 FL_EXPORT
const char*
fl_utf8fwd(
const char* p,
const char* start,
const char* end);
108 FL_EXPORT
const char*
fl_utf8back(
const char* p,
const char* start,
const char* end);
111 FL_EXPORT
unsigned fl_ucs_to_Utf16(
const unsigned ucs,
unsigned short *dst,
const unsigned dstlen);
114 FL_EXPORT
unsigned fl_utf8toUtf16(
const char* src,
unsigned srclen,
unsigned short* dst,
unsigned dstlen);
117 FL_EXPORT
unsigned fl_utf8towc(
const char *src,
unsigned srclen,
wchar_t *dst,
unsigned dstlen);
120 FL_EXPORT
unsigned fl_utf8fromwc(
char *dst,
unsigned dstlen,
const wchar_t *src,
unsigned srclen);
123 FL_EXPORT
unsigned fl_utf8toa (
const char *src,
unsigned srclen,
char *dst,
unsigned dstlen);
126 FL_EXPORT
unsigned fl_utf8froma (
char *dst,
unsigned dstlen,
const char *src,
unsigned srclen);
134 FL_EXPORT
int fl_utf8test(
const char *src,
unsigned len);
149 FL_EXPORT
unsigned fl_utf8to_mb(
const char *src,
unsigned srclen,
char *dst,
unsigned dstlen);
154 FL_EXPORT
unsigned fl_utf8from_mb(
char *dst,
unsigned dstlen,
const char *src,
unsigned srclen);
159 FL_EXPORT
char *fl_utf8_to_locale(
const char *s,
int len,
unsigned int codepage);
162 FL_EXPORT
char *fl_locale_to_utf8(
const char *s,
int len,
unsigned int codepage);
183 FL_EXPORT
int fl_utf_tolower(
const unsigned char *str,
int len,
char *buf);
186 FL_EXPORT
int fl_utf_toupper(
const unsigned char *str,
int len,
char *buf);
189 FL_EXPORT
int fl_chmod(
const char* f,
int mode);
192 FL_EXPORT
int fl_access(
const char* f,
int mode);
195 FL_EXPORT
int fl_stat(
const char *path,
struct stat *buffer );
198 FL_EXPORT
char*
fl_getcwd(
char *buf,
int maxlen);
201 FL_EXPORT FILE *
fl_fopen(
const char *f,
const char *mode);
207 FL_EXPORT
int fl_execvp(
const char *file,
char *
const *argv);
210 FL_EXPORT
int fl_open(
const char* f,
int o, ...);
216 FL_EXPORT
int fl_rmdir(
const char *f);
219 FL_EXPORT
char*
fl_getenv(
const char *name);
222 FL_EXPORT
int fl_mkdir(
const char* f,
int mode);
225 FL_EXPORT
int fl_rename(
const char* f,
const char *t);