class_docstr: Parser base class which provides some common support methods used
  by the SGML/HTML and XHTML parsers.
code: def _scan_name(self, i, declstartpos):
      rawdata = self.rawdata
      n = len(rawdata)
      if i == n:
          return None, -1
      m = _declname_match(rawdata, i)
      if m:
          s = m.group()
          name = s.strip()
          if (i + len(s)) == n:
              return None, -1  # end of buffer
          return name.lower(), m.end()
      else:
          self.updatepos(declstartpos, i)
          raise AssertionError(
              "expected name token at %r"
              % rawdata[declstartpos : declstartpos + 20]
          )
  
file_path: cpython/Lib/_markupbase.py
imports: import re
label_desc: Use image node_id 13 for calling the ParserBase obj's underlying member method code with example usage: obj._scan_name(i, declstartpos) and returns: None,  unknown, name,  m, None,  unknown