ReactOS  0.4.15-dev-1039-gb9754fa
ismblead.c File Reference
#include <precomp.h>
#include <mbctype.h>
Include dependency graph for ismblead.c:

Go to the source code of this file.

Functions

int _ismbblead (unsigned int c)
 
int _ismbslead (const unsigned char *start, const unsigned char *str)
 
unsigned char__p__mbctype (void)
 

Function Documentation

◆ __p__mbctype()

unsigned char* __p__mbctype ( void  )

Definition at line 48 of file ismblead.c.

49 {
50  return get_mbcinfo()->mbctype;
51 }
unsigned char mbctype[257]
Definition: msvcrt.h:143
MSVCRT_pthreadmbcinfo get_mbcinfo(void)
Definition: locale.c:364

◆ _ismbblead()

◆ _ismbslead()

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

Definition at line 28 of file ismblead.c.

29 {
30  int lead = 0;
31 
32  /* Lead bytes can also be trail bytes so we need to analyse the string
33  */
34  while (start <= str)
35  {
36  if (!*start)
37  return 0;
38  lead = !lead && _ismbblead(*start);
39  start++;
40  }
41 
42  return lead ? -1 : 0;
43 }
int _ismbblead(unsigned int c)
Definition: ismblead.c:20
const WCHAR * str
GLuint start
Definition: gl.h:1545