mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 19:52:05 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
39
sdk/lib/crt/mbstring/ismbtrl.c
Normal file
39
sdk/lib/crt/mbstring/ismbtrl.c
Normal file
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: lib/sdk/crt/mbstring/ismbtrl.c
|
||||
* PURPOSE: Checks for a trailing byte
|
||||
* PROGRAMERS:
|
||||
* Copyright 1999 Ariadne
|
||||
* Copyright 1999 Alexandre Julliard
|
||||
* Copyright 2000 Jon Griffths
|
||||
*
|
||||
*/
|
||||
|
||||
#include <precomp.h>
|
||||
#include <mbctype.h>
|
||||
|
||||
size_t _mbclen2(const unsigned int s);
|
||||
|
||||
// iskanji2() : (0x40 <= c <= 0x7E 0x80 <= c <= 0xFC)
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
int _ismbbtrail(unsigned int c)
|
||||
{
|
||||
return (get_mbcinfo()->mbctype[(c&0xff) + 1] & _M2) != 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
int _ismbstrail( const unsigned char *start, const unsigned char *str)
|
||||
{
|
||||
/* Note: this function doesn't check _ismbbtrail */
|
||||
if ((str > start) && _ismbslead(start, str-1))
|
||||
return -1;
|
||||
else
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue