parameters: (data)
return_statement: return impl
docstring: Implements UnicodeType.isidentifier()
docstring_summary: Implements UnicodeType.isidentifier()
docstring_tokens: Implements UnicodeType . isidentifier ()
function: def unicode_isidentifier(data):
      """Implements UnicodeType.isidentifier()"""
  
      def impl(data):
          length = len(data)
          if length == 0:
              return False
  
          first_cp = _get_code_point(data, 0)
          if not _PyUnicode_IsXidStart(first_cp) and first_cp != 0x5F:
              return False
  
          for i in range(1, length):
              code_point = _get_code_point(data, i)
              if not _PyUnicode_IsXidContinue(code_point):
                  return False
  
          return True
  
      return impl
function_tokens: def unicode_isidentifier ( data ) : def impl ( data ) : length = len ( data ) if length == 0 : return False first_cp = _get_code_point ( data , 0 ) if not _PyUnicode_IsXidStart ( first_cp ) and first_cp != 0x5F : return False for i in range ( 1 , length ) : code_point = _get_code_point ( data , i ) if not _PyUnicode_IsXidContinue ( code_point ) : return False return True return impl