ReactOS  0.4.13-dev-99-g7e18b6d
ismbc.c File Reference
#include <precomp.h>
#include <mbstring.h>
#include <mbctype.h>
Include dependency graph for ismbc.c:

Go to the source code of this file.

Functions

int _ismbcalnum (unsigned int c)
 
int _ismbcalpha (unsigned int c)
 
int _ismbcdigit (unsigned int c)
 
int _ismbcprint (unsigned int c)
 
int _ismbcsymbol (unsigned int c)
 
int _ismbcspace (unsigned int c)
 
int _ismbclegal (unsigned int c)
 
int _ismbcl0 (unsigned int c)
 
int _ismbcl1 (unsigned int c)
 
int _ismbcl2 (unsigned int c)
 
int _ismbcgraph (unsigned int ch)
 
int _ismbcpunct (unsigned int ch)
 

Function Documentation

◆ _ismbcalnum()

int _ismbcalnum ( unsigned int  c)

Definition at line 20 of file ismbc.c.

21 {
22  if ((c & 0xFF00) != 0) {
23  // true multibyte character
24  return 0;
25  }
26  else
27  return _ismbbalnum(c);
28 
29  return 0;
30 }
_Check_return_ _CRTIMP int __cdecl _ismbbalnum(_In_ unsigned int _C)
const GLubyte * c
Definition: glext.h:8905

◆ _ismbcalpha()

int _ismbcalpha ( unsigned int  c)

Definition at line 35 of file ismbc.c.

36 {
37  return (_ismbcupper (c) || _ismbclower (c));
38 }
_Check_return_ _CRTIMP int __cdecl _ismbcupper(_In_ unsigned int _Ch)
_Check_return_ _CRTIMP int __cdecl _ismbclower(_In_ unsigned int _Ch)
const GLubyte * c
Definition: glext.h:8905

◆ _ismbcdigit()

int _ismbcdigit ( unsigned int  c)

Definition at line 43 of file ismbc.c.

44 {
45  return ((c) >= 0x824f && (c) <= 0x8258);
46 }
const GLubyte * c
Definition: glext.h:8905

◆ _ismbcgraph()

int _ismbcgraph ( unsigned int  ch)

Definition at line 106 of file ismbc.c.

107 {
108  //wchar_t wch = msvcrt_mbc_to_wc( ch );
109  //return (get_char_typeW( wch ) & (C1_UPPER | C1_LOWER | C1_DIGIT | C1_PUNCT | C1_ALPHA));
110  return 0;
111 }

◆ _ismbcl0()

int _ismbcl0 ( unsigned int  c)

Definition at line 82 of file ismbc.c.

83 {
84  return (c >= 0x8140 && c <= 0x889e);
85 }
const GLubyte * c
Definition: glext.h:8905

◆ _ismbcl1()

int _ismbcl1 ( unsigned int  c)

Definition at line 90 of file ismbc.c.

91 {
92  return (c >= 0x889f && c <= 0x9872);
93 }
const GLubyte * c
Definition: glext.h:8905

◆ _ismbcl2()

int _ismbcl2 ( unsigned int  c)

Definition at line 98 of file ismbc.c.

99 {
100  return (c >= 0x989f && c <= 0xea9e);
101 }
const GLubyte * c
Definition: glext.h:8905

◆ _ismbclegal()

int _ismbclegal ( unsigned int  c)

Definition at line 74 of file ismbc.c.

75 {
76  return (_ismbblead (_MBGETH (c)) && _ismbbtrail (_MBGETL (c)));
77 }
_Check_return_ _CRTIMP int __cdecl _ismbbtrail(_In_ unsigned int _C)
#define _MBGETH(c)
Definition: mbstring.h:23
const GLubyte * c
Definition: glext.h:8905
int __cdecl _ismbblead(unsigned int)
Definition: ismblead.c:20
#define _MBGETL(c)
Definition: mbstring.h:22

Referenced by _ismbcprint().

◆ _ismbcprint()

int _ismbcprint ( unsigned int  c)

Definition at line 51 of file ismbc.c.

52 {
53  return (_MBHMASK (c) ? _ismbclegal (c) : (isprint (c) || _ismbbkana (c)));
54 }
int _ismbclegal(unsigned int c)
Definition: ismbc.c:74
_Check_return_ _CRTIMP int __cdecl _ismbbkana(_In_ unsigned int _C)
const GLubyte * c
Definition: glext.h:8905
#define _MBHMASK(c)
Definition: mbstring.h:21
#define isprint(c)
Definition: acclib.h:73

◆ _ismbcpunct()

int _ismbcpunct ( unsigned int  ch)

Definition at line 116 of file ismbc.c.

117 {
118  //wchar_t wch = msvcrt_mbc_to_wc( ch );
119  //return (get_char_typeW( wch ) & C1_PUNCT);
120  return 0;
121 }

◆ _ismbcspace()

int _ismbcspace ( unsigned int  c)

Definition at line 67 of file ismbc.c.

68 {
69  return ((c) == 0x8140);
70 }
const GLubyte * c
Definition: glext.h:8905

◆ _ismbcsymbol()

int _ismbcsymbol ( unsigned int  c)

Definition at line 59 of file ismbc.c.

60 {
61  return (c >= 0x8141 && c <= 0x817e) || (c >= 0x8180 && c <= 0x81ac);
62 }
const GLubyte * c
Definition: glext.h:8905