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