20#include "wine/unicode.h"
23#define get_char_typeW(x) iswctype((x) >> 8, (x) & 0xFF)
41 key_len[0] = key_len[1] = key_len[2] = key_len[3] = 0;
44 unsigned int i, decomposed_len = 1;
48 for (
i = 0;
i < decomposed_len;
i++)
63 if (ce != (
unsigned int)-1)
65 if (ce >> 16) key_len[0] += 2;
66 if ((ce >> 8) & 0xff) key_len[1]++;
67 if ((ce >> 4) & 0x0f) key_len[2]++;
70 if (wch >> 8) key_len[3]++;
77 if (wch >> 8) key_len[0]++;
78 if (wch & 0xff) key_len[0]++;
86 return key_len[0] + key_len[1] + key_len[2] + key_len[3] + 4 + 1;
88 if (
dstlen < key_len[0] + key_len[1] + key_len[2] + key_len[3] + 4 + 1)
95 key_ptr[1] = key_ptr[0] + key_len[0] + 1;
96 key_ptr[2] = key_ptr[1] + key_len[1] + 1;
97 key_ptr[3] = key_ptr[2] + key_len[2] + 1;
101 unsigned int i, decomposed_len = 1;
105 for (
i = 0;
i < decomposed_len;
i++)
120 if (ce != (
unsigned int)-1)
123 if ((
key = ce >> 16))
125 *key_ptr[0]++ =
key >> 8;
126 *key_ptr[0]++ =
key & 0xff;
129 if ((
key = (ce >> 8) & 0xff)) *key_ptr[1]++ =
key + 1;
131 if ((
key = (ce >> 4) & 0x0f)) *key_ptr[2]++ =
key + 1;
135 if (wch >> 8) *key_ptr[3]++ = wch >> 8;
136 if (wch & 0xff) *key_ptr[3]++ = wch & 0xff;
141 *key_ptr[0]++ = 0xff;
142 *key_ptr[0]++ = 0xfe;
143 if (wch >> 8) *key_ptr[0]++ = wch >> 8;
144 if (wch & 0xff) *key_ptr[0]++ = wch & 0xff;
153 *key_ptr[3]++ =
'\1';
156 return key_ptr[3] -
dst;
160 const WCHAR *str2,
int len2)
162 unsigned int ce1, ce2;
169 while (len1 > 0 && len2 > 0)
195 if (*str1 ==
'-' || *str1 ==
'\'')
197 if (*str2 !=
'-' && *str2 !=
'\'')
204 else if (*str2 ==
'-' || *str2 ==
'\'')
215 if (ce1 != (
unsigned int)-1 && ce2 != (
unsigned int)-1)
216 ret = (ce1 >> 16) - (ce2 >> 16);
227 while (len1 && !*str1)
232 while (len2 && !*str2)
241 const WCHAR *str2,
int len2)
243 unsigned int ce1, ce2;
250 while (len1 > 0 && len2 > 0)
274 if (ce1 != (
unsigned int)-1 && ce2 != (
unsigned int)-1)
275 ret = ((ce1 >> 8) & 0xff) - ((ce2 >> 8) & 0xff);
286 while (len1 && !*str1)
291 while (len2 && !*str2)
300 const WCHAR *str2,
int len2)
302 unsigned int ce1, ce2;
309 while (len1 > 0 && len2 > 0)
333 if (ce1 != (
unsigned int)-1 && ce2 != (
unsigned int)-1)
334 ret = ((ce1 >> 4) & 0x0f) - ((ce2 >> 4) & 0x0f);
345 while (len1 && !*str1)
350 while (len2 && !*str2)
359 const WCHAR *str2,
int len2)
int wine_get_sortkey(int flags, const WCHAR *src, int srclen, char *dst, int dstlen)
unsigned int wine_decompose(WCHAR ch, WCHAR *dst, unsigned int dstlen)
static int compare_case_weights(int flags, const WCHAR *str1, int len1, const WCHAR *str2, int len2)
int wine_compare_string(int flags, const WCHAR *str1, int len1, const WCHAR *str2, int len2)
static int compare_diacritic_weights(int flags, const WCHAR *str1, int len1, const WCHAR *str2, int len2)
const unsigned int collation_table[]
static int compare_unicode_weights(int flags, const WCHAR *str1, int len1, const WCHAR *str2, int len2)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
WINE_UNICODE_INLINE unsigned short get_char_typeW(WCHAR ch)
static DWORD LPDWORD LPCSTR DWORD srclen
#define NORM_IGNORENONSPACE
#define NORM_IGNORESYMBOLS