30 lines
565 B
C
30 lines
565 B
C
#include <stdio.h>
|
|
#include <mbctype.h>
|
|
#include <mbstring.h>
|
|
|
|
unsigned int chars[] = {
|
|
'.',
|
|
'1',
|
|
'A',
|
|
0x8143, /* double-byte , */
|
|
0x8183, /* double-byte < */
|
|
0x8254, /* double-byte 5 */
|
|
0x8277, /* double-byte X */
|
|
0xA6
|
|
};
|
|
|
|
#define SIZE sizeof( chars ) / sizeof( unsigned int )
|
|
|
|
void main()
|
|
{
|
|
int i;
|
|
|
|
_setmbcp( 932 );
|
|
for( i = 0; i < SIZE; i++ ) {
|
|
printf( "%#6.4x is %sa valid "
|
|
"multibyte digit character\n",
|
|
chars[i],
|
|
( _ismbcdigit( chars[i] ) ) ? "" : "not " );
|
|
}
|
|
}
|