> =item BINARY (0)
> =item ASCII (1)
> =item EBCDIC (2)
> =item UTF_8 (3)
> =item UTF_32 (4)
> =item NATIVE_1 (5) through NATIVE_3 (7)

A little more complex, but why not use bits 3-7 as actual flags:
7|6|5|4|3|2|1|0
0 0 0 0 1 x x x = UTF && UTF_8
0 0 0 1 1 x x x = UTF && UTF_32
x x 1 0 1 x x x = UTF && UTF_ALT_1 thru UTF_ALT_7
x x 1 0 0 x x x = !UTF && NATIVE_1 thru NATIVE_7
This gives future options if needed.
Grant M.


Reply via email to