Home
last modified time | relevance | path

Searched refs:entities (Results 1 – 25 of 310) sorted by relevance

12345678910>>...13

/third_party/python/Tools/scripts/
Dparse_html5_entities.py15 from html.entities import html5
25 def create_dict(entities): argument
28 for name, value in entities.items():
53 def write_items(entities, file=sys.stdout): argument
63 keys = sorted(entities.keys())
67 print(' {!r}: {!a},'.format(name, entities[name]), file=file)
/third_party/python/Doc/library/
Dhtml.entities.rst1 :mod:`html.entities` --- Definitions of HTML general entities
4 .. module:: html.entities
5 :synopsis: Definitions of HTML general entities.
9 **Source code:** :source:`Lib/html/entities.py`
Dxml.sax.utils.rst19 .. function:: escape(data, entities={})
24 *entities* parameter. The keys and values must all be strings; each key will be
26 ``'>'`` are always escaped, even if *entities* is provided.
29 .. function:: unescape(data, entities={})
34 *entities* parameter. The keys and values must all be strings; each key will be
36 are always unescaped, even if *entities* is provided.
39 .. function:: quoteattr(data, entities={})
Dxml.rst77 2. :mod:`xml.etree.ElementTree` doesn't expand external entities and raises a
79 3. :mod:`xml.dom.minidom` doesn't expand external entities and simply returns
81 4. :mod:`xmlrpclib` doesn't expand external entities and omits them.
82 5. Since Python 3.7.1, external general entities are no longer processed by
88 uses multiple levels of nested entities. Each entity refers to another entity
95 entity expansion, too. Instead of nested entities it repeats one large entity
98 that forbid deeply-nested entities.
Dxml.sax.handler.rst34 (unparsed entities and attributes).
39 Basic interface for resolving entities. If you create an object implementing
41 the method in your object to resolve all external entities.
91 | true: Report all validation errors (implies external-general-entities and
92 external-parameter-entities).
99 | value: ``"http://xml.org/sax/features/external-general-entities"``
100 | true: Include all external general (text) entities.
101 | false: Do not include external general entities.
107 | value: ``"http://xml.org/sax/features/external-parameter-entities"``
108 | true: Include all external parameter entities, including the external DTD
[all …]
Dhtml.rst30 HTML 5 named character references <html.entities.html5>`.
39 * :mod:`html.entities` -- HTML entity definitions
Dpyexpat.rst176 Control parsing of parameter entities (including the external DTD subset).
388 Called for all entity declarations. For parameter and internal entities,
390 be ``None`` for external entities. The *notationName* parameter will be
391 ``None`` for parsed entities, and the name of the notation for unparsed
392 entities. *is_parameter_entity* will be true if the entity is a parameter entity
393 or false for general entities (most applications only need to be concerned with
394 general entities). This is only available starting with version 1.95.0 of the
450 of internal entities. The entity reference will not be passed to the default
466 Called for references to external entities. *base* is the current base, as set
472 For external entities to be parsed, this handler must be implemented. It is
[all …]
Dmarkup.rst17 html.entities.rst
/third_party/python/Lib/xml/sax/
Dsaxutils.py18 def escape(data, entities={}): argument
30 if entities:
31 data = __dict_replace(data, entities)
34 def unescape(data, entities={}): argument
43 if entities:
44 data = __dict_replace(data, entities)
48 def quoteattr(data, entities={}): argument
59 entities = {**entities, '\n': '&#10;', '\r': '&#13;', '\t':'&#9;'}
60 data = escape(data, entities)
/third_party/typescript/tests/baselines/reference/
DkeyofAndIndexedAccess2.js82 entities: { [key: string]: E, [key: number]: E };
87 const { ids, entities } = state;
88 return ids.map(id => entities[id]);
92 const { ids, entities } = state;
98 return entities[id];
230 const { ids, entities } = state;
231 return ids.map(id => entities[id]);
234 const { ids, entities } = state;
238 return entities[id];
DkeyofAndIndexedAccess2.types353 entities: { [key: string]: E, [key: number]: E };
354 >entities : { [key: string]: E; [key: number]: E; }
364 const { ids, entities } = state;
366 >entities : { [key: string]: E; [key: number]: E; }
369 return ids.map(id => entities[id]);
370 >ids.map(id => entities[id]) : { [key: string]: E; [key: number]: E; }[IdOf<E>][]
374 >id => entities[id] : (id: IdOf<E>) => { [key: string]: E; [key: number]: E; }[IdOf<E>]
376 >entities[id] : { [key: string]: E; [key: number]: E; }[IdOf<E>]
377 >entities : { [key: string]: E; [key: number]: E; }
386 const { ids, entities } = state;
[all …]
DkeyofAndIndexedAccess2.symbols309 entities: { [key: string]: E, [key: number]: E };
310 >entities : Symbol(EntityState.entities, Decl(keyofAndIndexedAccess2.ts, 79, 19))
327 const { ids, entities } = state;
329 >entities : Symbol(entities, Decl(keyofAndIndexedAccess2.ts, 85, 16))
332 return ids.map(id => entities[id]);
337 >entities : Symbol(entities, Decl(keyofAndIndexedAccess2.ts, 85, 16))
353 const { ids, entities } = state;
355 >entities : Symbol(entities, Decl(keyofAndIndexedAccess2.ts, 90, 16))
368 return entities[id];
369 >entities : Symbol(entities, Decl(keyofAndIndexedAccess2.ts, 90, 16))
DkeyofAndIndexedAccess2.errors.txt160 entities: { [key: string]: E, [key: number]: E };
165 const { ids, entities } = state;
166 return ids.map(id => entities[id]);
170 const { ids, entities } = state;
176 return entities[id];
/third_party/typescript/tests/cases/conformance/types/keyof/
DkeyofAndIndexedAccess2.ts84 entities: { [key: string]: E, [key: number]: E }; property
89 const { ids, entities } = state; constant
90 return ids.map(id => entities[id]);
94 const { ids, entities } = state; constant
100 return entities[id];
/third_party/libxml2/
Dbackport-CVE-2022-40304-Fix-dict-corruption-caused-by-entity-.patch20 entities.c | 55 ++++++++++++++++--------------------------------------
23 diff --git a/entities.c b/entities.c
25 --- a/entities.c
26 +++ b/entities.c
Dbackport-xpath-Ignore-entity-ref-nodes-when-computing-node-ha.patch6 XPath queries only work reliably if entities are substituted.
8 nodes. xmllint even deletes entities when the `--dropdtd` option is
Dbackport-parser-Don-t-increase-depth-twice-when-parsing-internal.patch5 entities
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
DUnitsConverter.java396 String[] entities = poweredEntity.split(Pattern.quote("^")); in addPoweredEntity() local
397 assert (entities.length == 1 || entities.length == 2); in addPoweredEntity()
399 int power = entities.length == 2 ? Integer.parseInt(entities[1]) : 1; in addPoweredEntity()
400 this.addEntity(entities[0], power); in addPoweredEntity()
/third_party/python/Lib/test/
Dtest_minidom.py32 doctype.entities._seq = []
43 doctype.entities._seq.append(entity)
49 doctype.entities.item(0).ownerDocument = doc
731 and len(clone.entities) == len(doctype.entities)
732 and clone.entities.item(len(clone.entities)) is None
736 for i in range(len(doctype.entities)):
737 se = doctype.entities.item(i)
738 ce = clone.entities.item(i)
770 and len(clone.entities) == 0
771 and clone.entities.item(0) is None
[all …]
/third_party/rust/crates/cxx/book/
Dbuild.js7 const entities = new Entities(); constant
67 const target = entities.decode(node.text());
/third_party/python/Lib/xml/dom/
Dexpatbuilder.py181 if self._options.entities:
255 doctype.entities._seq = []
310 if not self._options.entities:
319 self.document.doctype.entities._seq.append(node)
321 del self.document.doctype.entities._seq[-1]
668 for i in range(doctype.entities.length):
669 entity = doctype.entities.item(i)
/third_party/jsframework/runtime/main/extend/systemplugin/napi/ability/
Dwant.js26 entities: [paramMock.paramStringMock] property
/third_party/jsframework/runtime/main/extend/systemplugin/napi/
Dohos_application_Want.js27 this.entities = [paramMock.paramStringMock]; property
/third_party/jsframework/runtime/main/extend/systemplugin/napi/bundle/
DapplicationInfo.js62 entities: [paramMock.paramStringMock], property
/third_party/python/Lib/html/
D__init__.py6 from html.entities import html5 as _html5

12345678910>>...13