Liking cljdoc? Tell your friends :D

brazilian-utils.cpf.internal


calc-check-digit*clj/s

(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.
sourceraw docstring

cpf-lengthclj/s

source

first-check-digit-weightclj/s

source

generate-non-repeated-baseclj/s

(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
sourceraw docstring

get-state-codeclj/s

(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
sourceraw docstring

second-check-digit-weightclj/s

source

valid-checksum*clj/s

(valid-checksum* cpf)

Validates both CPF check digits for 11-character cleaned input.

Validates both CPF check digits for 11-character cleaned input.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close