ReactOS 0.4.16-dev-2110-ge3521eb
ismbtrl.c File Reference
#include <precomp.h>
#include <mbctype.h>
Include dependency graph for ismbtrl.c:

Go to the source code of this file.

Functions

size_t _mbclen2 (const unsigned int s)
 
int _ismbbtrail (unsigned int c)
 
int _ismbstrail (const unsigned char *start, const unsigned char *str)
 

Function Documentation

◆ _ismbbtrail()

int _ismbbtrail ( unsigned int  c)

Definition at line 23 of file ismbtrl.c.

24{
25 return (get_mbcinfo()->mbctype[(c&0xff) + 1] & _M2) != 0;
26}
#define _M2
Definition: mbctype.h:39
pthreadmbcinfo CDECL get_mbcinfo(void)
Definition: locale.c:642
const GLubyte * c
Definition: glext.h:8905

Referenced by _ismbclegal(), _mbclen2(), _mbsbtype(), test__mbbtype(), and test_mbcp().

◆ _ismbstrail()

int _ismbstrail ( const unsigned char start,
const unsigned char str 
)

Definition at line 32 of file ismbtrl.c.

33{
34 /* Note: this function doesn't check _ismbbtrail */
35 if ((str > start) && _ismbslead(start, str-1))
36 return -1;
37 else
38 return 0;
39}
_ACRTIMP int __cdecl _ismbslead(const unsigned char *, const unsigned char *)
Definition: mbcs.c:2156
GLuint start
Definition: gl.h:1545
const WCHAR * str

◆ _mbclen2()

size_t _mbclen2 ( const unsigned int  s)

Definition at line 23 of file mbclen.c.

24{
25 return (_ismbblead(s>>8) && _ismbbtrail(s&0x00FF)) ? 2 : 1;
26}
_ACRTIMP int __cdecl _ismbbtrail(unsigned int)
Definition: mbcs.c:2100
_ACRTIMP int __cdecl _ismbblead(unsigned int)
Definition: mbcs.c:2077
GLdouble s
Definition: gl.h:2039