mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 07:23:13 +00:00
Started to port some of the support for IsCharAlphaNumeric et al from wine.
svn path=/trunk/; revision=3892
This commit is contained in:
parent
6cf975887d
commit
8e885e0492
2 changed files with 19 additions and 8 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: bitmap.c,v 1.7 2002/11/05 20:58:20 hbirr Exp $
|
/* $Id: bitmap.c,v 1.8 2002/12/26 17:21:27 robd Exp $
|
||||||
*
|
*
|
||||||
* PROJECT: ReactOS user32.dll
|
* PROJECT: ReactOS user32.dll
|
||||||
* FILE: lib/user32/windows/input.c
|
* FILE: lib/user32/windows/input.c
|
||||||
|
@ -242,7 +242,7 @@ LoadImageW(HINSTANCE hinst,
|
||||||
}
|
}
|
||||||
case IMAGE_CURSOR:
|
case IMAGE_CURSOR:
|
||||||
{
|
{
|
||||||
DbgPrint("FIXME: Need support for loading cursors.\n");
|
DbgPrint("FIXME: Need support for loading cursor images.\n");
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: text.c,v 1.4 2002/09/17 23:46:23 dwelch Exp $
|
/* $Id: text.c,v 1.5 2002/12/26 17:21:27 robd Exp $
|
||||||
*
|
*
|
||||||
* PROJECT: ReactOS user32.dll
|
* PROJECT: ReactOS user32.dll
|
||||||
* FILE: lib/user32/windows/input.c
|
* FILE: lib/user32/windows/input.c
|
||||||
|
@ -202,19 +202,30 @@ IsCharAlphaA(
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char IsCharAlphaNumericA_lookup_table[] = {
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x03,
|
||||||
|
0xfe, 0xff, 0xff, 0x07, 0xfe, 0xff, 0xff, 0x07,
|
||||||
|
0x08, 0x54, 0x00, 0xd4, 0x00, 0x00, 0x0c, 0x02,
|
||||||
|
0xff, 0xff, 0x7f, 0xff, 0xff, 0xff, 0x7f, 0xff
|
||||||
|
};
|
||||||
|
|
||||||
WINBOOL
|
WINBOOL
|
||||||
STDCALL
|
STDCALL
|
||||||
IsCharAlphaNumericA(
|
IsCharAlphaNumericA(CHAR ch)
|
||||||
CHAR ch)
|
|
||||||
{
|
{
|
||||||
return FALSE;
|
// return (IsCharAlphaNumericA_lookup_table[ch / 8] & (1 << (ch % 8))) ? 1 : 0;
|
||||||
|
|
||||||
|
WCHAR wch;
|
||||||
|
MultiByteToWideChar(CP_ACP, 0, &ch, 1, &wch, 1);
|
||||||
|
return IsCharAlphaNumericW(wch);
|
||||||
|
//return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
WINBOOL
|
WINBOOL
|
||||||
STDCALL
|
STDCALL
|
||||||
IsCharAlphaNumericW(
|
IsCharAlphaNumericW(WCHAR ch)
|
||||||
WCHAR ch)
|
|
||||||
{
|
{
|
||||||
|
//return (get_char_typeW(ch) & (C1_ALPHA|C1_DIGIT)) != 0;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue