Requires charport 0.3.0 or later.
Under the "altrep" backend, repeated fixed matches from
str_extract_all() now have independent byte storage, so assigning to one
match cannot corrupt the others.
str_width() reads native strings directly in a UTF-8 locale under both
optimized backends, avoiding an unnecessary encoding conversion.
Both optimized backends validate str_write_lines() records while streaming
them. A late input error can leave partial output in the destination file.
Stateful encodings such as ISO-2022-JP now keep encoder state across records.
Requires charport 0.2.0 or later.
Under the "altrep" backend, short results (at most 64 strings and 64 KiB
of text) are now returned as charport charpacks: a single raw vector with
no external pointer or finalizer, which is cheaper to create, copy and
serialize. Larger results are still returned as charvecs. Values are
unchanged; only the ALTREP class differs.
str_trunc() and str_flatten(na.rm = TRUE) (without last) no longer
call is.na() on plain character input under the "base" and "altrep"
backends, so packed ALTREP input stays packed. Other input types keep
stringr's behavior.
Native-encoding detection now uses charport's check, which reads R's own UTF-8 locale flag, instead of an iconv probe.
Under the "altrep" backend, str_conv() output that is pure ASCII is now
marked as ASCII rather than as the target encoding, so it serializes in
packed form in any locale.