charr_backend() selects the implementation used by charr's public string
functions. Dispatch happens once, in R, when a public operation starts.
Nested calls stay within the selected backend.
Details
The available backends are:
"reference": the original stringr implementation, which calls stringi."base": charr's optimized backend returning ordinary R character vectors."altrep": charr's optimized charport backend returning ALTREP character vectors where appropriate. This is the default.
The selection is stored in the global charr_backend option. Changing the
option affects later public calls; it does not change an operation already
in progress.