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

Go to the source code of this file.

Functions

int CDECL _ismbchira (unsigned int c)
 
int CDECL _ismbckata (unsigned int c)
 
unsigned int CDECL _mbctohira (unsigned int c)
 
unsigned int CDECL _mbctokata (unsigned int c)
 

Function Documentation

◆ _ismbchira()

int CDECL _ismbchira ( unsigned int  c)

Definition at line 7 of file ischira.c.

8 {
9  if(get_mbcinfo()->mbcodepage == 932)
10  {
11  /* Japanese/Hiragana, CP 932 */
12  return (c >= 0x829f && c <= 0x82f1);
13  }
14  return 0;
15 }
const GLubyte * c
Definition: glext.h:8905
MSVCRT_pthreadmbcinfo get_mbcinfo(void)
Definition: locale.c:364

Referenced by _mbctokata().

◆ _ismbckata()

int CDECL _ismbckata ( unsigned int  c)

Definition at line 20 of file ischira.c.

21 {
22  if(get_mbcinfo()->mbcodepage == 932)
23  {
24  /* Japanese/Katakana, CP 932 */
25  return (c >= 0x8340 && c <= 0x8396 && c != 0x837f);
26  }
27  return 0;
28 }
const GLubyte * c
Definition: glext.h:8905
MSVCRT_pthreadmbcinfo get_mbcinfo(void)
Definition: locale.c:364

Referenced by _mbctohira().

◆ _mbctohira()

unsigned int CDECL _mbctohira ( unsigned int  c)

Definition at line 35 of file ischira.c.

36 {
37  if(_ismbckata(c) && c <= 0x8393)
38  return (c - 0x8340 - (c >= 0x837f ? 1 : 0)) + 0x829f;
39  return c;
40 }
int CDECL _ismbckata(unsigned int c)
Definition: ischira.c:20
const GLubyte * c
Definition: glext.h:8905
#define c
Definition: ke_i.h:80

◆ _mbctokata()

unsigned int CDECL _mbctokata ( unsigned int  c)

Definition at line 47 of file ischira.c.

48 {
49  if(_ismbchira(c))
50  return (c - 0x829f) + 0x8340 + (c >= 0x82de ? 1 : 0);
51  return c;
52 }
int CDECL _ismbchira(unsigned int c)
Definition: ischira.c:7
const GLubyte * c
Definition: glext.h:8905
#define c
Definition: ke_i.h:80