Lines Matching refs:restrictions

677 	if (cur_type->restrictions == NULL) {  in schema_restriction_simpleContent()
678 cur_type->restrictions = emalloc(sizeof(sdlRestrictions)); in schema_restriction_simpleContent()
679 memset(cur_type->restrictions, 0, sizeof(sdlRestrictions)); in schema_restriction_simpleContent()
693 schema_restriction_var_int(trav, &cur_type->restrictions->minExclusive); in schema_restriction_simpleContent()
695 schema_restriction_var_int(trav, &cur_type->restrictions->minInclusive); in schema_restriction_simpleContent()
697 schema_restriction_var_int(trav, &cur_type->restrictions->maxExclusive); in schema_restriction_simpleContent()
699 schema_restriction_var_int(trav, &cur_type->restrictions->maxInclusive); in schema_restriction_simpleContent()
701 schema_restriction_var_int(trav, &cur_type->restrictions->totalDigits); in schema_restriction_simpleContent()
703 schema_restriction_var_int(trav, &cur_type->restrictions->fractionDigits); in schema_restriction_simpleContent()
705 schema_restriction_var_int(trav, &cur_type->restrictions->length); in schema_restriction_simpleContent()
707 schema_restriction_var_int(trav, &cur_type->restrictions->minLength); in schema_restriction_simpleContent()
709 schema_restriction_var_int(trav, &cur_type->restrictions->maxLength); in schema_restriction_simpleContent()
711 schema_restriction_var_char(trav, &cur_type->restrictions->whiteSpace); in schema_restriction_simpleContent()
713 schema_restriction_var_char(trav, &cur_type->restrictions->pattern); in schema_restriction_simpleContent()
718 if (cur_type->restrictions->enumeration == NULL) { in schema_restriction_simpleContent()
719 cur_type->restrictions->enumeration = emalloc(sizeof(HashTable)); in schema_restriction_simpleContent()
720 zend_hash_init(cur_type->restrictions->enumeration, 0, NULL, delete_restriction_var_char, 0); in schema_restriction_simpleContent()
722 …if (zend_hash_str_add_ptr(cur_type->restrictions->enumeration, enumval->value, strlen(enumval->val… in schema_restriction_simpleContent()
2423 if (type->restrictions) { in delete_type()
2424 delete_restriction_var_int(type->restrictions->minExclusive); in delete_type()
2425 delete_restriction_var_int(type->restrictions->minInclusive); in delete_type()
2426 delete_restriction_var_int(type->restrictions->maxExclusive); in delete_type()
2427 delete_restriction_var_int(type->restrictions->maxInclusive); in delete_type()
2428 delete_restriction_var_int(type->restrictions->totalDigits); in delete_type()
2429 delete_restriction_var_int(type->restrictions->fractionDigits); in delete_type()
2430 delete_restriction_var_int(type->restrictions->length); in delete_type()
2431 delete_restriction_var_int(type->restrictions->minLength); in delete_type()
2432 delete_restriction_var_int(type->restrictions->maxLength); in delete_type()
2433 delete_restriction_var_char_int(type->restrictions->whiteSpace); in delete_type()
2434 delete_restriction_var_char_int(type->restrictions->pattern); in delete_type()
2435 if (type->restrictions->enumeration) { in delete_type()
2436 zend_hash_destroy(type->restrictions->enumeration); in delete_type()
2437 efree(type->restrictions->enumeration); in delete_type()
2439 efree(type->restrictions); in delete_type()
2470 if (type->restrictions) { in delete_type_persistent()
2471 delete_restriction_var_int_persistent(type->restrictions->minExclusive); in delete_type_persistent()
2472 delete_restriction_var_int_persistent(type->restrictions->minInclusive); in delete_type_persistent()
2473 delete_restriction_var_int_persistent(type->restrictions->maxExclusive); in delete_type_persistent()
2474 delete_restriction_var_int_persistent(type->restrictions->maxInclusive); in delete_type_persistent()
2475 delete_restriction_var_int_persistent(type->restrictions->totalDigits); in delete_type_persistent()
2476 delete_restriction_var_int_persistent(type->restrictions->fractionDigits); in delete_type_persistent()
2477 delete_restriction_var_int_persistent(type->restrictions->length); in delete_type_persistent()
2478 delete_restriction_var_int_persistent(type->restrictions->minLength); in delete_type_persistent()
2479 delete_restriction_var_int_persistent(type->restrictions->maxLength); in delete_type_persistent()
2480 delete_restriction_var_char_persistent_int(type->restrictions->whiteSpace); in delete_type_persistent()
2481 delete_restriction_var_char_persistent_int(type->restrictions->pattern); in delete_type_persistent()
2482 if (type->restrictions->enumeration) { in delete_type_persistent()
2483 zend_hash_destroy(type->restrictions->enumeration); in delete_type_persistent()
2484 free(type->restrictions->enumeration); in delete_type_persistent()
2486 free(type->restrictions); in delete_type_persistent()