LICENSE: X11 CHANGELOG: * dlls/msvcrt: mbcs.c, msvcrt.spec: Greg Turner <gmturner007@ameritech.net> - Implement _ismbcalpha, _ismbcalnum (partially) -- gmt "The purpose of government is to rein in the rights of the people" --President Bill Clinton, MTV interview, 1993
diff -ur -x CVS -x 'bigdif*' ../wine.test/dlls/msvcrt/mbcs.c ./dlls/msvcrt/mbcs.c --- ../wine.test/dlls/msvcrt/mbcs.c 2002-05-31 18:25:49.000000000 -0500 +++ ./dlls/msvcrt/mbcs.c 2002-10-28 11:11:39.000000000 -0600 @@ -563,6 +563,31 @@ } /********************************************************************* + * _ismbcalpha (MSVCRT.@) + */ +int _ismbcalpha(unsigned int ch) +{ + if (ch < 0x100) + return ((0x41 <= ch && ch <= 0x5a) || + (0x61 <= ch && ch <= 0x7a) || + /* Japanese/Katakana, CP 932 */ + (0xa6 <= ch && ch <= 0xdf)); + else + { + FIXME("Handle MBC chars\n"); + return 0; + } +} + +/********************************************************************* + * _ismbcalnum (MSVCRT.@) + */ +int _ismbcalnum(unsigned int ch) +{ + return (_ismbcdigit(ch) || _ismbcalpha(ch)); +} + +/********************************************************************* * _ismbcspace (MSVCRT.@) */ int _ismbcspace(unsigned int c) diff -ur -x CVS -x 'bigdif*' ../wine.test/dlls/msvcrt/msvcrt.spec ./dlls/msvcrt/msvcrt.spec --- ../wine.test/dlls/msvcrt/msvcrt.spec 2002-10-16 17:23:02.000000000 -0500 +++ ./dlls/msvcrt/msvcrt.spec 2002-10-28 11:13:27.000000000 -0600 @@ -292,8 +292,8 @@ @ stub _ismbbprint #(long) @ stub _ismbbpunct #(long) @ cdecl _ismbbtrail(long) _ismbbtrail -@ stub _ismbcalnum #(long) -@ stub _ismbcalpha #(long) +@ cdecl _ismbcalnum(long) _ismbcalnum +@ cdecl _ismbcalpha(long) _ismbcalpha @ cdecl _ismbcdigit(long) _ismbcdigit @ stub _ismbcgraph #(long) @ cdecl _ismbchira(long) _ismbchira