- Update many parts of CRT, and misc cleanup.

- Largely based on the patch by Samuel Serapion.
- Include file.c from Wine's msvcrt, but exclude its contents from the build process for now.

svn path=/trunk/; revision=33866
This commit is contained in:
Aleksey Bragin 2008-06-06 17:49:24 +00:00
parent 3f2bc58da5
commit 45ebe0ccc2
89 changed files with 4487 additions and 1700 deletions

View file

@ -1,14 +1,15 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/msvcrt/mbstring/ischira.c
* FILE: lib/sdk/crt/mbstring/ischira.c
* PURPOSE:
* PROGRAMER: Ariadne
* PROGRAMER:
* UPDATE HISTORY:
* 12/04/99: Created
* 12/04/99: Ariadne Created
* 05/30/08: Samuel Serapion adapted from PROJECT C Library
*
*/
#include <mbstring.h>
#include <mbctype.h>
@ -29,18 +30,29 @@ int _ismbckata( unsigned int c )
}
/*
* @unimplemented
* @implemented
*/
unsigned int _mbctohira( unsigned int c )
{
return c;
if (c >= 0x8340 && c <= 0x837e)
return c - 0xa1;
else if (c >= 0x8380 && c <= 0x8396)
return c - 0xa2;
else
return c;
}
/*
* @unimplemented
* @implemented
*/
unsigned int _mbctokata( unsigned int c )
{
return c;
if (c >= 0x829f && c <= 0x82dd)
return c + 0xa1;
else if (c >= 0x82de && c <= 0x82f1)
return c + 0xa2;
else
return c;
}