stringx
stringx copied to clipboard
Drop-in replacements for base R string functions powered by stringi
Make use of the new parameter in `stri_datetime_parse`, https://github.com/gagolews/stringi/issues/469
So that at least the names attribute is preserved: ``` > as.character(as.factor(c(a=1, b=2))) [1] "1" "2" > as.factor(c(a=1, b=2)) a b 1 2 Levels: 1 2 ```
``` numeric_version(stringi::stri_info()[["Unicode.version"]]) < "13.0" stringi::stri_info()[["Locale"]][["Variant"]] == "POSIX" ``` etc.
We have `gregexec` + `gsubstrl` or `gregextr` instead here. Needs #2 first, though.
Requires https://github.com/gagolews/stringi/issues/136
`stri_locate_first_regex` does not distinguish between a non-existing capture group and a no-match to a capture group in the case of many patterns. Also, it does not return capture group names....