Expand description
Fibre composition validation — EU textile DPP regulation.
Structs§
- Fibre
Input - A fibre entry for composition validation.
Constants§
- FIBRE_
SUM_ TOLERANCE - Tolerance (percentage points) allowed when fibre percentages are summed.
Functions§
- fibre_
sum_ ok - Whether fibre percentages sum to ~100% (±
FIBRE_SUM_TOLERANCE). - validate_
fibre_ composition - Validate a textile fibre composition: non-empty, each
pctin[0, 100], anycountry_of_origina valid ISO 3166-1 alpha-2 code, and the percentages summing to ~100% (±FIBRE_SUM_TOLERANCE).