Implement regex_traits::lookup_classname.