13 #ifndef INT_COMPILER_MSVC 28 #endif // INT_COMPILER_MSVC 34 #define strlen_s(s, n) strnlen(s, n) 35 #define memzero(a, s) memset(a, 0, s) 37 #ifdef INT_COMPILER_MSVC 76 __nonnull() const
WCHAR *
82 #ifdef INT_COMPILER_MSVC 92 #ifdef INT_COMPILER_MSVC 134 _In_z_ const
char *Source,
141 _In_ size_t MaxBufferSize,
149 _In_ size_t DestinationSize,
150 _In_ size_t SourceSize
160 _In_z_ char const *Pattern,
161 _In_z_ char const *String,
168 _In_z_ char const *Pattern,
174 _In_z_ char const *Pattern,
213 nd_vsnprintf_s(
char *str,
size_t sizeOfBuffer,
size_t count, const
char *format, va_list args);
223 if (len_buf1 < len_buf2)
228 if (len_buf1 > len_buf2)
241 static inline
int strncasecmp_len(const
char *buf1, const
char *buf2,
size_t len_buf1,
size_t len_buf2)
243 if (len_buf1 < len_buf2)
248 if (len_buf1 > len_buf2)
253 return strncasecmp(buf1, buf2, len_buf1);
263 if (len_buf1 < len_buf2)
268 if (len_buf1 > len_buf2)
282 static inline
int memcmp_len(const
void *buf1, const
void *buf2,
size_t len_buf1,
size_t len_buf2)
284 if (len_buf1 < len_buf2)
289 if (len_buf1 > len_buf2)
294 return memcmp(buf1, buf2, len_buf1);
298 #endif // _INTROCRT_H_ int wstrncasecmp(const WCHAR *buf1, const WCHAR *buf2, size_t len)
char * utf16toutf8(char *Destination, const WCHAR *Source, DWORD DestinationMaxLength)
BOOLEAN glob_match_utf8(char const *Pattern, char const *String, BOOLEAN IgnoreCase, BOOLEAN Truncated)
BOOLEAN glob_match_utf16(char const *Pattern, WCHAR const *String, BOOLEAN IgnoreCase, BOOLEAN Truncated)
#define _Out_writes_bytes_(expr)
long long my_llabs(long long value)
size_t strlcat(char *dst, const char *src, size_t size)
size_t wstrnlen(const WCHAR *s, size_t maxlen)
static int memcmp_len(const void *buf1, const void *buf2, size_t len_buf1, size_t len_buf2)
char * utf16tolowerutf8(char *Destination, const WCHAR *Source, DWORD DestinationMaxLength)
void memcpy_end(void *Destination, const void *Source, size_t DestinationSize, size_t SourceSize)
int is_str_ansi(const char *Buffer, size_t MaxBufferSize, size_t MinSize)
int nd_vsnprintf_s(char *str, size_t sizeOfBuffer, size_t count, const char *format, va_list args)
#define _In_reads_z_(expr)
size_t wstrlen(const WCHAR *str)
int strcasecmp_utf8_utf16(const char *buf1, const WCHAR *buf2, size_t len)
int strlower_utf16(WCHAR *buf, size_t len)
static int strcasecmp_utf8_utf16_len(const char *buf1, const WCHAR *buf2, size_t len_buf1, size_t len_buf2)
#define _In_reads_or_z_(expr)
size_t strlcpy(char *dst, const char *src, size_t dest_size)
#define _Inout_updates_(expr)
BOOLEAN glob_match_numeric_utf8(char const *Pattern, char const *String)
#define _In_reads_bytes_(expr)
int wstrcmp(const WCHAR *buf1, const WCHAR *buf2)
size_t wstrlcpy(WCHAR *dst, const WCHAR *src, size_t dest_size)
int wstrcasecmp(const WCHAR *buf1, const WCHAR *buf2)
#define _Out_writes_z_(expr)
static int wstrncasecmp_len(const WCHAR *buf1, const WCHAR *buf2, size_t len_buf1, size_t len_buf2)
static int strncasecmp_len(const char *buf1, const char *buf2, size_t len_buf1, size_t len_buf2)
WCHAR * utf8toutf16(WCHAR *Destination, const char *Source, DWORD DestinationMaxLength)
const WCHAR * strstr_utf16(const WCHAR *buf1, const WCHAR *buf2)
int strlower_utf8(char *buf, size_t len)