1 function reset_vals
() {
16 flagstr =
sprintf("%s|%s", flagstr
, "UNI_UPPER");
18 flagstr =
sprintf("%s|%s", flagstr
, "UNI_LOWER");
19 if ( val
>=
48 && val
<=
57)
20 flagstr =
sprintf("%s|%s", flagstr
, "UNI_DIGIT");
21 if ((val
>=
48 && val
<=
57) || (val
>=
65 && val
<=
70) || (val
>=
97 && val
<=
102))
22 flagstr =
sprintf("%s|%s", flagstr
, "UNI_XDIGIT");
23 if ( val ==
32 || (val
>=
9 && val
<=
13))
24 flagstr =
sprintf("%s|%s", flagstr
, "UNI_SPACE");
25 if( index(flagstr
, "0|") ==
1)
26 flagstr =
substr(flagstr
, 3, length(flagstr
) - 2);
27 printf("{ 0x%s, 0x%s, %s }, \t\t\t/* %s %s */\n", lowerstr
, upperstr
, flagstr
, strval
, $
2);
29 strval=
sprintf("%04X", val
);
36 strval=
sprintf("%04X", val
);
44 while ( $
1 != strval
) {
45 printf("{ 0x%04X, 0x%04X, 0 }, \t\t\t/* %s NOMAP */\n", val
, val
, strval
);
47 strval=
sprintf("%04X", val
);
54 while ( val
< 65536 ) {
55 printf("{ 0x%04X, 0x%04X, 0 }, \t\t\t/* %s NOMAP */\n", val
, val
, strval
);
57 strval=
sprintf("%04X", val
);