reactos/lib/sdk/crt/mbstring/ischira.c
Cameron Gutman 29fa274d6d - Create another branch for networking fixes
- TSVN choked repeatedly when attempting to merge ~9000 revs into the branch (tried 3 times on 2 different computers)
 - If someone wants to delete aicom-network-fixes, they are welcome to
 - Lesson learned: Letting a branch get thousands of revs out of date is a horrible idea

svn path=/branches/aicom-network-branch/; revision=44353
2009-12-02 03:23:19 +00:00

58 lines
945 B
C

/*
* 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;
}