Skip to main content

choice_label

Function choice_label 

Source
fn choice_label(charsxp: SEXP) -> Cow<'static, str>
Expand description

The text of the non-NA CHARSXP charsxp of a choice value. A Latin-1 string is translated. One marked as bytes is compared by its bytes, as pmatch() and so the wrapper’s check compare it: read lossily, it matches a choice only when its bytes are that choice’s UTF-8, and a NoMatch shows it with U+FFFD for the bytes that are not UTF-8.