21 #ifndef __WINE_WINE_UNICODE_H 22 #define __WINE_WINE_UNICODE_H 40 #define MB_COMPOSITE 2 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 WCHAR wine_casemap_upper[4570]
int vsnprintfW(WCHAR *str, size_t len, const WCHAR *format, va_list valist)
const union cptable * wine_cp_get_table(unsigned int codepage)
int wine_get_sortkey(int flags, const WCHAR *src, int srclen, char *dst, int dstlen)
unsigned long int strtoulW(const WCHAR *nptr, WCHAR **endptr, int base)
long int strtolW(const WCHAR *nptr, WCHAR **endptr, int base)
WINE_UNICODE_INLINE int islowerW(WCHAR wc)
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 WCHAR * strlwrW(WCHAR *str)
const unsigned short * uni2cp_low
WINE_UNICODE_INLINE unsigned int strlenW(const WCHAR *str)
int strcmpiW(const WCHAR *str1, const WCHAR *str2)
WINE_UNICODE_INLINE WCHAR * strchrW(const WCHAR *str, WCHAR ch)
WINE_UNICODE_INLINE int isspaceW(WCHAR wc)
const unsigned short * uni2cp_high
const WCHAR wine_casemap_lower[4013]
int snprintfW(WCHAR *str, size_t len, const WCHAR *format,...)
WINE_UNICODE_INLINE size_t strcspnW(const WCHAR *str, const WCHAR *reject)
int wine_utf8_mbstowcs(int flags, const char *src, int srclen, WCHAR *dst, int dstlen)
int vsprintfW(WCHAR *str, const WCHAR *format, va_list valist)
WINE_UNICODE_INLINE int isprintW(WCHAR wc)
unsigned char lead_bytes[12]
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
WINE_UNICODE_INLINE int strncmpW(const WCHAR *str1, const WCHAR *str2, int n)
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 size_t strspnW(const WCHAR *str, const WCHAR *accept)
const WCHAR * cp2uni_glyphs
WINE_UNICODE_INLINE long int atolW(const WCHAR *str)
const unsigned short wine_wctype_table[]
const unsigned char * uni2cp_low
WINE_UNICODE_INLINE WCHAR toupperW(WCHAR ch)
const unsigned short * uni2cp_high
int wine_fold_string(int flags, const WCHAR *src, int srclen, WCHAR *dst, int dstlen)
WINE_UNICODE_INLINE WCHAR * strpbrkW(const WCHAR *str, const WCHAR *accept)
static DWORD LPDWORD LPCSTR DWORD srclen
WCHAR * strstrW(const WCHAR *str, const WCHAR *sub)
#define WINE_UNICODE_INLINE
WINE_UNICODE_INLINE WCHAR tolowerW(WCHAR ch)
WINE_UNICODE_INLINE unsigned short get_char_typeW(WCHAR ch)
WINE_UNICODE_INLINE int isxdigitW(WCHAR wc)
int memicmpW(const WCHAR *str1, const WCHAR *str2, int n)
SOCKET WSAAPI accept(IN SOCKET s, OUT LPSOCKADDR addr, OUT INT FAR *addrlen)
WINE_UNICODE_INLINE int isalnumW(WCHAR wc)
WINE_UNICODE_INLINE WCHAR * memrchrW(const WCHAR *ptr, WCHAR ch, size_t n)
WINE_UNICODE_INLINE int isupperW(WCHAR wc)
WINE_UNICODE_INLINE WCHAR * strrchrW(const WCHAR *str, WCHAR ch)
int wine_cp_mbstowcs(const union cptable *table, int flags, const char *src, int srclen, WCHAR *dst, int dstlen)
int wine_cpsymbol_mbstowcs(const char *src, int srclen, WCHAR *dst, int dstlen)
WINE_UNICODE_INLINE WCHAR * strcpyW(WCHAR *dst, const WCHAR *src)
WINE_UNICODE_INLINE int wine_is_dbcs_leadbyte(const union cptable *table, unsigned char ch)
int wine_cpsymbol_wcstombs(const WCHAR *src, int srclen, char *dst, int dstlen)
const unsigned char * cp2uni_leadbytes
WINE_UNICODE_INLINE WCHAR * strcatW(WCHAR *dst, const WCHAR *src)
WINE_UNICODE_INLINE int isdigitW(WCHAR wc)
int strncmpiW(const WCHAR *str1, const WCHAR *str2, int n)
WINE_UNICODE_INLINE int strcmpW(const WCHAR *str1, const WCHAR *str2)
WINE_UNICODE_INLINE int iscntrlW(WCHAR wc)
static __ms_va_list valist
WINE_UNICODE_INLINE int isalphaW(WCHAR wc)
WINE_UNICODE_INLINE WCHAR * memchrW(const WCHAR *ptr, WCHAR ch, size_t n)
int wine_utf8_wcstombs(int flags, const WCHAR *src, int srclen, char *dst, int dstlen)
WINE_UNICODE_INLINE int isgraphW(WCHAR wc)
int sprintfW(WCHAR *str, const WCHAR *format,...)
const union cptable * wine_cp_enum_table(unsigned int index)
WINE_UNICODE_INLINE int atoiW(const WCHAR *str)
WINE_UNICODE_INLINE WCHAR * struprW(WCHAR *str)