Lines Matching refs:restrictions

1348 		type->restrictions = emalloc(sizeof(sdlRestrictions));  in sdl_deserialize_type()
1350 type->restrictions->minExclusive = sdl_deserialize_resriction_int(in); in sdl_deserialize_type()
1351 type->restrictions->minInclusive = sdl_deserialize_resriction_int(in); in sdl_deserialize_type()
1352 type->restrictions->maxExclusive = sdl_deserialize_resriction_int(in); in sdl_deserialize_type()
1353 type->restrictions->maxInclusive = sdl_deserialize_resriction_int(in); in sdl_deserialize_type()
1354 type->restrictions->totalDigits = sdl_deserialize_resriction_int(in); in sdl_deserialize_type()
1355 type->restrictions->fractionDigits = sdl_deserialize_resriction_int(in); in sdl_deserialize_type()
1356 type->restrictions->length = sdl_deserialize_resriction_int(in); in sdl_deserialize_type()
1357 type->restrictions->minLength = sdl_deserialize_resriction_int(in); in sdl_deserialize_type()
1358 type->restrictions->maxLength = sdl_deserialize_resriction_int(in); in sdl_deserialize_type()
1359 type->restrictions->whiteSpace = sdl_deserialize_resriction_char(in); in sdl_deserialize_type()
1360 type->restrictions->pattern = sdl_deserialize_resriction_char(in); in sdl_deserialize_type()
1363 type->restrictions->enumeration = emalloc(sizeof(HashTable)); in sdl_deserialize_type()
1364 zend_hash_init(type->restrictions->enumeration, i, NULL, delete_restriction_var_char, 0); in sdl_deserialize_type()
1367 sdl_deserialize_key(type->restrictions->enumeration, x, in); in sdl_deserialize_type()
1371 type->restrictions->enumeration = NULL; in sdl_deserialize_type()
1943 if (type->restrictions) { in sdl_serialize_type()
1945 sdl_serialize_resriction_int(type->restrictions->minExclusive,out); in sdl_serialize_type()
1946 sdl_serialize_resriction_int(type->restrictions->minInclusive,out); in sdl_serialize_type()
1947 sdl_serialize_resriction_int(type->restrictions->maxExclusive,out); in sdl_serialize_type()
1948 sdl_serialize_resriction_int(type->restrictions->maxInclusive,out); in sdl_serialize_type()
1949 sdl_serialize_resriction_int(type->restrictions->totalDigits,out); in sdl_serialize_type()
1950 sdl_serialize_resriction_int(type->restrictions->fractionDigits,out); in sdl_serialize_type()
1951 sdl_serialize_resriction_int(type->restrictions->length,out); in sdl_serialize_type()
1952 sdl_serialize_resriction_int(type->restrictions->minLength,out); in sdl_serialize_type()
1953 sdl_serialize_resriction_int(type->restrictions->maxLength,out); in sdl_serialize_type()
1954 sdl_serialize_resriction_char(type->restrictions->whiteSpace,out); in sdl_serialize_type()
1955 sdl_serialize_resriction_char(type->restrictions->pattern,out); in sdl_serialize_type()
1956 if (type->restrictions->enumeration) { in sdl_serialize_type()
1957 i = zend_hash_num_elements(type->restrictions->enumeration); in sdl_serialize_type()
1966 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(type->restrictions->enumeration, key, tmp) { in sdl_serialize_type()
2744 if (ptype->restrictions) { in make_persistent_sdl_type()
2745 ptype->restrictions = malloc(sizeof(sdlRestrictions)); in make_persistent_sdl_type()
2746 memset(ptype->restrictions, 0, sizeof(sdlRestrictions)); in make_persistent_sdl_type()
2747 *ptype->restrictions = *type->restrictions; in make_persistent_sdl_type()
2749 if (ptype->restrictions->minExclusive) { in make_persistent_sdl_type()
2750 make_persistent_restriction_int(&ptype->restrictions->minExclusive); in make_persistent_sdl_type()
2752 if (ptype->restrictions->maxExclusive) { in make_persistent_sdl_type()
2753 make_persistent_restriction_int(&ptype->restrictions->maxExclusive); in make_persistent_sdl_type()
2755 if (ptype->restrictions->minInclusive) { in make_persistent_sdl_type()
2756 make_persistent_restriction_int(&ptype->restrictions->minInclusive); in make_persistent_sdl_type()
2758 if (ptype->restrictions->maxInclusive) { in make_persistent_sdl_type()
2759 make_persistent_restriction_int(&ptype->restrictions->maxInclusive); in make_persistent_sdl_type()
2761 if (ptype->restrictions->totalDigits) { in make_persistent_sdl_type()
2762 make_persistent_restriction_int(&ptype->restrictions->totalDigits); in make_persistent_sdl_type()
2764 if (ptype->restrictions->fractionDigits) { in make_persistent_sdl_type()
2765 make_persistent_restriction_int(&ptype->restrictions->fractionDigits); in make_persistent_sdl_type()
2767 if (ptype->restrictions->length) { in make_persistent_sdl_type()
2768 make_persistent_restriction_int(&ptype->restrictions->length); in make_persistent_sdl_type()
2770 if (ptype->restrictions->minLength) { in make_persistent_sdl_type()
2771 make_persistent_restriction_int(&ptype->restrictions->minLength); in make_persistent_sdl_type()
2773 if (ptype->restrictions->maxLength) { in make_persistent_sdl_type()
2774 make_persistent_restriction_int(&ptype->restrictions->maxLength); in make_persistent_sdl_type()
2776 if (ptype->restrictions->whiteSpace) { in make_persistent_sdl_type()
2777 make_persistent_restriction_char_int(&ptype->restrictions->whiteSpace); in make_persistent_sdl_type()
2779 if (ptype->restrictions->pattern) { in make_persistent_sdl_type()
2780 make_persistent_restriction_char_int(&ptype->restrictions->pattern); in make_persistent_sdl_type()
2783 if (type->restrictions->enumeration) { in make_persistent_sdl_type()
2785 ptype->restrictions->enumeration = malloc(sizeof(HashTable)); in make_persistent_sdl_type()
2786 …zend_hash_init(ptype->restrictions->enumeration, zend_hash_num_elements(type->restrictions->enumer… in make_persistent_sdl_type()
2787 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(type->restrictions->enumeration, key, tmp) { in make_persistent_sdl_type()
2791 zend_hash_str_add_ptr(ptype->restrictions->enumeration, ZSTR_VAL(key), ZSTR_LEN(key), penum); in make_persistent_sdl_type()