23#include "wine/unicode.h"
32 WCHAR wch,
unsigned char ch )
35 return (
table->cp2uni[ch] == wch);
159 const char *defchar,
int *
used )
169 def =
table->info.def_char & 0xff;
225 WCHAR wch,
unsigned short ch )
232 unsigned char off =
table->cp2uni_leadbytes[ch >> 8];
233 return (
table->cp2uni[(off << 8) + (ch & 0xff)] == wch);
235 return (
table->cp2uni[ch & 0xff] == wch);
243 if (!defchar)
return table->info.def_char;
244 if (!defchar[1])
return (
unsigned char)defchar[0];
245 return ((
unsigned char)defchar[0] << 8) | (
unsigned char)defchar[1];
251 const char *defchar,
int *
used )
255 WCHAR defchar_value, composed;
291 if (defchar_value & 0xff00)
len++;
344 const char *defchar,
int *
used )
415 if (
table->info.char_size == 1)
static const unsigned char uni2cp_low[]
static const unsigned short uni2cp_high[256]
#define WC_COMPOSITECHECK
#define WC_NO_BEST_FIT_CHARS
static DWORD LPDWORD LPCSTR DWORD srclen