• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/libxml2-2.7.2/source/

Lines Matching refs:facet

647  * @facetType:  the facet type
649 * Evaluates if a specific facet can be
652 * Returns 1 if the facet can be used with the given built-in type,
2262 * xs:decimal has a whitespace-facet value of 'collapse'.
5021 * @facet: an schemas type facet
5023 * Extract the value of a facet
5028 xmlSchemaGetFacetValueAsULong(xmlSchemaFacetPtr facet)
5033 if (facet == NULL)
5035 return ((unsigned long) facet->val->value.decimal.lo);
5040 * @facet: the facet to check
5045 * Checks the value of a list simple type against a facet.
5051 xmlSchemaValidateListSimpleTypeFacet(xmlSchemaFacetPtr facet,
5056 if (facet == NULL)
5062 if (facet->type == XML_SCHEMA_FACET_LENGTH) {
5063 if (actualLen != facet->val->value.decimal.lo) {
5065 *expectedLen = facet->val->value.decimal.lo;
5068 } else if (facet->type == XML_SCHEMA_FACET_MINLENGTH) {
5069 if (actualLen < facet->val->value.decimal.lo) {
5071 *expectedLen = facet->val->value.decimal.lo;
5074 } else if (facet->type == XML_SCHEMA_FACET_MAXLENGTH) {
5075 if (actualLen > facet->val->value.decimal.lo) {
5077 *expectedLen = facet->val->value.decimal.lo;
5083 * xmlSchemaValidateFacet, since the remaining facet types
5086 return(xmlSchemaValidateFacet(NULL, facet, value, NULL));
5093 * @facet: the facet to check
5100 * facet; sets @length to the computed length of @value.
5106 xmlSchemaValidateLengthFacetInternal(xmlSchemaFacetPtr facet,
5115 if ((length == NULL) || (facet == NULL))
5118 if ((facet->type != XML_SCHEMA_FACET_LENGTH) &&
5119 (facet->type != XML_SCHEMA_FACET_MAXLENGTH) &&
5120 (facet->type != XML_SCHEMA_FACET_MINLENGTH))
5127 if ((facet->val == NULL) ||
5128 ((facet->val->type != XML_SCHEMAS_DECIMAL) &&
5129 (facet->val->type != XML_SCHEMAS_NNINTEGER)) ||
5130 (facet->val->value.decimal.frac != 0)) {
5191 if (facet->type == XML_SCHEMA_FACET_LENGTH) {
5192 if (len != facet->val->value.decimal.lo)
5194 } else if (facet->type == XML_SCHEMA_FACET_MINLENGTH) {
5195 if (len < facet->val->value.decimal.lo)
5198 if (len > facet->val->value.decimal.lo)
5208 * @facet: the facet to check
5214 * facet; sets @length to the computed length of @value.
5221 xmlSchemaFacetPtr facet,
5228 return (xmlSchemaValidateLengthFacetInternal(facet,
5235 * @facet: the facet to check
5243 * facet; sets @length to the computed length of @value.
5249 xmlSchemaValidateLengthFacetWhtsp(xmlSchemaFacetPtr facet,
5256 return (xmlSchemaValidateLengthFacetInternal(facet, valType, value, val,
5262 * @facet: the facet to check
5263 * @fws: the whitespace type of the facet's value
5269 * Check a value against a facet condition
5275 xmlSchemaValidateFacetInternal(xmlSchemaFacetPtr facet,
5284 if (facet == NULL)
5287 switch (facet->type) {
5295 ret = xmlRegexpExec(facet->regexp, value);
5302 ret = xmlSchemaCompareValues(val, facet->val);
5309 ret = xmlSchemaCompareValues(val, facet->val);
5316 ret = xmlSchemaCompareValues(val, facet->val);
5323 ret = xmlSchemaCompareValues(val, facet->val);
5344 if ((facet->value != NULL) &&
5345 (xmlStrEqual(facet->value, value)))
5348 ret = xmlSchemaCompareValuesWhtspExt(facet->val->type,
5349 facet->val, facet->value, fws, valType, val,
5360 * then any {value} is facet-valid."
5377 if ((facet->val == NULL) ||
5378 ((facet->val->type != XML_SCHEMAS_DECIMAL) &&
5379 (facet->val->type != XML_SCHEMAS_NNINTEGER)) ||
5380 (facet->val->value.decimal.frac != 0)) {
5427 if (facet->type == XML_SCHEMA_FACET_LENGTH) {
5428 if (len != facet->val->value.decimal.lo)
5430 } else if (facet->type == XML_SCHEMA_FACET_MINLENGTH) {
5431 if (len < facet->val->value.decimal.lo)
5434 if (len > facet->val->value.decimal.lo)
5442 if ((facet->val == NULL) ||
5443 ((facet->val->type != XML_SCHEMAS_PINTEGER) &&
5444 (facet->val->type != XML_SCHEMAS_NNINTEGER)) ||
5445 (facet->val->value.decimal.frac != 0)) {
5465 if (facet->type == XML_SCHEMA_FACET_TOTALDIGITS) {
5466 if (val->value.decimal.total > facet->val->value.decimal.lo)
5469 } else if (facet->type == XML_SCHEMA_FACET_FRACTIONDIGITS) {
5470 if (val->value.decimal.frac > facet->val->value.decimal.lo)
5484 * @facet: the facet to check
5488 * Check a value against a facet condition
5495 xmlSchemaFacetPtr facet,
5505 return(xmlSchemaValidateFacetInternal(facet,
5509 return(xmlSchemaValidateFacetInternal(facet,
5517 * @facet: the facet to check
5518 * @fws: the whitespace type of the facet's value
5524 * Check a value against a facet condition. This takes value normalization
5526 * Note that @value needs to be the *normalized* value if the facet
5533 xmlSchemaValidateFacetWhtsp(xmlSchemaFacetPtr facet,
5540 return(xmlSchemaValidateFacetInternal(facet, fws, valType,