21#ifndef __WINE_WINE_UNICODE_H
22#define __WINE_WINE_UNICODE_H
41#define MB_ERR_INVALID_CHARS 8
42#define MB_USEGLYPHCHARS 0x04
43#define WC_COMPOSITECHECK 512
44#define WC_DISCARDNS 16
45#define WC_DEFAULTCHAR 64
46#define WC_NO_BEST_FIT_CHARS 1024
47#define WC_ERR_INVALID_CHARS 0x0080
49#ifdef __WINE_WINE_TEST_H
50#error This file should not be used in Wine tests
57#ifndef WINE_UNICODE_API
58#define WINE_UNICODE_API
61#ifndef WINE_UNICODE_INLINE
62#define WINE_UNICODE_INLINE static inline
132 return (
table->info.char_size == 2) && (
table->dbcs.cp2uni_leadbytes[ch]);
216 return (
unsigned int)(
s -
str);
222 while ((*
p++ = *
src++));
227#define strncpyW(d,s,n) error do_not_use_strncpyW_use_lstrcpynW_or_memcpy_instead
231 while (*str1 && (*str1 == *str2)) { str1++; str2++; }
232 return *str1 - *str2;
237 if (
n <= 0)
return 0;
238 while ((--
n > 0) && *str1 && (*str1 == *str2)) { str1++; str2++; }
239 return *str1 - *str2;
320#undef WINE_UNICODE_INLINE
const unsigned short wine_wctype_table[]
const WCHAR wine_casemap_lower[4013]
const WCHAR wine_casemap_upper[4570]
int wine_cpsymbol_wcstombs(const WCHAR *src, int srclen, char *dst, int dstlen)
#define WINE_UNICODE_INLINE
const union cptable * wine_cp_enum_table(unsigned int index)
int wine_utf8_wcstombs(int flags, const WCHAR *src, int srclen, char *dst, int dstlen)
int wine_get_sortkey(int flags, const WCHAR *src, int srclen, char *dst, int dstlen)
WINE_UNICODE_INLINE WCHAR * memrchrW(const WCHAR *ptr, WCHAR ch, size_t n)
int wine_fold_string(int flags, const WCHAR *src, int srclen, WCHAR *dst, int dstlen)
int wine_cp_wcstombs(const union cptable *table, int flags, const WCHAR *src, int srclen, char *dst, int dstlen, const char *defchar, int *used)
WINE_UNICODE_INLINE int isgraphW(WCHAR wc)
const union cptable * wine_cp_get_table(unsigned int codepage)
WINE_UNICODE_INLINE int ispunctW(WCHAR wc)
int wine_compare_string(int flags, const WCHAR *str1, int len1, const WCHAR *str2, int len2)
WINE_UNICODE_INLINE WCHAR * memchrW(const WCHAR *ptr, WCHAR ch, size_t n)
WINE_UNICODE_INLINE int wine_is_dbcs_leadbyte(const union cptable *table, unsigned char ch)
int wine_cpsymbol_mbstowcs(const char *src, int srclen, WCHAR *dst, int dstlen)
int wine_cp_mbstowcs(const union cptable *table, int flags, const char *src, int srclen, WCHAR *dst, int dstlen)
int wine_utf8_mbstowcs(int flags, const char *src, int srclen, WCHAR *dst, int dstlen)
WINE_UNICODE_INLINE unsigned short get_char_typeW(WCHAR ch)
static __ms_va_list valist
static DWORD LPDWORD LPCSTR DWORD srclen
#define strspnW(str, accept)
#define strncmpiW(s1, s2, n)
#define memicmpW(s1, s2, n)
#define strtoulW(s1, s2, b)
#define strncmpW(s1, s2, n)
#define strpbrkW(str, accept)
SOCKET WSAAPI accept(IN SOCKET s, OUT LPSOCKADDR addr, OUT INT FAR *addrlen)
unsigned char lead_bytes[12]
const unsigned short * uni2cp_high
const unsigned short * uni2cp_low
const unsigned char * cp2uni_leadbytes
const WCHAR * cp2uni_glyphs
const unsigned short * uni2cp_high
const unsigned char * uni2cp_low