unsafe fn R_nchar(
x: SEXP,
ntype: c_int,
allowNA: Rboolean,
keepNA: Rboolean,
msg_name: *const c_char,
) -> c_intExpand description
Get the number of characters in a string/character.
§Parameters
x: A string SEXPntype: Type of count (0=bytes, 1=chars, 2=width)allowNA: Whether to allow NA valueskeepNA: Whether to keep NA in resultmsg_name: Name for error messages
§Returns
Character count or -1 on error.
Checked wrapper for R_nchar. Calls R_nchar_unchecked and routes through with_r_thread.
Generated from source location line 3678, column 8.
Generated from source file miniextendr-api/src/ffi.rs.