Lines Matching refs:restrictions

656 	if (cur_type->restrictions == NULL) {  in schema_restriction_simpleContent()
657 cur_type->restrictions = emalloc(sizeof(sdlRestrictions)); in schema_restriction_simpleContent()
658 memset(cur_type->restrictions, 0, sizeof(sdlRestrictions)); in schema_restriction_simpleContent()
672 schema_restriction_var_int(trav, &cur_type->restrictions->minExclusive); in schema_restriction_simpleContent()
674 schema_restriction_var_int(trav, &cur_type->restrictions->minInclusive); in schema_restriction_simpleContent()
676 schema_restriction_var_int(trav, &cur_type->restrictions->maxExclusive); in schema_restriction_simpleContent()
678 schema_restriction_var_int(trav, &cur_type->restrictions->maxInclusive); in schema_restriction_simpleContent()
680 schema_restriction_var_int(trav, &cur_type->restrictions->totalDigits); in schema_restriction_simpleContent()
682 schema_restriction_var_int(trav, &cur_type->restrictions->fractionDigits); in schema_restriction_simpleContent()
684 schema_restriction_var_int(trav, &cur_type->restrictions->length); in schema_restriction_simpleContent()
686 schema_restriction_var_int(trav, &cur_type->restrictions->minLength); in schema_restriction_simpleContent()
688 schema_restriction_var_int(trav, &cur_type->restrictions->maxLength); in schema_restriction_simpleContent()
690 schema_restriction_var_char(trav, &cur_type->restrictions->whiteSpace); in schema_restriction_simpleContent()
692 schema_restriction_var_char(trav, &cur_type->restrictions->pattern); in schema_restriction_simpleContent()
697 if (cur_type->restrictions->enumeration == NULL) { in schema_restriction_simpleContent()
698 cur_type->restrictions->enumeration = emalloc(sizeof(HashTable)); in schema_restriction_simpleContent()
699 zend_hash_init(cur_type->restrictions->enumeration, 0, NULL, delete_restriction_var_char, 0); in schema_restriction_simpleContent()
701 …if (zend_hash_str_add_ptr(cur_type->restrictions->enumeration, enumval->value, strlen(enumval->val… in schema_restriction_simpleContent()
2402 if (type->restrictions) { in delete_type()
2403 delete_restriction_var_int(type->restrictions->minExclusive); in delete_type()
2404 delete_restriction_var_int(type->restrictions->minInclusive); in delete_type()
2405 delete_restriction_var_int(type->restrictions->maxExclusive); in delete_type()
2406 delete_restriction_var_int(type->restrictions->maxInclusive); in delete_type()
2407 delete_restriction_var_int(type->restrictions->totalDigits); in delete_type()
2408 delete_restriction_var_int(type->restrictions->fractionDigits); in delete_type()
2409 delete_restriction_var_int(type->restrictions->length); in delete_type()
2410 delete_restriction_var_int(type->restrictions->minLength); in delete_type()
2411 delete_restriction_var_int(type->restrictions->maxLength); in delete_type()
2412 delete_restriction_var_char_int(type->restrictions->whiteSpace); in delete_type()
2413 delete_restriction_var_char_int(type->restrictions->pattern); in delete_type()
2414 if (type->restrictions->enumeration) { in delete_type()
2415 zend_hash_destroy(type->restrictions->enumeration); in delete_type()
2416 efree(type->restrictions->enumeration); in delete_type()
2418 efree(type->restrictions); in delete_type()
2449 if (type->restrictions) { in delete_type_persistent()
2450 delete_restriction_var_int_persistent(type->restrictions->minExclusive); in delete_type_persistent()
2451 delete_restriction_var_int_persistent(type->restrictions->minInclusive); in delete_type_persistent()
2452 delete_restriction_var_int_persistent(type->restrictions->maxExclusive); in delete_type_persistent()
2453 delete_restriction_var_int_persistent(type->restrictions->maxInclusive); in delete_type_persistent()
2454 delete_restriction_var_int_persistent(type->restrictions->totalDigits); in delete_type_persistent()
2455 delete_restriction_var_int_persistent(type->restrictions->fractionDigits); in delete_type_persistent()
2456 delete_restriction_var_int_persistent(type->restrictions->length); in delete_type_persistent()
2457 delete_restriction_var_int_persistent(type->restrictions->minLength); in delete_type_persistent()
2458 delete_restriction_var_int_persistent(type->restrictions->maxLength); in delete_type_persistent()
2459 delete_restriction_var_char_persistent_int(type->restrictions->whiteSpace); in delete_type_persistent()
2460 delete_restriction_var_char_persistent_int(type->restrictions->pattern); in delete_type_persistent()
2461 if (type->restrictions->enumeration) { in delete_type_persistent()
2462 zend_hash_destroy(type->restrictions->enumeration); in delete_type_persistent()
2463 free(type->restrictions->enumeration); in delete_type_persistent()
2465 free(type->restrictions); in delete_type_persistent()