• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gnulib-local/lib/libxml/

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,
2259 * xs:decimal has a whitespace-facet value of 'collapse'.
5018 * @facet: an schemas type facet
5020 * Extract the value of a facet
5025 xmlSchemaGetFacetValueAsULong(xmlSchemaFacetPtr facet)
5030 if (facet == NULL)
5032 return ((unsigned long) facet->val->value.decimal.lo);
5037 * @facet: the facet to check
5042 * Checks the value of a list simple type against a facet.
5048 xmlSchemaValidateListSimpleTypeFacet(xmlSchemaFacetPtr facet,
5053 if (facet == NULL)
5059 if (facet->type == XML_SCHEMA_FACET_LENGTH) {
5060 if (actualLen != facet->val->value.decimal.lo) {
5062 *expectedLen = facet->val->value.decimal.lo;
5065 } else if (facet->type == XML_SCHEMA_FACET_MINLENGTH) {
5066 if (actualLen < facet->val->value.decimal.lo) {
5068 *expectedLen = facet->val->value.decimal.lo;
5071 } else if (facet->type == XML_SCHEMA_FACET_MAXLENGTH) {
5072 if (actualLen > facet->val->value.decimal.lo) {
5074 *expectedLen = facet->val->value.decimal.lo;
5080 * xmlSchemaValidateFacet, since the remaining facet types
5083 return(xmlSchemaValidateFacet(NULL, facet, value, NULL));
5090 * @facet: the facet to check
5097 * facet; sets @length to the computed length of @value.
5103 xmlSchemaValidateLengthFacetInternal(xmlSchemaFacetPtr facet,
5112 if ((length == NULL) || (facet == NULL))
5115 if ((facet->type != XML_SCHEMA_FACET_LENGTH) &&
5116 (facet->type != XML_SCHEMA_FACET_MAXLENGTH) &&
5117 (facet->type != XML_SCHEMA_FACET_MINLENGTH))
5124 if ((facet->val == NULL) ||
5125 ((facet->val->type != XML_SCHEMAS_DECIMAL) &&
5126 (facet->val->type != XML_SCHEMAS_NNINTEGER)) ||
5127 (facet->val->value.decimal.frac != 0)) {
5188 if (facet->type == XML_SCHEMA_FACET_LENGTH) {
5189 if (len != facet->val->value.decimal.lo)
5191 } else if (facet->type == XML_SCHEMA_FACET_MINLENGTH) {
5192 if (len < facet->val->value.decimal.lo)
5195 if (len > facet->val->value.decimal.lo)
5205 * @facet: the facet to check
5211 * facet; sets @length to the computed length of @value.
5218 xmlSchemaFacetPtr facet,
5225 return (xmlSchemaValidateLengthFacetInternal(facet,
5232 * @facet: the facet to check
5240 * facet; sets @length to the computed length of @value.
5246 xmlSchemaValidateLengthFacetWhtsp(xmlSchemaFacetPtr facet,
5253 return (xmlSchemaValidateLengthFacetInternal(facet, valType, value, val,
5259 * @facet: the facet to check
5260 * @fws: the whitespace type of the facet's value
5266 * Check a value against a facet condition
5272 xmlSchemaValidateFacetInternal(xmlSchemaFacetPtr facet,
5281 if (facet == NULL)
5284 switch (facet->type) {
5292 ret = xmlRegexpExec(facet->regexp, value);
5299 ret = xmlSchemaCompareValues(val, facet->val);
5306 ret = xmlSchemaCompareValues(val, facet->val);
5313 ret = xmlSchemaCompareValues(val, facet->val);
5320 ret = xmlSchemaCompareValues(val, facet->val);
5341 if ((facet->value != NULL) &&
5342 (xmlStrEqual(facet->value, value)))
5345 ret = xmlSchemaCompareValuesWhtspExt(facet->val->type,
5346 facet->val, facet->value, fws, valType, val,
5357 * then any {value} is facet-valid."
5374 if ((facet->val == NULL) ||
5375 ((facet->val->type != XML_SCHEMAS_DECIMAL) &&
5376 (facet->val->type != XML_SCHEMAS_NNINTEGER)) ||
5377 (facet->val->value.decimal.frac != 0)) {
5424 if (facet->type == XML_SCHEMA_FACET_LENGTH) {
5425 if (len != facet->val->value.decimal.lo)
5427 } else if (facet->type == XML_SCHEMA_FACET_MINLENGTH) {
5428 if (len < facet->val->value.decimal.lo)
5431 if (len > facet->val->value.decimal.lo)
5439 if ((facet->val == NULL) ||
5440 ((facet->val->type != XML_SCHEMAS_PINTEGER) &&
5441 (facet->val->type != XML_SCHEMAS_NNINTEGER)) ||
5442 (facet->val->value.decimal.frac != 0)) {
5462 if (facet->type == XML_SCHEMA_FACET_TOTALDIGITS) {
5463 if (val->value.decimal.total > facet->val->value.decimal.lo)
5466 } else if (facet->type == XML_SCHEMA_FACET_FRACTIONDIGITS) {
5467 if (val->value.decimal.frac > facet->val->value.decimal.lo)
5481 * @facet: the facet to check
5485 * Check a value against a facet condition
5492 xmlSchemaFacetPtr facet,
5502 return(xmlSchemaValidateFacetInternal(facet,
5506 return(xmlSchemaValidateFacetInternal(facet,
5514 * @facet: the facet to check
5515 * @fws: the whitespace type of the facet's value
5521 * Check a value against a facet condition. This takes value normalization
5523 * Note that @value needs to be the *normalized* value if the facet
5530 xmlSchemaValidateFacetWhtsp(xmlSchemaFacetPtr facet,
5537 return(xmlSchemaValidateFacetInternal(facet, fws, valType,