mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:13:06 +00:00
This really needs to go in a branch. It needs heavy testing and can't coincide with the current shell32 due to PSDK interface changes
svn path=/branches/shell32_new-bringup/; revision=51893
This commit is contained in:
parent
4596e5e59b
commit
4019caae75
23116 changed files with 0 additions and 1109022 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