Changeset 8938 for trunk/tools/wrc/u/codepage.c
- Timestamp:
- Jul 30, 2002, 2:55:06 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/wrc/u/codepage.c
r7834 r8938 1 /* $Id: codepage.c,v 1. 1 2002-02-08 00:43:46 birdExp $1 /* $Id: codepage.c,v 1.2 2002-07-30 12:51:22 sandervl Exp $ 2 2 * 3 3 * Code page functions … … 512 512 return GetStringTypeA(locale, type, src, count, chartype); 513 513 } 514 //******************************************************************************515 //******************************************************************************516 WCHAR WIN32API tolowerW( WCHAR ch )517 {518 extern const WCHAR casemap_lower[];519 return ch + casemap_lower[casemap_lower[ch >> 8] + (ch & 0xff)];520 }521 //******************************************************************************522 //******************************************************************************523 WCHAR WIN32API toupperW( WCHAR ch )524 {525 extern const WCHAR casemap_upper[];526 return ch + casemap_upper[casemap_upper[ch >> 8] + (ch & 0xff)];527 }528 514 #endif // if 0 529 //******************************************************************************530 /* the character type contains the C1_* flags in the low 12 bits */531 /* and the C2_* type in the high 4 bits */532 //******************************************************************************533 unsigned short get_char_typeW( WCHAR ch )534 {535 extern const unsigned short wctype_table[];536 return wctype_table[wctype_table[ch >> 8] + (ch & 0xff)];537 }538 //******************************************************************************539 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.