*j=9 S r SSKr\R " S5 R r\R " S5 R r\R " S5 r\R " S5 r\R " S5 rC " S S 5 r g) zShared support for scanning document type declarations in HTML and XHTML. This module is used as a foundation for the html.parser module. It has no documented public API and should not be used directly. Nz[a-zA-Z][-_.a-zA-Z0-9]*\s*z(\'[^\']*\'|"[^"]*")\s*z--\s*>z ]\s*]\s*>z]\s*>c x \ rS rSrSrS rS rS rS rSr S r SS jrSS jrS r S rS rS rS rS rS rSrg) ParserBase zeParser base class which provides some common support methods used by the SGML/HTML and XHTML parsers.c @ U R [ L a [ S5 eg )Nz)_markupbase.ParserBase must be subclassed) __class__r RuntimeErrorselfs 2/opt/alt/python313/lib64/python3.13/_markupbase.py__init__ParserBase.__init__ s# >>Z';= = ( c SU l SU l g )N r linenooffsetr s r resetParserBase.reset s r c 2 U R U R 4$ )z&Return current line number and offset.r r s r getposParserBase.getpos$ s {{DKK''r c X: a U$ U R nUR SX5 nU( a4 U R U- U l UR SX5 nX%S- - U l U$ U R U- U- U l U$ )N r )rawdatacountr rindexr )r ijr nlinesposs r updateposParserBase.updatepos, sw 6H,,tQ*++.DK..q,CU)DK ++/!+DKr c 0 U R nUS- nX#US- S:X a US- $ X#US- S; a g[ U5 nX#US- S:X a U R U5 $ X# S:X a U R U5 $ U R X15 u pSUS: a U$ US :X a S U l X4: a X# nUS:X a9 X!S- U nUS :X a U R U5 US- $ U R U5 US- $ US; a$ [ X#5 nU( d gUR 5 nOUS; a U R X15 u pOfX`R ; a US- nOQUS:X a; US :X a U R US- U5 nO/US ; a [ SU- 5 e[ S5 e[ SX# - 5 eUS: a U$ X4: a M g)N r >)-r$ z--[r doctyper$ z"'4abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ> linkattlistelementlinktypez&unsupported '[' char in %s declarationz"unexpected '[' char in declarationz!unexpected %r char in declaration)r len parse_commentparse_marked_section _scan_name_decl_othercharshandle_declunknown_decl_declstringlit_matchend_parse_doctype_subsetAssertionError) r r r r ndecltypecdatamnames r parse_declarationParserBase.parse_declaration<