Searched refs:codepoint2name (Results 1 – 17 of 17) sorted by relevance
9 from html.entities import codepoint2name58 def __init__(self, codepoint2name, name2codepoint): argument60 c: str("&%s;" % n) for c, n in codepoint2name.items()126 _html_entities_escaper = XMLEntityEscaper(codepoint2name, name2codepoint)
2500 codepoint2name = {} variable2507 codepoint2name[codepoint] = name
260 codepoint2name = {} variable267 codepoint2name[codepoint] = name
10 from html.entities import codepoint2name19 name = codepoint2name.get(codepoint)
14 :data:`name2codepoint`, :data:`codepoint2name`, and :data:`entitydefs`.40 .. data:: codepoint2name
87 from html.entities import codepoint2name94 if ord(c) in codepoint2name:95 l.append("&%s;" % codepoint2name[ord(c)])
106 l.append("&%s;" % html.entities.codepoint2name[ord(c)])
80 from htmlentitydefs import codepoint2name87 if ord(c) in codepoint2name:88 l.append(u"&%s;" % codepoint2name[ord(c)])
108 l.append(u"&%s;" % htmlentitydefs.codepoint2name[ord(c)])
174 This module defines three dictionaries, ``name2codepoint``, ``codepoint2name``,195 .. data:: codepoint2name
4386 codepoint2name is the reverse mapping. See SF patch #722017.
21770 codepoint2name is the reverse mapping. See SF patch #722017.