Skip to main content

R_nchar_unchecked

Function R_nchar_unchecked 

Source
unsafe extern "C-unwind" fn R_nchar_unchecked(
    x: SEXP,
    ntype: c_int,
    allowNA: Rboolean,
    keepNA: Rboolean,
    msg_name: *const c_char,
) -> c_int
Expand description

Get the number of characters in a string/character.

§Parameters

  • x: A string SEXP
  • ntype: Type of count (0=bytes, 1=chars, 2=width)
  • allowNA: Whether to allow NA values
  • keepNA: Whether to keep NA in result
  • msg_name: Name for error messages

§Returns

Character count or -1 on error. Unchecked FFI binding for R_nchar. Generated from source location line 3678, column 8. Generated from source file miniextendr-api/src/ffi.rs.