Lines Matching refs:partitions
285 int nbgroups; /* number of groups in the partitions */
929 * @partitions: a partition set structure
934 xmlRelaxNGFreePartition(xmlRelaxNGPartitionPtr partitions)
939 if (partitions != NULL) {
940 if (partitions->groups != NULL) {
941 for (j = 0; j < partitions->nbgroups; j++) {
942 group = partitions->groups[j];
951 xmlFree(partitions->groups);
953 if (partitions->triage != NULL) {
954 xmlHashFree(partitions->triage, NULL);
956 xmlFree(partitions);
4281 xmlRelaxNGPartitionPtr partitions = NULL;
4333 * Let's check that all rules makes a partitions according to 7.4
4335 partitions = (xmlRelaxNGPartitionPtr)
4337 if (partitions == NULL)
4339 memset(partitions, 0, sizeof(xmlRelaxNGPartition));
4340 partitions->nbgroups = nbgroups;
4341 partitions->triage = xmlHashCreate(nbgroups);
4367 res = xmlHashAddEntry2(partitions->triage,
4375 res = xmlHashAddEntry2(partitions->triage,
4379 res = xmlHashAddEntry2(partitions->triage,
4386 res = xmlHashAddEntry2(partitions->triage,
4390 res = xmlHashAddEntry2(partitions->triage,
4406 partitions->groups = groups;
4411 def->data = partitions;
4415 partitions->flags = IS_DETERMINIST;
4417 partitions->flags = IS_DETERMINIST | IS_NEEDCHECK;
4431 xmlRelaxNGFreePartition(partitions);
9112 xmlRelaxNGPartitionPtr partitions;
9118 partitions = (xmlRelaxNGPartitionPtr) define->data;
9119 nbgroups = partitions->nbgroups;
9137 if (partitions->groups[0]->rule->type == XML_RELAXNG_TEXT)
9139 partitions->groups[1]->
9143 partitions->groups[0]->
9182 if ((partitions->triage != NULL) &&
9183 (partitions->flags & IS_DETERMINIST)) {
9188 tmp = xmlHashLookup2(partitions->triage, BAD_CAST "#text",
9192 tmp = xmlHashLookup2(partitions->triage, cur->name,
9195 tmp = xmlHashLookup2(partitions->triage,
9200 xmlHashLookup2(partitions->triage, cur->name,
9204 xmlHashLookup2(partitions->triage, BAD_CAST "#any",
9212 if (partitions->flags & IS_NEEDCHECK) {
9213 group = partitions->groups[i];
9220 group = partitions->groups[i];
9255 group = partitions->groups[i];