% Generated by roxygen2: do not edit by hand % Please edit documentation in R/models.R \name{formatted_cep} \alias{formatted_cep} \title{Add the mask to a CEP} \usage{ formatted_cep(x) } \arguments{ \item{x}{A \link{cepis_address} or a character vector of CEPs.} } \value{ A character vector of masked CEPs. A value that is not 8 digits is returned unchanged, because this is a formatting helper and not a validator — \code{\link[=normalize_cep]{normalize_cep()}} is the validator. } \description{ \code{"01001000"} becomes \code{"01001-000"}. The API always answers unmasked; formatting is presentation, and it lives here so it does not become a repeated \code{paste0()} in every project that uses this package. } \examples{ formatted_cep("01001000") }