Lines Matching full:if

277         if (uc == ~0U)  in validate_utf8_string()
287 * That means that if we've got here, the type is unknown */ in validate_simple_type()
288 if (simple_type < 32) in validate_simple_type()
300 if ((flags & CborValidateShortestIntegrals) == 0) in validate_number()
302 if (type >= CborHalfFloatType && type <= CborDoubleType) in validate_number()
307 if (err) in validate_number()
312 if (value >= Value8Bit) in validate_number()
314 if (value > 0xffU) in validate_number()
316 if (value > 0xffffU) in validate_number()
318 if (value > 0xffffffffU) in validate_number()
320 if (bytesNeeded < bytesUsed) in validate_number()
332 if (!recursionLeft) in validate_tag()
334 if (flags & CborValidateNoTags) in validate_tag()
337 /* find the tag data, if any */ in validate_tag()
339 if (tagData->tag < tag) in validate_tag()
341 if (tagData->tag > tag) in validate_tag()
345 if (tagData == knownTagDataEnd) in validate_tag()
348 if (flags & CborValidateNoUnknownTags && !tagData) { in validate_tag()
350 if (flags & CborValidateNoUnknownTagsSA && tag < 24) in validate_tag()
352 if ((flags & CborValidateNoUnknownTagsSR) == CborValidateNoUnknownTagsSR && tag < 256) in validate_tag()
354 if ((flags & CborValidateNoUnknownTags) == CborValidateNoUnknownTags) in validate_tag()
358 if (flags & CborValidateTagUse && tagData && tagData->types) { in validate_tag()
362 if (type == CborIntegerType) in validate_tag()
366 if ((uint8_t)(allowedTypes & 0xff) == type) in validate_tag()
370 if (!allowedTypes) in validate_tag()
385 if (type != CborDoubleType) { in validate_floating_point()
386 if (type == CborFloatType) { in validate_floating_point()
404 if (r == FP_NAN || r == FP_INFINITE) { in validate_floating_point()
405 if (flags & CborValidateFiniteFloatingPoint) in validate_floating_point()
407 if (flags & CborValidateShortestFloatingPoint) { in validate_floating_point()
408 if (type == CborDoubleType) in validate_floating_point()
411 if (type == CborFloatType) in validate_floating_point()
413 if (r == FP_NAN && valf16 != 0x7e00) in validate_floating_point()
415 if (r == FP_INFINITE && valf16 != 0x7c00 && valf16 != 0xfc00) in validate_floating_point()
421 if (flags & CborValidateShortestFloatingPoint && type > CborHalfFloatType) { in validate_floating_point()
422 if (type == CborDoubleType) { in validate_floating_point()
424 if ((double)valf == val) in validate_floating_point()
428 if (type == CborFloatType) { in validate_floating_point()
430 if (valf == decode_half(valf16)) in validate_floating_point()
446 if (!recursionLeft) in validate_container()
452 if (containerType == CborMapType) { in validate_container()
453 if (flags & CborValidateMapKeysAreString) { in validate_container()
455 if (type == CborTagType) { in validate_container()
459 if (err) in validate_container()
463 if (type != CborTextStringType) in validate_container()
469 if (err) in validate_container()
472 if (containerType != CborMapType) in validate_container()
475 if (flags & CborValidateMapIsSorted) { in validate_container()
476 if (previous != -1) { in validate_container()
486 if (len1 > len2) in validate_container()
488 if (len1 == len2) { in validate_container()
497 if (r < 0) { in validate_container()
500 if (r == 0 && bytelen1 != bytelen2) in validate_container()
502 if (r > 0) in validate_container()
504if (r == 0 && (flags & CborValidateMapKeysAreUnique) == CborValidateMapKeysAreUnique) in validate_container()
516 if (err) in validate_container()
527 if (cbor_value_is_length_known(it)) { in validate_value()
529 if (err) in validate_value()
532 if (flags & CborValidateNoIndeterminateLength) in validate_value()
542 if (!err) in validate_value()
544 if (err) { in validate_value()
549 if (err) in validate_value()
568 if (err) in validate_value()
573 if (err) in validate_value()
577 if (err) in validate_value()
579 if (!ptr) in validate_value()
582 if (type == CborTextStringType && flags & CborValidateUtf8) { in validate_value()
584 if (err) in validate_value()
598 if (err) in validate_value()
601 if (err) in validate_value()
612 if (err) in validate_value()
622 if (flags & CborValidateNoUndefined) in validate_value()
633 if (err) in validate_value()
649 * stream pointed by \a it and returns the error it found. If no error was
653 * If \a flags is CborValidateBasic, the result should be the same as
665 if (err)
667 if (flags & CborValidateCompleteData && it->offset != it->parser->end)