20#include "wine/unicode.h"
38 key_len[0] = key_len[1] = key_len[2] = key_len[3] = 0;
41 unsigned int i, decomposed_len = 1;
45 for (
i = 0;
i < decomposed_len;
i++)
60 if (ce != (
unsigned int)-1)
62 if (ce >> 16) key_len[0] += 2;
63 if ((ce >> 8) & 0xff) key_len[1]++;
64 if ((ce >> 4) & 0x0f) key_len[2]++;
67 if (wch >> 8) key_len[3]++;
74 if (wch >> 8) key_len[0]++;
75 if (wch & 0xff) key_len[0]++;
83 return key_len[0] + key_len[1] + key_len[2] + key_len[3] + 4;
85 if (
dstlen < key_len[0] + key_len[1] + key_len[2] + key_len[3] + 4 + 1)
92 key_ptr[1] = key_ptr[0] + key_len[0] + 1;
93 key_ptr[2] = key_ptr[1] + key_len[1] + 1;
94 key_ptr[3] = key_ptr[2] + key_len[2] + 1;
98 unsigned int i, decomposed_len = 1;
102 for (
i = 0;
i < decomposed_len;
i++)
117 if (ce != (
unsigned int)-1)
120 if ((
key = ce >> 16))
122 *key_ptr[0]++ =
key >> 8;
123 *key_ptr[0]++ =
key & 0xff;
126 if ((
key = (ce >> 8) & 0xff)) *key_ptr[1]++ =
key + 1;
128 if ((
key = (ce >> 4) & 0x0f)) *key_ptr[2]++ =
key + 1;
132 if (wch >> 8) *key_ptr[3]++ = wch >> 8;
133 if (wch & 0xff) *key_ptr[3]++ = wch & 0xff;
138 *key_ptr[0]++ = 0xff;
139 *key_ptr[0]++ = 0xfe;
140 if (wch >> 8) *key_ptr[0]++ = wch >> 8;
141 if (wch & 0xff) *key_ptr[0]++ = wch & 0xff;
150 *key_ptr[3]++ =
'\1';
153 return key_ptr[3] -
dst;
168 if (
ret == (
unsigned int)-1)
176 return (
ret >> 8) & 0xff;
179 return (
ret >> 4) & 0x0f;
197 int dpos1 = 0, dpos2 = 0, dlen1 = 0, dlen2 = 0;
198 WCHAR dstr1[4], dstr2[4];
199 unsigned int ce1, ce2;
205 while (len1 > 0 && len2 > 0)
232 if (dstr1[dpos1] ==
'-' || dstr1[dpos1] ==
'\'')
234 if (dstr2[dpos2] !=
'-' && dstr2[dpos2] !=
'\'')
240 else if (dstr2[dpos2] ==
'-' || dstr2[dpos2] ==
'\'')
260 if (ce1 - ce2)
return ce1 - ce2;
285 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)
int wine_compare_string(int flags, const WCHAR *str1, int len1, const WCHAR *str2, int len2)
const unsigned int collation_table[]
GLuint GLuint GLsizei GLenum type
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