blob: f71f55674a390700dab4f2ca633040930d81ac4f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
/***
*ismbcknj.c - contains the Kanji specific is* functions.
*
* Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
*
*Purpose:
* Provide non-portable Kanji support for MBCS libs.
*
*Revision History:
* 11-19-92 KRS Ported from 16-bit sources.
*
*******************************************************************************/
#ifdef _MBCS
#ifdef _KANJI
#include <cruntime.h>
#include <mbdata.h>
#include <mbstring.h>
/***
*int _ismbchira(c) - test character for hiragana (Japanese)
*
*Purpose:
* Test if the character c is a hiragana character.
*
*Entry:
* unsigned int c - character to test
*
*Exit:
* returns TRUE if character is hiragana, else FALSE
*
*Exceptions:
*
*******************************************************************************/
int _CRTAPI1 _ismbchira(c)
unsigned int c;
{
return(c >= 0x829f && c <= 0x82f1);
}
/***
*int _ismbckata(c) - test character for katakana (Japanese)
*
*Purpose:
* Tests to see if the character c is a katakana character.
*
*Entry:
* unsigned int c - character to test
*
*Exit:
* Returns TRUE if c is a katakana character, else FALSE.
*
*Exceptions:
*
*******************************************************************************/
int _CRTAPI1 _ismbckata(c)
unsigned int c;
{
return(c >= 0x8340 && c <= 0x8396 && c != 0x837f);
}
/***
*int _ismbcsymbol(c) - Tests if char is punctuation or symbol of Microsoft Kanji
* code.
*
*Purpose:
* Returns non-zero if the character is kanji punctuation.
*
*Entry:
* unsigned int c - character to be tested
*
*Exit:
* Returns non-zero if the specified char is punctuation or symbol of
* Microsoft Kanji code, else 0.
*
*Exceptions:
*
*******************************************************************************/
int _CRTAPI1 _ismbcsymbol(c)
unsigned int c;
{
return(c >= 0x8141 && c <= 0x81ac && c != 0x817f);
}
#endif /* _KANJI */
#endif /* _MBCS */
|