stri_enc_fromutf32: Convert From UTF-32

Description Usage Arguments Details Value See Also

Description

This function converts a list of integer vectors, representing UTF-32 code points, to a character vector.

Usage

1

Arguments

vec

list of integer vectors or, for convenience, a single integer vector

Details

UTF-32 is a 32bit encoding in which each Unicode code point corresponds to exactly one integer value.

This functions roughly acts like a vectorized version of intToUtf8, as usual in stringi, it returns character strings in UTF-8. If you have a list of raw vectors on input, use stri_encode.

Note that 0s are not allowed in vec, as they are used to internally mark the end of a string (in the C API).

If an incorrect code point is given, a warning is generated and a string is set to NA.

NULLs in the input list are converted to NA_character_.

Value

Returns a character vector (in UTF-8).

See Also

Other encoding_conversion: stri_conv, stri_encode; stri_enc_toascii; stri_enc_toutf32; stri_enc_toutf8; stringi-encoding


stringi documentation built on May 2, 2019, 4:54 p.m.