mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:25:48 +00:00
Create a branch for Aleksandar Andrejevic for his work on NTVDM. See http://jira.reactos.org/browse/CORE-7250 for more details.
svn path=/branches/ntvdm/; revision=59241
This commit is contained in:
parent
3e3200acef
commit
4f0b8d3db0
20620 changed files with 0 additions and 1232833 deletions
58
lib/sdk/crt/mbstring/ischira.c
Normal file
58
lib/sdk/crt/mbstring/ischira.c
Normal file
|
@ -0,0 +1,58 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: lib/sdk/crt/mbstring/ischira.c
|
||||
* PURPOSE:
|
||||
* PROGRAMER:
|
||||
* UPDATE HISTORY:
|
||||
* 12/04/99: Ariadne Created
|
||||
* 05/30/08: Samuel Serapion adapted from PROJECT C Library
|
||||
*
|
||||
*/
|
||||
|
||||
#include <mbctype.h>
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
int _ismbchira( unsigned int c )
|
||||
{
|
||||
return ((c>=0x829F) && (c<=0x82F1));
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
int _ismbckata( unsigned int c )
|
||||
{
|
||||
return ((c>=0x8340) && (c<=0x8396));
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
unsigned int _mbctohira( unsigned int c )
|
||||
{
|
||||
if (c >= 0x8340 && c <= 0x837e)
|
||||
return c - 0xa1;
|
||||
else if (c >= 0x8380 && c <= 0x8396)
|
||||
return c - 0xa2;
|
||||
else
|
||||
return c;
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
unsigned int _mbctokata( unsigned int c )
|
||||
{
|
||||
if (c >= 0x829f && c <= 0x82dd)
|
||||
return c + 0xa1;
|
||||
else if (c >= 0x82de && c <= 0x82f1)
|
||||
return c + 0xa2;
|
||||
else
|
||||
return c;
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue