Partially implement regex_traits::transform_primary.
Implement regex_traits::lookup_collatename.