00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifdef __WIN32__
00034
00035 #ifndef SPLT_WIN32_H
00036
00037 #include <errno.h>
00038 #include <dirent.h>
00039
00040 #include <windows.h>
00041 #include <direct.h>
00042
00043 int scandir(const char *dir, struct dirent ***namelist,
00044 int(*filter)(const struct dirent *),
00045 int(*compar)(const struct dirent **, const struct dirent **));
00046
00047 int wscandir(const char *dir, struct _wdirent ***namelist,
00048 int(*filter)(const struct _wdirent *),
00049 int(*compar)(const struct _wdirent **, const struct _wdirent **));
00050
00051 int alphasort(const struct dirent **a, const struct dirent **b);
00052
00053 int walphasort(const struct _wdirent **a, const struct _wdirent **b);
00054
00055 char *splt_w32_utf16_to_utf8(const wchar_t *source);
00056 wchar_t *splt_w32_utf8_to_utf16(const char *source);
00057 int splt_w32_check_if_encoding_is_utf8(const char *source);
00058
00059 int splt_w32_str_starts_with_drive_root_directory(const char *str);
00060 int splt_w32_str_is_drive_root_directory(const char *str);
00061
00062 #define SPLT_WIN32_H
00063
00064 #endif
00065
00066 #endif
00067