def u(s):
        us = re.sub(_U16_RE, lambda m: unichr(int(m.group('hexval'), 16)), unicode(s))
        us = re.sub(_U32_RE, lambda m: unichr(int(m.group('hexval'), 16)), us)
        us = re.sub(_UNAME_RE, lambda m: unicodedata.lookup(m.group('name')), us)
        return us
Generate Unicode string from a string input, encoding Unicode characters.
dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/util.py/u