Lines Matching refs:restrictions

657 	if (cur_type->restrictions == NULL) {  in schema_restriction_simpleContent()
658 cur_type->restrictions = emalloc(sizeof(sdlRestrictions)); in schema_restriction_simpleContent()
659 memset(cur_type->restrictions, 0, sizeof(sdlRestrictions)); in schema_restriction_simpleContent()
673 schema_restriction_var_int(trav, &cur_type->restrictions->minExclusive); in schema_restriction_simpleContent()
675 schema_restriction_var_int(trav, &cur_type->restrictions->minInclusive); in schema_restriction_simpleContent()
677 schema_restriction_var_int(trav, &cur_type->restrictions->maxExclusive); in schema_restriction_simpleContent()
679 schema_restriction_var_int(trav, &cur_type->restrictions->maxInclusive); in schema_restriction_simpleContent()
681 schema_restriction_var_int(trav, &cur_type->restrictions->totalDigits); in schema_restriction_simpleContent()
683 schema_restriction_var_int(trav, &cur_type->restrictions->fractionDigits); in schema_restriction_simpleContent()
685 schema_restriction_var_int(trav, &cur_type->restrictions->length); in schema_restriction_simpleContent()
687 schema_restriction_var_int(trav, &cur_type->restrictions->minLength); in schema_restriction_simpleContent()
689 schema_restriction_var_int(trav, &cur_type->restrictions->maxLength); in schema_restriction_simpleContent()
691 schema_restriction_var_char(trav, &cur_type->restrictions->whiteSpace); in schema_restriction_simpleContent()
693 schema_restriction_var_char(trav, &cur_type->restrictions->pattern); in schema_restriction_simpleContent()
698 if (cur_type->restrictions->enumeration == NULL) { in schema_restriction_simpleContent()
699 cur_type->restrictions->enumeration = emalloc(sizeof(HashTable)); in schema_restriction_simpleContent()
700 zend_hash_init(cur_type->restrictions->enumeration, 0, NULL, delete_restriction_var_char, 0); in schema_restriction_simpleContent()
702 …if (zend_hash_add(cur_type->restrictions->enumeration, enumval->value, strlen(enumval->value)+1, &… in schema_restriction_simpleContent()
2367 if (type->restrictions) { in delete_type()
2368 delete_restriction_var_int(&type->restrictions->minExclusive); in delete_type()
2369 delete_restriction_var_int(&type->restrictions->minInclusive); in delete_type()
2370 delete_restriction_var_int(&type->restrictions->maxExclusive); in delete_type()
2371 delete_restriction_var_int(&type->restrictions->maxInclusive); in delete_type()
2372 delete_restriction_var_int(&type->restrictions->totalDigits); in delete_type()
2373 delete_restriction_var_int(&type->restrictions->fractionDigits); in delete_type()
2374 delete_restriction_var_int(&type->restrictions->length); in delete_type()
2375 delete_restriction_var_int(&type->restrictions->minLength); in delete_type()
2376 delete_restriction_var_int(&type->restrictions->maxLength); in delete_type()
2377 delete_restriction_var_char(&type->restrictions->whiteSpace); in delete_type()
2378 delete_restriction_var_char(&type->restrictions->pattern); in delete_type()
2379 if (type->restrictions->enumeration) { in delete_type()
2380 zend_hash_destroy(type->restrictions->enumeration); in delete_type()
2381 efree(type->restrictions->enumeration); in delete_type()
2383 efree(type->restrictions); in delete_type()
2414 if (type->restrictions) { in delete_type_persistent()
2415 delete_restriction_var_int_persistent(&type->restrictions->minExclusive); in delete_type_persistent()
2416 delete_restriction_var_int_persistent(&type->restrictions->minInclusive); in delete_type_persistent()
2417 delete_restriction_var_int_persistent(&type->restrictions->maxExclusive); in delete_type_persistent()
2418 delete_restriction_var_int_persistent(&type->restrictions->maxInclusive); in delete_type_persistent()
2419 delete_restriction_var_int_persistent(&type->restrictions->totalDigits); in delete_type_persistent()
2420 delete_restriction_var_int_persistent(&type->restrictions->fractionDigits); in delete_type_persistent()
2421 delete_restriction_var_int_persistent(&type->restrictions->length); in delete_type_persistent()
2422 delete_restriction_var_int_persistent(&type->restrictions->minLength); in delete_type_persistent()
2423 delete_restriction_var_int_persistent(&type->restrictions->maxLength); in delete_type_persistent()
2424 delete_restriction_var_char_persistent(&type->restrictions->whiteSpace); in delete_type_persistent()
2425 delete_restriction_var_char_persistent(&type->restrictions->pattern); in delete_type_persistent()
2426 if (type->restrictions->enumeration) { in delete_type_persistent()
2427 zend_hash_destroy(type->restrictions->enumeration); in delete_type_persistent()
2428 free(type->restrictions->enumeration); in delete_type_persistent()
2430 free(type->restrictions); in delete_type_persistent()