Internal helpers for RENAVAM validation.
Internal helpers for RENAVAM validation.
(calculate-dv base10)Calculates RENAVAM check digit from the first 10 digits.
Calculates RENAVAM check digit from the first 10 digits.
(normalize-length digits)Pads old 9-digit RENAVAMs with leading zeros to 11 digits. Returns nil when length is not 9 or 11.
Pads old 9-digit RENAVAMs with leading zeros to 11 digits. Returns nil when length is not 9 or 11.
(valid-check-digit? normalized)Checks if the final digit matches the calculated check digit.
Checks if the final digit matches the calculated check digit.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |