• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/expat-2.0.1/lib/

Lines Matching refs:dtd

436              DTD *dtd);
702 DTD *dtd)
748 if (dtd)
749 _dtd = dtd;
2157 DTD * const dtd = _dtd;
2238 name = poolStoreString(&dtd->pool, enc,
2243 entity = (ENTITY *)lookup(&dtd->generalEntities, name, 0);
2244 poolDiscard(&dtd->pool);
2249 if (!dtd->hasParamEntityRefs || dtd->standalone) {
2619 DTD * const dtd = _dtd; /* save one level of indirection */
2633 elementType = (ELEMENT_TYPE *)lookup(&dtd->elementTypes, tagNamePtr->str,0);
2635 const XML_Char *name = poolCopyString(&dtd->pool, tagNamePtr->str);
2638 elementType = (ELEMENT_TYPE *)lookup(&dtd->elementTypes, name,
2809 id = (ATTRIBUTE_ID *)lookup(&dtd->attributeIds, s, 0);
2898 else if (dtd->defaultPrefix.binding) {
2899 binding = dtd->defaultPrefix.binding;
3673 DTD * const dtd = _dtd;
3777 declEntity = (ENTITY *)lookup(&dtd->paramEntities,
3783 dtd->hasParamEntityRefs = XML_TRUE;
3802 if (dtd->keepProcessing && declEntity) {
3803 XML_Char *tem = poolStoreString(&dtd->pool,
3811 poolFinish(&dtd->pool);
3829 XML_Bool hadParamEntityRefs = dtd->hasParamEntityRefs;
3830 dtd->hasParamEntityRefs = XML_TRUE;
3832 ENTITY *entity = (ENTITY *)lookup(&dtd->paramEntities,
3839 dtd->paramEntityRead = XML_FALSE;
3846 if (dtd->paramEntityRead) {
3847 if (!dtd->standalone &&
3853 is no external subset and we must reset dtd->hasParamEntityRefs
3856 dtd->hasParamEntityRefs = hadParamEntityRefs;
3857 /* end of DTD - no need to update dtd->keepProcessing */
3873 XML_Bool hadParamEntityRefs = dtd->hasParamEntityRefs;
3874 dtd->hasParamEntityRefs = XML_TRUE;
3876 ENTITY *entity = (ENTITY *)lookup(&dtd->paramEntities,
3882 dtd->paramEntityRead = XML_FALSE;
3889 if (dtd->paramEntityRead) {
3890 if (!dtd->standalone &&
3896 is no external subset and we must reset dtd->hasParamEntityRefs
3899 dtd->hasParamEntityRefs = hadParamEntityRefs;
3900 /* end of DTD - no need to update dtd->keepProcessing */
3945 if (dtd->keepProcessing && attlistDeclHandler)
3950 if (dtd->keepProcessing && attlistDeclHandler) {
3970 if (dtd->keepProcessing) {
3997 if (dtd->keepProcessing) {
4003 &dtd->pool);
4006 attVal = poolStart(&dtd->pool);
4007 poolFinish(&dtd->pool);
4034 if (dtd->keepProcessing) {
4039 declEntity->textPtr = poolStart(&dtd->entityValuePool);
4040 declEntity->textLen = (int)(poolLength(&dtd->entityValuePool));
4041 poolFinish(&dtd->entityValuePool);
4054 poolDiscard(&dtd->entityValuePool);
4063 dtd->hasParamEntityRefs = XML_TRUE;
4079 if (!dtd->standalone
4090 declEntity = (ENTITY *)lookup(&dtd->paramEntities,
4100 if (dtd->keepProcessing && declEntity) {
4101 declEntity->systemId = poolStoreString(&dtd->pool, enc,
4107 poolFinish(&dtd->pool);
4113 if (dtd->keepProcessing && declEntity && entityDeclHandler) {
4127 if (dtd->keepProcessing && declEntity) {
4128 declEntity->notation = poolStoreString(&dtd->pool, enc, s, next);
4131 poolFinish(&dtd->pool);
4161 if (dtd->keepProcessing) {
4162 const XML_Char *name = poolStoreString(&dtd->pool, enc, s, next);
4165 declEntity = (ENTITY *)lookup(&dtd->generalEntities, name,
4170 poolDiscard(&dtd->pool);
4174 poolFinish(&dtd->pool);
4186 poolDiscard(&dtd->pool);
4193 if (dtd->keepProcessing) {
4194 const XML_Char *name = poolStoreString(&dtd->pool, enc, s, next);
4197 declEntity = (ENTITY *)lookup(&dtd->paramEntities,
4202 poolDiscard(&dtd->pool);
4206 poolFinish(&dtd->pool);
4218 poolDiscard(&dtd->pool);
4317 if (dtd->scaffIndex) {
4318 int *temp = (int *)REALLOC(dtd->scaffIndex,
4322 dtd->scaffIndex = temp;
4332 if (dtd->in_eldecl) {
4336 dtd->scaffIndex[dtd->scaffLevel] = myindex;
4337 dtd->scaffLevel++;
4338 dtd->scaffold[myindex].type = XML_CTYPE_SEQ;
4347 if (dtd->in_eldecl && elementDeclHandler)
4353 if (dtd->in_eldecl
4355 && (dtd->scaffold[dtd->scaffIndex[dtd->scaffLevel - 1]].type
4358 dtd->scaffold[dtd->scaffIndex[dtd->scaffLevel - 1]].type
4368 dtd->hasParamEntityRefs = XML_TRUE;
4370 dtd->keepProcessing = dtd->standalone;
4374 name = poolStoreString(&dtd->pool, enc,
4379 entity = (ENTITY *)lookup(&dtd->paramEntities, name, 0);
4380 poolDiscard(&dtd->pool);
4386 (dtd->standalone
4388 : !dtd->hasParamEntityRefs)) {
4395 dtd->keepProcessing = dtd->standalone;
4416 dtd->paramEntityRead = XML_FALSE;
4428 if (!dtd->paramEntityRead) {
4429 dtd->keepProcessing = dtd->standalone;
4434 dtd->keepProcessing = dtd->standalone;
4439 if (!dtd->standalone &&
4452 dtd->scaffLevel = 0;
4453 dtd->scaffCount = 0;
4454 dtd->in_eldecl = XML_TRUE;
4461 if (dtd->in_eldecl) {
4477 dtd->in_eldecl = XML_FALSE;
4482 if (dtd->in_eldecl) {
4483 dtd->scaffold[dtd->scaffIndex[dtd->scaffLevel - 1]].type
4502 if (dtd->in_eldecl) {
4512 dtd->scaffold[myindex].type = XML_CTYPE_NAME;
4513 dtd->scaffold[myindex].quant = quant;
4518 dtd->scaffold[myindex].name = name;
4521 dtd->contentStringLen += nameLen;
4539 if (dtd->in_eldecl) {
4542 dtd->scaffLevel--;
4543 dtd->scaffold[dtd->scaffIndex[dtd->scaffLevel]].quant = quant;
4544 if (dtd->scaffLevel == 0) {
4552 dtd->in_eldecl = XML_FALSE;
4553 dtd->contentStringLen = 0;
4581 if (dtd->keepProcessing && entityDeclHandler)
4589 if (dtd->keepProcessing && attlistDeclHandler)
4830 DTD * const dtd = _dtd; /* save one level of indirection */
4903 entity = (ENTITY *)lookup(&dtd->generalEntities, name, 0);
4908 if (pool == &dtd->pool) /* are we called from prolog? */
4913 (dtd->standalone
4915 : !dtd->hasParamEntityRefs);
4917 checkEntityDecl = !dtd->hasParamEntityRefs || dtd->standalone;
4981 DTD * const dtd = _dtd; /* save one level of indirection */
4982 STRING_POOL *pool = &(dtd->entityValuePool);
5012 entity = (ENTITY *)lookup(&dtd->paramEntities, name, 0);
5021 dtd->keepProcessing = dtd->standalone;
5032 dtd->paramEntityRead = XML_FALSE;
5044 if (!dtd->paramEntityRead)
5045 dtd->keepProcessing = dtd->standalone;
5048 dtd->keepProcessing = dtd->standalone;
5290 DTD * const dtd = _dtd; /* save one level of indirection */
5297 if (!poolAppendChar(&dtd->pool, *s))
5300 if (!poolAppendChar(&dtd->pool, XML_T('\0')))
5302 prefix = (PREFIX *)lookup(&dtd->prefixes, poolStart(&dtd->pool),
5306 if (prefix->name == poolStart(&dtd->pool))
5307 poolFinish(&dtd->pool);
5309 poolDiscard(&dtd->pool);
5321 DTD * const dtd = _dtd; /* save one level of indirection */
5324 if (!poolAppendChar(&dtd->pool, XML_T('\0')))
5326 name = poolStoreString(&dtd->pool, enc, start, end);
5331 id = (ATTRIBUTE_ID *)lookup(&dtd->attributeIds, name, sizeof(ATTRIBUTE_ID));
5335 poolDiscard(&dtd->pool);
5337 poolFinish(&dtd->pool);
5347 id->prefix = &dtd->defaultPrefix;
5349 id->prefix = (PREFIX *)lookup(&dtd->prefixes, name + 6, sizeof(PREFIX));
5359 if (!poolAppendChar(&dtd->pool, name[j]))
5362 if (!poolAppendChar(&dtd->pool, XML_T('\0')))
5364 id->prefix = (PREFIX *)lookup(&dtd->prefixes, poolStart(&dtd->pool),
5366 if (id->prefix->name == poolStart(&dtd->pool))
5367 poolFinish(&dtd->pool);
5369 poolDiscard(&dtd->pool);
5383 DTD * const dtd = _dtd; /* save one level of indirection */
5387 if (dtd->defaultPrefix.binding) {
5392 len = dtd->defaultPrefix.binding->uriLen;
5396 if (!poolAppendChar(&tempPool, dtd->defaultPrefix.binding->uri[i]))
5401 hashTableIterInit(&iter, &(dtd->prefixes));
5428 hashTableIterInit(&iter, &(dtd->generalEntities));
5452 DTD * const dtd = _dtd; /* save one level of indirection */
5460 e = (ENTITY *)lookup(&dtd->generalEntities, poolStart(&tempPool), 0);
5471 prefix = &dtd->defaultPrefix;
5475 prefix = (PREFIX *)lookup(&dtd->prefixes, poolStart(&tempPool),
5480 prefix->name = poolCopyString(&dtd->pool, prefix->name);
6160 DTD * const dtd = _dtd; /* save one level of indirection */
6164 if (!dtd->scaffIndex) {
6165 dtd->scaffIndex = (int *)MALLOC(groupSize * sizeof(int));
6166 if (!dtd->scaffIndex)
6168 dtd->scaffIndex[0] = 0;
6171 if (dtd->scaffCount >= dtd->scaffSize) {
6173 if (dtd->scaffold) {
6175 REALLOC(dtd->scaffold, dtd->scaffSize * 2 * sizeof(CONTENT_SCAFFOLD));
6178 dtd->scaffSize *= 2;
6185 dtd->scaffSize = INIT_SCAFFOLD_ELEMENTS;
6187 dtd->scaffold = temp;
6189 next = dtd->scaffCount++;
6190 me = &dtd->scaffold[next];
6191 if (dtd->scaffLevel) {
6192 CONTENT_SCAFFOLD *parent = &dtd->scaffold[dtd->scaffIndex[dtd->scaffLevel-1]];
6194 dtd->scaffold[parent->lastchild].nextsib = next;
6212 DTD * const dtd = _dtd; /* save one level of indirection */
6213 dest->type = dtd->scaffold[src_node].type;
6214 dest->quant = dtd->scaffold[src_node].quant;
6218 src = dtd->scaffold[src_node].name;
6231 dest->numchildren = dtd->scaffold[src_node].childcnt;
6234 for (i = 0, cn = dtd->scaffold[src_node].firstchild;
6236 i++, cn = dtd->scaffold[cn].nextsib) {
6246 DTD * const dtd = _dtd; /* save one level of indirection */
6250 int allocsize = (dtd->scaffCount * sizeof(XML_Content)
6251 + (dtd->contentStringLen * sizeof(XML_Char)));
6257 str = (XML_Char *) (&ret[dtd->scaffCount]);
6270 DTD * const dtd = _dtd; /* save one level of indirection */
6271 const XML_Char *name = poolStoreString(&dtd->pool, enc, ptr, end);
6276 ret = (ELEMENT_TYPE *) lookup(&dtd->elementTypes, name, sizeof(ELEMENT_TYPE));
6280 poolDiscard(&dtd->pool);
6282 poolFinish(&dtd->pool);