Lines Matching defs:table

55 static inline int check_invalid_chars_sbcs( const struct sbcs_table *table, int flags,
58 const WCHAR * const cp2uni = (flags & MB_USEGLYPHCHARS) ? table->cp2uni_glyphs : table->cp2uni;
59 const WCHAR def_unicode_char = table->info.def_unicode_char;
60 const unsigned char def_char = table->uni2cp_low[table->uni2cp_high[def_unicode_char >> 8]
73 static inline int mbstowcs_sbcs( const struct sbcs_table *table, int flags,
77 const WCHAR * const cp2uni = (flags & MB_USEGLYPHCHARS) ? table->cp2uni_glyphs : table->cp2uni;
118 static int mbstowcs_sbcs_decompose( const struct sbcs_table *table, int flags,
122 const WCHAR * const cp2uni = (flags & MB_USEGLYPHCHARS) ? table->cp2uni_glyphs : table->cp2uni;
145 static inline int get_length_dbcs( const struct dbcs_table *table,
148 const unsigned char * const cp2uni_lb = table->cp2uni_leadbytes;
163 static inline int check_invalid_chars_dbcs( const struct dbcs_table *table,
166 const WCHAR * const cp2uni = table->cp2uni;
167 const unsigned char * const cp2uni_lb = table->cp2uni_leadbytes;
168 const WCHAR def_unicode_char = table->info.def_unicode_char;
169 const unsigned short def_char = table->uni2cp_low[table->uni2cp_high[def_unicode_char >> 8]
191 static inline int mbstowcs_dbcs( const struct dbcs_table *table,
195 const WCHAR * const cp2uni = table->cp2uni;
196 const unsigned char * const cp2uni_lb = table->cp2uni_leadbytes;
199 if (!dstlen) return get_length_dbcs( table, src, srclen );
218 static int mbstowcs_dbcs_decompose( const struct dbcs_table *table,
222 const WCHAR * const cp2uni = table->cp2uni;
223 const unsigned char * const cp2uni_lb = table->cp2uni_leadbytes;
266 int wine_cp_mbstowcs( const union cptable *table, int flags,
272 if (table->info.char_size == 1)
276 if (check_invalid_chars_sbcs( &table->sbcs, flags, src, srclen )) return -2;
281 return mbstowcs_sbcs( &table->sbcs, flags, src, srclen, dst, dstlen );
283 return mbstowcs_sbcs_decompose( &table->sbcs, flags, src, srclen, dst, dstlen );
289 if (check_invalid_chars_dbcs( &table->dbcs, src, srclen )) return -2;
292 return mbstowcs_dbcs( &table->dbcs, src, srclen, dst, dstlen );
294 return mbstowcs_dbcs_decompose( &table->dbcs, src, srclen, dst, dstlen );