Skip to content

stringi_1.5.1

Compare
Choose a tag to compare
@gagolews gagolews released this 31 Aug 10:11
· 279 commits to master since this release

1.5.1 (2020-08-31)

  • [NEW FEATURE] #400: %s$% and %stri$% are now binary operators
    that call base R's sprintf().

  • [NEW FEATURE] #399: The %s*% and %stri*% operators can be used
    in addition to stri_dup(), for the very same purpose.

  • [NEW FEATURE] #355: stri_opts_regex() now accepts the time_limit and
    stack_limit options so as to prevent malformed or malicious regexes
    from running for too long.

  • [NEW FEATURE] #345: stri_startswith() and stri_endswith() are now equipped
    with the negate parameter.

  • [NEW FEATURE] #382: Incorrect regexes are now reported to ease debugging.

  • [DEPRECATION WARNING] #347: Any unknown option passed to stri_opts_fixed(),
    stri_opts_regex(), stri_opts_coll(), and stri_opts_brkiter() now
    generates a warning. In the future, the ... parameter will be removed,
    so that will be an error.

  • [DEPRECATION WARNING] stri_duplicated()'s fromLast argument
    has been renamed from_last. fromLast is now its alias scheduled
    for removal in a future version of the package.

  • [DEPRECATION WARNING] stri_enc_detect2()
    is scheduled for removal in a future version of the package.
    Use stri_enc_detect() or the more targeted stri_enc_isutf8(),
    stri_enc_isascii(), etc., instead.

  • [NEW FEATURE] #398: Alternative, British spelling of function parameters
    has been introduced, e.g., stri_opts_coll() now supports both
    normalization and normalisation.

  • [NEW FEATURE] #393: stri_read_bin(), stri_read_lines(), and
    stri_write_lines() are no longer marked as draft API.
    stri_read_lines() does not support encoding="auto" anymore.

  • [NEW FEATURE] #187: stri_read_bin(), stri_read_lines(), and
    stri_write_lines() now support connection objects as well.

  • [NEW FEATURE] #386: New function stri_sort_key() for generating
    locale-dependent sort keys which can be ordered at the byte level and
    return an equivalent ordering to the original string (@DavisVaughan).

  • [BUGFIX] #138: stri_encode() and stri_rand_strings()
    now can generate strings of much larger lengths.

  • [BUGFIX] stri_wrap() did not honour indent correctly when
    use_width was TRUE.