% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/number_utils.R
\name{resolve_separator}
\alias{resolve_separator}
\title{Resolve the CI or range separator}
\usage{
resolve_separator(lower, upper, marks)
}
\arguments{
\item{lower}{Numeric value of the lower bound (or minimum).}

\item{upper}{Numeric value of the upper bound (or maximum).}

\item{marks}{List with \code{big.mark} and \code{decimal.mark} as returned
by \code{\link{resolve_number_marks}}.}
}
\value{
Character string separator.
}
\description{
Determines the appropriate separator character between two numeric bounds
(\emph{e.g.,} CI lower-upper, range min-max) based on whether either bound is
negative and the current locale's decimal mark. This avoids ambiguous
output like \code{"(-5--3)"} or \code{"(1,2-3,4)"} with European commas.
}
\details{
Rules:
\enumerate{
  \item If either bound is negative, use \code{" to "} to avoid
    double-hyphen ambiguity (\emph{e.g.,} \code{"-5 to -3"} not \code{"-5--3"}).
  \item If the decimal mark is a comma (EU locale), use \code{"\u2013"}
    (en-dash) to avoid confusion between decimal commas and separating
    commas (\emph{e.g.,} \code{"1,2\u20133,4"} not \code{"1,2-3,4"}).
  \item Otherwise, use a plain hyphen \code{"-"}.
}
}
\keyword{internal}
