implement a private state for the uchar.h functions