Lines Matching defs:ENTITY
201 } ENTITY;
267 /* false once a parameter entity reference has been skipped */
293 ENTITY *entity;
334 processInternalEntity(XML_Parser parser, ENTITY *entity,
512 ENTITY *m_declEntity;
688 parsers (i.e. external entity parsers) will inherit it
1124 /* external parameter entity parsers share the DTD structure
1861 XML_L("illegal parameter entity reference"),
1862 XML_L("undefined entity"),
1863 XML_L("recursive entity reference"),
1864 XML_L("asynchronous entity"),
1866 XML_L("reference to binary entity"),
1867 XML_L("reference to external entity in attribute"),
1868 XML_L("XML or text declaration not at start of entity"),
1872 XML_L("error in processing external entity reference"),
1875 XML_L("entity declared in parameter entity"),
1880 XML_L("incomplete markup in parameter entity"),
1888 XML_L("cannot suspend in external parameter entity"),
2227 ENTITY *entity;
2243 entity = (ENTITY *)lookup(&dtd->generalEntities, name, 0);
2246 if yes, check that the entity exists, and that it is internal,
2247 otherwise call the skipped entity or default handler.
2250 if (!entity)
2252 else if (!entity->is_internal)
2255 else if (!entity) {
2262 if (entity->open)
2264 if (entity->notation)
2266 if (entity->textPtr) {
2270 skippedEntityHandler(handlerArg, entity->name, 0);
2275 result = processInternalEntity(parser, entity, XML_FALSE);
2281 entity->open = XML_TRUE;
2283 entity->open = XML_FALSE;
2288 entity->base,
2289 entity->systemId,
2290 entity->publicId))
3073 if (parentParser) { /* we are parsing an external entity */
3468 so we consider the external parameter entity read */
3511 /* found end of entity value - can store it now */
3618 /* found end of entity value - can store it now */
3777 declEntity = (ENTITY *)lookup(&dtd->paramEntities,
3779 sizeof(ENTITY));
3832 ENTITY *entity = (ENTITY *)lookup(&dtd->paramEntities,
3834 sizeof(ENTITY));
3835 if (!entity)
3838 entity->base = curBase;
3842 entity->base,
3843 entity->systemId,
3844 entity->publicId))
3876 ENTITY *entity = (ENTITY *)lookup(&dtd->paramEntities,
3878 sizeof(ENTITY));
3879 if (!entity)
3881 entity->base = curBase;
3885 entity->base,
3886 entity->systemId,
3887 entity->publicId))
4090 declEntity = (ENTITY *)lookup(&dtd->paramEntities,
4092 sizeof(ENTITY));
4165 declEntity = (ENTITY *)lookup(&dtd->generalEntities, name,
4166 sizeof(ENTITY));
4178 entity, then the entity declaration is not considered "internal"
4197 declEntity = (ENTITY *)lookup(&dtd->paramEntities,
4198 name, sizeof(ENTITY));
4210 entity, then the entity declaration is not considered "internal"
4373 ENTITY *entity;
4379 entity = (ENTITY *)lookup(&dtd->paramEntities, name, 0);
4382 if yes, check that the entity exists, and that it is internal,
4383 otherwise call the skipped entity handler
4389 if (!entity)
4391 else if (!entity->is_internal)
4394 else if (!entity) {
4403 if (entity->open)
4405 if (entity->textPtr) {
4409 result = processInternalEntity(parser, entity, betweenDecl);
4417 entity->open = XML_TRUE;
4420 entity->base,
4421 entity->systemId,
4422 entity->publicId)) {
4423 entity->open = XML_FALSE;
4426 entity->open = XML_FALSE;
4683 processInternalEntity(XML_Parser parser, ENTITY *entity,
4700 entity->open = XML_TRUE;
4701 entity->processed = 0;
4704 openEntity->entity = entity;
4709 textStart = (char *)entity->textPtr;
4710 textEnd = (char *)(entity->textPtr + entity->textLen);
4713 if (entity->is_param) {
4725 entity->processed = (int)(next - textStart);
4729 entity->open = XML_FALSE;
4745 ENTITY *entity;
4753 entity = openEntity->entity;
4754 textStart = ((char *)entity->textPtr) + entity->processed;
4755 textEnd = (char *)(entity->textPtr + entity->textLen);
4758 if (entity->is_param) {
4771 entity->processed = (int)(next - (char *)entity->textPtr);
4775 entity->open = XML_FALSE;
4783 if (entity->is_param) {
4888 ENTITY *entity;
4903 entity = (ENTITY *)lookup(&dtd->generalEntities, name, 0);
4906 if yes, check that the entity exists, and that it is internal.
4919 if (!entity)
4921 else if (!entity->is_internal)
4924 else if (!entity) {
4925 /* Cannot report skipped entity here - see comments on
4937 if (entity->open) {
4942 if (entity->notation) {
4947 if (!entity->textPtr) {
4954 const XML_Char *textEnd = entity->textPtr + entity->textLen;
4955 entity->open = XML_TRUE;
4957 (char *)entity->textPtr,
4959 entity->open = XML_FALSE;
4989 since this would indicate an external entity; therefore we
5004 ENTITY *entity;
5012 entity = (ENTITY *)lookup(&dtd->paramEntities, name, 0);
5014 if (!entity) {
5015 /* not a well-formedness error - see XML 1.0: WFC Entity Declared */
5016 /* cannot report skipped entity here - see comments on
5024 if (entity->open) {
5030 if (entity->systemId) {
5033 entity->open = XML_TRUE;
5036 entity->base,
5037 entity->systemId,
5038 entity->publicId)) {
5039 entity->open = XML_FALSE;
5043 entity->open = XML_FALSE;
5051 entity->open = XML_TRUE;
5054 (char *)entity->textPtr,
5055 (char *)(entity->textPtr
5056 + entity->textLen));
5057 entity->open = XML_FALSE;
5065 within markup declarations, e.g entity values in this case. */
5431 ENTITY *e = (ENTITY *)hashTableIterNext(&iter);
5457 ENTITY *e;
5460 e = (ENTITY *)lookup(&dtd->generalEntities, poolStart(&tempPool), 0);
5739 /* Copy the entity tables. */
5780 ENTITY *newE;
5782 const ENTITY *oldE = (ENTITY *)hashTableIterNext(&iter);
5788 newE = (ENTITY *)lookup(newTable, name, sizeof(ENTITY));