Lines Matching refs:restrictions

659 	if (cur_type->restrictions == NULL) {  in schema_restriction_simpleContent()
660 cur_type->restrictions = emalloc(sizeof(sdlRestrictions)); in schema_restriction_simpleContent()
661 memset(cur_type->restrictions, 0, sizeof(sdlRestrictions)); in schema_restriction_simpleContent()
675 schema_restriction_var_int(trav, &cur_type->restrictions->minExclusive); in schema_restriction_simpleContent()
677 schema_restriction_var_int(trav, &cur_type->restrictions->minInclusive); in schema_restriction_simpleContent()
679 schema_restriction_var_int(trav, &cur_type->restrictions->maxExclusive); in schema_restriction_simpleContent()
681 schema_restriction_var_int(trav, &cur_type->restrictions->maxInclusive); in schema_restriction_simpleContent()
683 schema_restriction_var_int(trav, &cur_type->restrictions->totalDigits); in schema_restriction_simpleContent()
685 schema_restriction_var_int(trav, &cur_type->restrictions->fractionDigits); in schema_restriction_simpleContent()
687 schema_restriction_var_int(trav, &cur_type->restrictions->length); in schema_restriction_simpleContent()
689 schema_restriction_var_int(trav, &cur_type->restrictions->minLength); in schema_restriction_simpleContent()
691 schema_restriction_var_int(trav, &cur_type->restrictions->maxLength); in schema_restriction_simpleContent()
693 schema_restriction_var_char(trav, &cur_type->restrictions->whiteSpace); in schema_restriction_simpleContent()
695 schema_restriction_var_char(trav, &cur_type->restrictions->pattern); in schema_restriction_simpleContent()
700 if (cur_type->restrictions->enumeration == NULL) { in schema_restriction_simpleContent()
701 cur_type->restrictions->enumeration = emalloc(sizeof(HashTable)); in schema_restriction_simpleContent()
702 zend_hash_init(cur_type->restrictions->enumeration, 0, NULL, delete_restriction_var_char, 0); in schema_restriction_simpleContent()
704 …if (zend_hash_str_add_ptr(cur_type->restrictions->enumeration, enumval->value, strlen(enumval->val… in schema_restriction_simpleContent()
2399 if (type->restrictions) { in delete_type()
2400 delete_restriction_var_int(type->restrictions->minExclusive); in delete_type()
2401 delete_restriction_var_int(type->restrictions->minInclusive); in delete_type()
2402 delete_restriction_var_int(type->restrictions->maxExclusive); in delete_type()
2403 delete_restriction_var_int(type->restrictions->maxInclusive); in delete_type()
2404 delete_restriction_var_int(type->restrictions->totalDigits); in delete_type()
2405 delete_restriction_var_int(type->restrictions->fractionDigits); in delete_type()
2406 delete_restriction_var_int(type->restrictions->length); in delete_type()
2407 delete_restriction_var_int(type->restrictions->minLength); in delete_type()
2408 delete_restriction_var_int(type->restrictions->maxLength); in delete_type()
2409 delete_restriction_var_char_int(type->restrictions->whiteSpace); in delete_type()
2410 delete_restriction_var_char_int(type->restrictions->pattern); in delete_type()
2411 if (type->restrictions->enumeration) { in delete_type()
2412 zend_hash_destroy(type->restrictions->enumeration); in delete_type()
2413 efree(type->restrictions->enumeration); in delete_type()
2415 efree(type->restrictions); in delete_type()
2446 if (type->restrictions) { in delete_type_persistent()
2447 delete_restriction_var_int_persistent(type->restrictions->minExclusive); in delete_type_persistent()
2448 delete_restriction_var_int_persistent(type->restrictions->minInclusive); in delete_type_persistent()
2449 delete_restriction_var_int_persistent(type->restrictions->maxExclusive); in delete_type_persistent()
2450 delete_restriction_var_int_persistent(type->restrictions->maxInclusive); in delete_type_persistent()
2451 delete_restriction_var_int_persistent(type->restrictions->totalDigits); in delete_type_persistent()
2452 delete_restriction_var_int_persistent(type->restrictions->fractionDigits); in delete_type_persistent()
2453 delete_restriction_var_int_persistent(type->restrictions->length); in delete_type_persistent()
2454 delete_restriction_var_int_persistent(type->restrictions->minLength); in delete_type_persistent()
2455 delete_restriction_var_int_persistent(type->restrictions->maxLength); in delete_type_persistent()
2456 delete_restriction_var_char_persistent_int(type->restrictions->whiteSpace); in delete_type_persistent()
2457 delete_restriction_var_char_persistent_int(type->restrictions->pattern); in delete_type_persistent()
2458 if (type->restrictions->enumeration) { in delete_type_persistent()
2459 zend_hash_destroy(type->restrictions->enumeration); in delete_type_persistent()
2460 free(type->restrictions->enumeration); in delete_type_persistent()
2462 free(type->restrictions); in delete_type_persistent()