(self, i)
Parse named Unicode.
Parse named Unicode.
Parse named Unicode .
def parse_named_unicode(self, i):
        """Parse named Unicode."""

        value = _util.uord(_unicodedata.lookup(self.get_named_unicode(i)))
        single = self.get_single_stack()
        if self.span_stack:
            text = self.convert_case(_util.uchr(value), self.span_stack[-1])
            value = _util.uord(self.convert_case(text, single)) if single is not None else _util.uord(text)
        elif single:
            value = _util.uord(self.convert_case(_util.uchr(value), single))
        if self.use_format and value in _CURLY_BRACKETS_ORD:
            self.handle_format(_util.uchr(value), i)
        elif value <= 0xFF:
            self.result.append('\\%03o' % value)
        else:
            self.result.append(_util.uchr(value))
def parse_named_unicode ( self , i ) : value = _util . uord ( _unicodedata . lookup ( self . get_named_unicode ( i ) ) ) single = self . get_single_stack ( ) if self . span_stack : text = self . convert_case ( _util . uchr ( value ) , self . span_stack [ - 1 ] ) value = _util . uord ( self . convert_case ( text , single ) ) if single is not None else _util . uord ( text ) elif single : value = _util . uord ( self . convert_case ( _util . uchr ( value ) , single ) ) if self . use_format and value in _CURLY_BRACKETS_ORD : self . handle_format ( _util . uchr ( value ) , i ) elif value <= 0xFF : self . result . append ( '\\%03o' % value ) else : self . result . append ( _util . uchr ( value ) )