added some test results
[tridge/junkcode.git] / map_table.c
1 #include <stdio.h>
2
3 #define smb_ucs2_t unsigned short
4 #define UNI_UPPER    0x1
5 #define UNI_LOWER    0x2
6 #define UNI_DIGIT    0x4
7 #define UNI_XDIGIT   0x8
8 #define UNI_SPACE    0x10
9
10 typedef struct {
11         smb_ucs2_t lower;
12         smb_ucs2_t upper;
13         unsigned char flags;
14 } smb_unicode_table_t;
15
16 smb_unicode_table_t map_table[] = {
17 #include "unicode_map_table.h"
18 };
19
20
21 main()
22 {
23         int i, count=0;
24         for (i=0;i<65536;i++) {
25                 if (map_table[i].lower != map_table[i].upper) {
26                         printf("0x%04x %d\n", i, map_table[i].upper - map_table[i].lower);
27                         count++;
28                 }
29         }
30         printf("count=%d\n", count);
31 }