1234567891011121314151617181920212223 |
- #pragma once
- #define FNM_PATHNAME (1 << 0) /* No wildcard can ever match `/'. */
- #define FNM_NOESCAPE (1 << 1) /* Backslashes don't quote special chars. */
- #define FNM_PERIOD (1 << 2) /* Leading `.' is matched only explicitly. */
- #define FNM_NOMATCH 1
- #define fnmatch fnmatch_win
- class CUtils
- {
- public:
- CUtils();
- ~CUtils(void);
- int MultiByToUtf8(const char* multi, char*& utf8);
- int Utf8ToMultiBy(const char* utf8, char*& multi);
- int Utf8ToUnicode(const char* utf8, wchar_t*& unicode);
- int UnicodeToUtf8(const wchar_t* unicode, char*& utf8);
- int MultiByToUnicode(const char* multi, wchar_t*& unicode);
- int UnicodeToMultiBy(const wchar_t* unicode, char*& multi);
- int fnmatch_win(const char* pattern, const char* name, int flags = 0);
- bool SafeFNMatch(const char* pattern, size_t patt_len, const char* str, size_t str_len);
- };
|