(calc-check-digit* base weight)Computes mod-11 check digit for a CPF base using given weight.
Computes mod-11 check digit for a CPF base using given weight.
(generate-non-repeated-base state-code)Generates a random 8-digit base that won't be all repeated when combined with state-code.
Args: state-code - The state digit (0-9)
Returns: String with 8 random digits
Generates a random 8-digit base that won't be all repeated when combined with state-code. Args: state-code - The state digit (0-9) Returns: String with 8 random digits
(get-state-code state)Returns the numeric state code for a UF keyword, or a random digit if invalid/nil.
Args: state - Optional state keyword (e.g., :SP, :RJ)
Returns: Integer from 0-9
Returns the numeric state code for a UF keyword, or a random digit if invalid/nil. Args: state - Optional state keyword (e.g., :SP, :RJ) Returns: Integer from 0-9
(valid-checksum* cpf)Validates both CPF check digits for 11-character cleaned input.
Validates both CPF check digits for 11-character cleaned input.
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 |