| 1 |
# Changelog |
| 2 |
|
| 3 |
|
| 4 |
## 1.8.9 (2026-07-30) |
| 5 |
|
| 6 |
* [BUGFIX] Fixed build/runtime warnings. |
| 7 |
|
| 8 |
* [BUILD TIME] The configure script no longer tries to fall back to C++11. |
| 9 |
|
| 10 |
|
| 11 |
## 1.8.7 (2025-03-27) |
| 12 |
|
| 13 |
* [BUGFIX] Fixed build warnings. |
| 14 |
|
| 15 |
* [BUGFIX] #512: Fixed PROTECT stack imbalance in `stri_encode_from_marked`. |
| 16 |
|
| 17 |
|
| 18 |
## 1.8.4 (2024-05-06) |
| 19 |
|
| 20 |
* [BUILD TIME] [BUGFIX] #508: Fixed build errors on Windows |
| 21 |
(thanks to @jeroen and @kalibera). |
| 22 |
|
| 23 |
|
| 24 |
## 1.8.3 (2023-12-10) |
| 25 |
|
| 26 |
* [BUILD TIME] [BUGFIX] Fixed the *format string is not a string literal |
| 27 |
(potentially insecure)* warnings. |
| 28 |
|
| 29 |
|
| 30 |
## 1.8.2 (2023-11-22) |
| 31 |
|
| 32 |
* [BUILD TIME] [BUGFIX] #501: Fixed failing build on 32-bit Windows |
| 33 |
(Windows API `ResolveLocaleName` function not available). |
| 34 |
|
| 35 |
* [BUILD TIME] [BUGFIX] #502: `PKG_CPPFLAGS` are now considered |
| 36 |
before other `CPPFLAGS` (the same with other flag types) in |
| 37 |
the `configure` script to make it compatible with what happens in `Makevars`. |
| 38 |
|
| 39 |
* [BUILD TIME] [BUGFIX] Support for ICU's `double` conversion on Loongarch |
| 40 |
has been restored (see #463). |
| 41 |
|
| 42 |
|
| 43 |
## 1.8.1 (2023-11-09) |
| 44 |
|
| 45 |
* [GENERAL] ICU bundle updated to version 74.1 (Unicode 15.1, CLDR 44). |
| 46 |
|
| 47 |
* [BACKWARD INCOMPATIBILITY] [BUILD TIME] Support for Solaris has now been |
| 48 |
dropped. The package is no longer shipped with the very outdated ICU55 bundle. |
| 49 |
A compiler supporting at least C++11 as well as ICU >= 61 are now required. |
| 50 |
|
| 51 |
* [BACKWARD INCOMPATIBILITY] #469: Missing date-time fields in |
| 52 |
`stri_datetime_parse` and `stri_datetime_create` now default to today's |
| 53 |
midnight local time. |
| 54 |
|
| 55 |
* [BACKWARD INCOMPATIBILITY] Removed the long-deprecated and defunct |
| 56 |
`fallback_encoding` parameter of `stri_read_lines` and the ellipsis |
| 57 |
parameter of `stri_opts_collator`, `stri_opts_regex`, `stri_opts_fixed`, |
| 58 |
`stri_opts_brkiter`, and `stri_opts_regex`. |
| 59 |
|
| 60 |
* [BUILD TIME] As per the suggestion of Prof. Brian Ripley, `icudt74l` |
| 61 |
(ICU data - little endian) is now included in the source tarball (compressed |
| 62 |
with xz to save space). This allows for building **`stringi`** on systems with |
| 63 |
no internet access. |
| 64 |
|
| 65 |
* [NEW FEATURE] #476: In break iterator-, date-time-, and collator-based |
| 66 |
operations (e.g., `stri_sort`), a warning is emitted when the *root* ICU |
| 67 |
resource bundle is returned when using an *explicitly* requested locale. |
| 68 |
This might happen when we pass an 'unknown' `locale` argument to these |
| 69 |
functions. Note that when relying on the default `locale=NULL` argument, |
| 70 |
no warning is emitted. In such a case, checking |
| 71 |
if the default locale as returned by `stri_enc_get` is amongst |
| 72 |
those listed in `stri_enc_list` is recommended. |
| 73 |
|
| 74 |
* [NEW FEATURE] The `C` locale identifier now resolves to `en_US_POSIX`. |
| 75 |
|
| 76 |
* [BUGFIX] #469: `stri_datetime_parse` did not reset the `Calendar` |
| 77 |
object when parsing multiple dates. |
| 78 |
|
| 79 |
* [BUGFIX] #487: Some functions did not accept ASCII strings longer than |
| 80 |
858993457 characters on input. |
| 81 |
|
| 82 |
|
| 83 |
## 1.7.12 (2023-01-09) |
| 84 |
|
| 85 |
* [BUGFIX] Fixed a few issues reported by `rchk`. |
| 86 |
|
| 87 |
* [NOTE] [BACKWARD INCOMPATIBLE CHANGE IF ICU >= 72] |
| 88 |
If building against ICU >= 72, note a backward incompatible change: |
| 89 |
`@` is no longer considered a word break; for more details, see |
| 90 |
<https://github.com/unicode-org/cldr/pull/2256>. |
| 91 |
|
| 92 |
|
| 93 |
## 1.7.8 (2022-07-11) |
| 94 |
|
| 95 |
* [DOCUMENTATION] Paper on **`stringi`** has been published in |
| 96 |
the *Journal of Statistical Software*; |
| 97 |
see <https://doi.org/10.18637/jss.v103.i02>. |
| 98 |
|
| 99 |
* [BUGFIX] #473, #397: Fixed buffer overflow in `stri_dup`; Also, |
| 100 |
`stri_dup`, `stri_paste`, ... fail more graciously on attempts to |
| 101 |
generate strings of length >= 2^31 each. |
| 102 |
|
| 103 |
* [BUILD TIME] #480: Using `Rf_isNull` instead of `isNull`. |
| 104 |
|
| 105 |
* [DOCUMENTATION] #462: That the `numeric=TRUE` collator |
| 106 |
does not handle negative numbers correctly is now mentioned in the manual. |
| 107 |
|
| 108 |
|
| 109 |
## 1.7.6 (2021-11-29) |
| 110 |
|
| 111 |
* [BUILD TIME] #463: Added Loongarch support in ICU's double conversion |
| 112 |
(@liuxiang88). |
| 113 |
|
| 114 |
* [BUGFIX] #467: The UCRT build on Windows was not marking strings as `latin1`. |
| 115 |
|
| 116 |
|
| 117 |
## 1.7.5 (2021-10-04) |
| 118 |
|
| 119 |
* [DOCUMENTATION] Paper on **`stringi`** has been accepted for |
| 120 |
publication in the *Journal of Statistical Software*, |
| 121 |
see <https://stringi.gagolewski.com/_static/vignette/stringi.pdf> |
| 122 |
for a draft version. |
| 123 |
|
| 124 |
* [DOCUMENTATION] The **`stringi`** website at <https://stringi.gagolewski.com/> |
| 125 |
now features a comprehensive tutorial based on the aforementioned paper. |
| 126 |
|
| 127 |
* [DOCUMENTATION] The *ICU* Project site has been moved to |
| 128 |
<https://icu.unicode.org/>. |
| 129 |
|
| 130 |
* [BUILD TIME] #457: The `autoconf` macros `AC_LANG_CPLUSPLUS` |
| 131 |
and `AC_TRY_COMPILE` were obsolete. |
| 132 |
|
| 133 |
* [BUGFIX] #458: Passing ALTREP objects no longer yields |
| 134 |
'embeded nul in string' errors. |
| 135 |
|
| 136 |
|
| 137 |
## 1.7.4 (2021-08-12) |
| 138 |
|
| 139 |
* [BUGFIX] #449: Fixed segfaults generated by `stri_sprintf`. |
| 140 |
|
| 141 |
* [BUILD TIME] No longer defining `USE_RINTERNALS` and `R_NO_REMAP`. |
| 142 |
|
| 143 |
|
| 144 |
## 1.7.3 (2021-07-15) |
| 145 |
|
| 146 |
* [BUGFIX] Fixed the previous patch of ICU55 causing a build failure on, |
| 147 |
amongst others, CRAN's Solaris-based target. |
| 148 |
|
| 149 |
|
| 150 |
## 1.7.2 (2021-07-14) |
| 151 |
|
| 152 |
* [BUGFIX] Workaround for a bug in `tools::checkFF` failing |
| 153 |
when `NA_character_` is passed to `.Call`. |
| 154 |
|
| 155 |
|
| 156 |
## 1.7.1 (2021-07-14) |
| 157 |
|
| 158 |
* [BACKWARD INCOMPATIBILITY] `%s$%` and `%stri$%` now use the new `stri_sprintf` |
| 159 |
(see below) function instead of `base::sprintf`. |
| 160 |
|
| 161 |
* [BACKWARD INCOMPATIBILITY, NEW FEATURE] In `stri_sub<-` and `stri_sub_all<-`, |
| 162 |
providing a negative `length` from now on does not result in the corresponding |
| 163 |
input string being altered. |
| 164 |
|
| 165 |
* [BACKWARD INCOMPATIBILITY, NEW FEATURE] In `stri_sub` and `stri_sub_all`, |
| 166 |
negative `length` results in the corresponding output being `NA` |
| 167 |
or not extracted at all, depending on the setting of the new argument |
| 168 |
`ignore_negative_length`. |
| 169 |
|
| 170 |
* [BACKWARD INCOMPATIBILITY, BUGFIX, NEW FEATURE] In `stri_subset*` |
| 171 |
and their replacement versions, `pattern` and `value` cannot be longer |
| 172 |
than `str` (but now they are recycled if necessary). |
| 173 |
|
| 174 |
* [BACKWARD INCOMPATIBILITY, NEW FEATURE] `stri_sub*` now accept the |
| 175 |
`from` argument being a matrix like `cbind(from, length=length)`. |
| 176 |
Unnamed columns or any other names are still interpreted as `cbind(from, to)`. |
| 177 |
Also, the new argument `use_matrix` can be used to disable |
| 178 |
the special treatment of such matrices. |
| 179 |
|
| 180 |
* [DOCUMENTATION] It has been clarified that the syntax of `*_charclass` |
| 181 |
(e.g., used in `stri_trim*`) differs slightly from regex character |
| 182 |
classes. |
| 183 |
|
| 184 |
* [NEW FEATURE] #420: `stri_sprintf` (alias: `stri_string_format`) |
| 185 |
is a Unicode-aware replacement for and enhancement of the base `sprintf`: |
| 186 |
it adds a customised handling of `NA`s (on demand), computing field size |
| 187 |
based on code point width, outputting substrings of at most given width, |
| 188 |
variable width and precision (both at the same time), etc. Moreover, |
| 189 |
`stri_printf` can be used to display formatted strings conveniently. |
| 190 |
|
| 191 |
* [NEW FEATURE] #153: `stri_match_*_regex` now extract capture group names. |
| 192 |
|
| 193 |
* [NEW FEATURE] #25: `stri_locate_*_regex` now have a new argument, |
| 194 |
`capture_groups`, which allows for extracting positions of matches |
| 195 |
to parenthesised subexpressions. |
| 196 |
|
| 197 |
* [NEW FEATURE] `stri_locate_*` now have a new argument, `get_length`, |
| 198 |
whose setting may result in generating *from-length* matrices |
| 199 |
(instead of *from-to* ones). |
| 200 |
|
| 201 |
* [NEW FEATURE] #438: `stri_trans_general` now supports rule-based |
| 202 |
as well as reverse-direction transliteration. |
| 203 |
|
| 204 |
* [NEW FEATURE] #434: `stri_datetime_format` and `stri_datetime_parse` |
| 205 |
are now vectorised also with respect to the `format` argument. |
| 206 |
|
| 207 |
* [NEW FEATURE] `stri_datetime_fstr` has a new argument, `ignore_special`, |
| 208 |
which defaults to `TRUE` for backward compatibility. |
| 209 |
|
| 210 |
* [NEW FEATURE] `stri_datetime_format`, `stri_datetime_add`, and |
| 211 |
`stri_datetime_fields` now call `as.POSIXct` more eagerly. |
| 212 |
|
| 213 |
* [NEW FEATURE] `stri_trim*` now have a new argument, `negate`. |
| 214 |
|
| 215 |
* [NEW FEATURE] `stri_replace_rstr` converts `gsub`-style replacement strings |
| 216 |
to `stri_replace`-style. |
| 217 |
|
| 218 |
* [INTERNAL] `stri_prepare_arg*` have been refactored, buffer overruns |
| 219 |
in the exception handling subsystem are now avoided. |
| 220 |
|
| 221 |
* [BUGFIX] Few functions (`stri_length`, `stri_enc_toutf32`, etc.) |
| 222 |
did not throw an exception on an invalid UTF-8 |
| 223 |
byte sequence (and merely issued a warning instead). |
| 224 |
|
| 225 |
* [BUGFIX] `stri_datetime_fstr` did not honour `NA_character_` |
| 226 |
and did not parse format strings such as `"%Y%m%d"` correctly. |
| 227 |
It has now been completely rewritten (in C). |
| 228 |
|
| 229 |
* [BUGFIX] `stri_wrap` did not recognise the width of certain Unicode sequences |
| 230 |
correctly. |
| 231 |
|
| 232 |
|
| 233 |
## 1.6.2 (2021-05-14) |
| 234 |
|
| 235 |
* [BACKWARD INCOMPATIBILITY] In `stri_enc_list()`, |
| 236 |
`simplify` now defaults to `TRUE`. |
| 237 |
|
| 238 |
* [NEW FEATURE] #425: The outputs of `stri_enc_list()`, `stri_locale_list()`, |
| 239 |
`stri_timezone_list()`, and `stri_trans_list()` are now sorted. |
| 240 |
|
| 241 |
* [NEW FEATURE] #428: In `stri_flatten`, `na_empty=NA` now omits missing values. |
| 242 |
|
| 243 |
* [BUILD TIME] #431: Pre-4.9.0 GCC has `::max_align_t`, |
| 244 |
but not `std::max_align_t`, added a (possible) workaround, see the `INSTALL` |
| 245 |
file. |
| 246 |
|
| 247 |
* [BUGFIX] #429: `stri_width()` misclassified the width of certain |
| 248 |
code points (including grave accent, Eszett, etc.); |
| 249 |
General category *Sk* (Symbol, modifier) is no longer of width 0, |
| 250 |
`UCHAR_EAST_ASIAN_WIDTH` of `U_EA_AMBIGUOUS` is no longer of width 2. |
| 251 |
|
| 252 |
* [BUGFIX] #354: `ALTREP` `CHARSXP`s were not copied, and thus could have been |
| 253 |
garbage collected in the so-called meanwhile (with thanks to @jimhester). |
| 254 |
|
| 255 |
|
| 256 |
## 1.6.1 (2021-05-05) |
| 257 |
|
| 258 |
* [GENERAL] #401: stringi is now bundled with ICU4C 69.1 (upgraded from 61.1), |
| 259 |
which is used on most Windows and OS X builds as well as on *nix systems |
| 260 |
not equipped with system ICU. However, if the C++11 support is disabled, |
| 261 |
stringi will be built against the battle-tested ICU4C 55.1. |
| 262 |
The update to ICU brings Unicode 13.0 and CLDR 39 support. |
| 263 |
|
| 264 |
* [DOCUMENTATION] A draft version of a paper on **`stringi`** is now available |
| 265 |
at <https://stringi.gagolewski.com/_static/vignette/stringi.pdf>. |
| 266 |
|
| 267 |
* [GENERAL] stringi now requires R >= 3.1 (`CXX_STD` of `CXX11` or `CXX1X`). |
| 268 |
|
| 269 |
* [NEW FEATURE] #408: `stri_trans_casefold()` performs case folding; |
| 270 |
this is different from case mapping, which is locale-dependent. |
| 271 |
Folding makes two pieces of text that differ only in case identical. |
| 272 |
This can come in handy when comparing strings. |
| 273 |
|
| 274 |
* [NEW FEATURE] #421: `stri_rank()` ranks strings in a character vector |
| 275 |
(e.g., for ordering data frames with regards to multiple criteria, |
| 276 |
the ranks can be passed to `order()`, see #219). |
| 277 |
|
| 278 |
* [NEW FEATURE] #266: `stri_width()` now supports emojis. |
| 279 |
|
| 280 |
* [NEW FEATURE] `%s$%` and `%stri$%` are now vectorised with respect to |
| 281 |
both arguments. |
| 282 |
|
| 283 |
* [BUGFIX] `stri_sort_key()` now outputs `bytes`-encoded strings. |
| 284 |
|
| 285 |
* [BUGFIX] #415: `locale=''` was not equivalent to `locale=NULL` |
| 286 |
in `stri_opts_collator()`. |
| 287 |
|
| 288 |
* [INTERNAL] #414: Use `LEVELS(x)` macro instead of accessing `(x)->sxpinfo.gp` |
| 289 |
directly (@lukaszdaniel). |
| 290 |
|
| 291 |
|
| 292 |
## 1.5.3 (2020-09-04) |
| 293 |
|
| 294 |
* [DOCUMENTATION] stringi home page has moved to |
| 295 |
<https://stringi.gagolewski.com/> and now includes a comprehensive reference |
| 296 |
manual. |
| 297 |
|
| 298 |
* [NEW FEATURE] #400: `%s$%` and `%stri$%` are now binary operators |
| 299 |
that call base R's `sprintf()`. |
| 300 |
|
| 301 |
* [NEW FEATURE] #399: The `%s*%` and `%stri*%` operators can be used |
| 302 |
in addition to `stri_dup()`, for the very same purpose. |
| 303 |
|
| 304 |
* [NEW FEATURE] #355: `stri_opts_regex()` now accepts the `time_limit` and |
| 305 |
`stack_limit` options so as to prevent malformed or malicious regexes |
| 306 |
from running for too long. |
| 307 |
|
| 308 |
* [NEW FEATURE] #345: `stri_startswith()` and `stri_endswith()` are now equipped |
| 309 |
with the `negate` parameter. |
| 310 |
|
| 311 |
* [NEW FEATURE] #382: Incorrect regexes are now reported to ease debugging. |
| 312 |
|
| 313 |
* [DEPRECATION WARNING] #347: Any unknown option passed to `stri_opts_fixed()`, |
| 314 |
`stri_opts_regex()`, `stri_opts_coll()`, and `stri_opts_brkiter()` now |
| 315 |
generates a warning. In the future, the `...` parameter will be removed, |
| 316 |
so that will be an error. |
| 317 |
|
| 318 |
* [DEPRECATION WARNING] `stri_duplicated()`'s `fromLast` argument |
| 319 |
has been renamed `from_last`. `fromLast` is now its alias scheduled |
| 320 |
for removal in a future version of the package. |
| 321 |
|
| 322 |
* [DEPRECATION WARNING] `stri_enc_detect2()` |
| 323 |
is scheduled for removal in a future version of the package. |
| 324 |
Use `stri_enc_detect()` or the more targeted `stri_enc_isutf8()`, |
| 325 |
`stri_enc_isascii()`, etc., instead. |
| 326 |
|
| 327 |
* [DEPRECATION WARNING] `stri_read_lines()`, `stri_write_lines()`, |
| 328 |
`stri_read_raw()`: use `con` argument instead of `fname` now. |
| 329 |
The argument `fallback_encoding` is scheduled for removal and is no longer |
| 330 |
used. `stri_read_lines()` does not support `encoding="auto"` anymore. |
| 331 |
|
| 332 |
* [DEPRECATION WARNING] `nparagraphs` in `stri_rand_lipsum()` has been renamed |
| 333 |
`n_paragraphs`. |
| 334 |
|
| 335 |
* [NEW FEATURE] #398: Alternative, British spelling of function parameters |
| 336 |
has been introduced, e.g., `stri_opts_coll()` now supports both |
| 337 |
`normalization` and `normalisation`. |
| 338 |
|
| 339 |
* [NEW FEATURE] #393: `stri_read_bin()`, `stri_read_lines()`, and |
| 340 |
`stri_write_lines()` are no longer marked as draft API. |
| 341 |
|
| 342 |
* [NEW FEATURE] #187: `stri_read_bin()`, `stri_read_lines()`, and |
| 343 |
`stri_write_lines()` now support connection objects as well. |
| 344 |
|
| 345 |
* [NEW FEATURE] #386: New function `stri_sort_key()` for generating |
| 346 |
locale-dependent sort keys which can be ordered at the byte level and |
| 347 |
return an equivalent ordering to the original string (@DavisVaughan). |
| 348 |
|
| 349 |
* [BUGFIX] #138: `stri_encode()` and `stri_rand_strings()` |
| 350 |
now can generate strings of much larger lengths. |
| 351 |
|
| 352 |
* [BUGFIX] `stri_wrap()` did not honour `indent` correctly when |
| 353 |
`use_width` was `TRUE`. |
| 354 |
|
| 355 |
|
| 356 |
## 1.4.6 (2020-02-17) |
| 357 |
|
| 358 |
* [BACKWARD INCOMPATIBILITY] #369: `stri_c()` now returns an empty string |
| 359 |
when input is empty and `collapse` is set. |
| 360 |
|
| 361 |
* [BUGFIX] #370: fixed an issue in `stri_prepare_arg_POSIXct()` |
| 362 |
reported by rchk. |
| 363 |
|
| 364 |
* [DOCUMENTATION] #372: documented arguments not in `\usage` in |
| 365 |
documentation object `stri_datetime_format`: `...` |
| 366 |
|
| 367 |
|
| 368 |
## 1.4.5 (2020-01-11) |
| 369 |
|
| 370 |
* [BUGFIX] #366: fix for #363 required ICU >= 55 . |
| 371 |
|
| 372 |
|
| 373 |
## 1.4.4 (2020-01-06) |
| 374 |
|
| 375 |
* [BUGFIX] #348: Avoid copying 0 bytes to a nil-buffer in `stri_sub_all()`. |
| 376 |
|
| 377 |
* [BUGFIX] #362: Removed `configure` variable `CXXCPP` as it is now deprecated. |
| 378 |
|
| 379 |
* [BUGFIX] #318: PROTECTing objects from gcing as reported by `rchk`. |
| 380 |
|
| 381 |
* [BUGFIX] #344, #364: Removed compiler warnings in icu61/common/cstring.h. |
| 382 |
|
| 383 |
* [BUGFIX] #363: Status of `RegexMatcher` is now checked after its use. |
| 384 |
|
| 385 |
|
| 386 |
## 1.4.3 (2019-03-12) |
| 387 |
|
| 388 |
* [NEW FEATURE] #30: New function `stri_sub_all()` - a version of |
| 389 |
`stri_sub()` accepting list `from`/`to`/`length` arguments for extracting |
| 390 |
multiple substrings from each string in a character vector. |
| 391 |
|
| 392 |
* [NEW FEATURE] #30: New function `stri_sub_all<-()` (and its `%<%`-friendly |
| 393 |
version, `stri_sub_replace_all()`) - for replacing multiple substrings |
| 394 |
with corresponding replacement strings. |
| 395 |
|
| 396 |
* [NEW FEATURE] In `stri_sub_replace()`, `value` parameter |
| 397 |
has a new alias, `replacement`. |
| 398 |
|
| 399 |
* [NEW FEATURE] New convenience functions based on `stri_remove_empty()`: |
| 400 |
`stri_omit_empty_na()`, `stri_remove_empty_na()`, `stri_omit_empty()`, |
| 401 |
and also `stri_remove_na()`, `stri_omit_na()`. |
| 402 |
|
| 403 |
* [BUGFIX] #343: `stri_trans_char()` did not yield correct results |
| 404 |
for overlapping pattern and replacement strings. |
| 405 |
|
| 406 |
* [WARNFIX] #205: `configure.ac` is now included in the source bundle. |
| 407 |
|
| 408 |
|
| 409 |
## 1.3.1 (2019-02-10) |
| 410 |
|
| 411 |
* [BACKWARD INCOMPATIBILITY] #335: A fix to #314 prevented (by design) the use |
| 412 |
of the system ICU if the library had been compiled with `U_CHARSET_IS_UTF8=1`. |
| 413 |
However, this is the default setting in `libicu`>=61. From now on, in such |
| 414 |
cases the system ICU is used more eagerly, but `stri_enc_set()` issues |
| 415 |
a warning stating that the default (UTF-8) encoding cannot be changed. |
| 416 |
|
| 417 |
* [NEW FEATURE] #232: All `stri_detect_*` functions now have the `max_count` |
| 418 |
argument that allows for, e.g., stopping at the first pattern occurrence. |
| 419 |
|
| 420 |
* [NEW FEATURE] #338: `stri_sub_replace()` is now an alias for `stri_sub<-()` |
| 421 |
which makes it much more easily pipable (@yutannihilation, @BastienFR). |
| 422 |
|
| 423 |
* [NEW FEATURE] #334: Added missing `icudt61b.dat` to support big-endian |
| 424 |
platforms (thanks to Dimitri John Ledkov @xnox). |
| 425 |
|
| 426 |
* [BUGFIX] #296: Out-of-the box build used to fail on CentOS 6, upgraded |
| 427 |
`configure` to `--disable-cxx11` more eagerly at an early stage. |
| 428 |
|
| 429 |
* [BUGFIX] #341: Fixed possible buffer overflows when calling `strncpy()` |
| 430 |
from within ICU 61. |
| 431 |
|
| 432 |
* [BUGFIX] #325: Made `configure` more portable so that it works |
| 433 |
under `/bin/dash` now. |
| 434 |
|
| 435 |
* [BUGFIX] #319: Fixed overflow in `stri_rand_shuffle()`. |
| 436 |
|
| 437 |
* [BUGFIX] #337: Empty search patterns in search functions (e.g., |
| 438 |
`stri_split_regex()` and `stri_count_fixed()`) used to raise |
| 439 |
too many warnings on empty search patterns. |
| 440 |
|
| 441 |
|
| 442 |
## 1.2.4 (2018-07-20) |
| 443 |
|
| 444 |
* [BUGFIX] #314: Testing `U_CHARSET_IS_UTF8` in `configure` when |
| 445 |
using `pkg-build`. |
| 446 |
|
| 447 |
* [BUILD TIME] #317: Included `icudt61l.zip` in the source bundle to solve |
| 448 |
the frequent `icudt download failed` error (also on CRAN's `windows-release` |
| 449 |
and `windows-oldrel`). (reverted in version 1.3.1, the `winbuilder` |
| 450 |
errors were caused by a build chain bug). |
| 451 |
|
| 452 |
|
| 453 |
## 1.2.3 (2018-05-16) |
| 454 |
|
| 455 |
* [BUGFIX] #296: Fixed the behaviour of the `configure` script on CentOS 6. |
| 456 |
|
| 457 |
* [BUGFIX] Fixed broken Windows build by updating the `icudt` mirror list. |
| 458 |
|
| 459 |
|
| 460 |
## 1.2.2 (2018-05-01) |
| 461 |
|
| 462 |
* [GENERAL] #193: stringi is now bundled with ICU4C 61.1, |
| 463 |
which is used on most Windows and OS X builds as well as on *nix systems |
| 464 |
not equipped with ICU. However, if the C++11 support is disabled, |
| 465 |
stringi will be built against ICU4C 55.1. The update to ICU brings |
| 466 |
Unicode 10.0 support, including new emoji characters. |
| 467 |
|
| 468 |
* [BUGFIX] #288: `stri_match()` did not return the correct number of columns |
| 469 |
when input was empty. |
| 470 |
|
| 471 |
* [NEW FEATURE] #188: `stri_enc_detect()` now returns a list of data frames. |
| 472 |
|
| 473 |
* [NEW FEATURE] #289: `stri_flatten()` how has `na_empty` and `omit_empty` |
| 474 |
arguments. |
| 475 |
|
| 476 |
* [NEW FEATURE] New functions: `stri_remove_empty()`, `stri_na2empty()`. |
| 477 |
|
| 478 |
* [NEW FEATURE] #285: Coercion from a non-trivial list (one that consists |
| 479 |
of atomic vectors, each of length 1) to an atomic vector now issues a warning. |
| 480 |
|
| 481 |
* [WARN] Removed `-Wparentheses` warnings in `icu55/common/cstring.h:38:63` |
| 482 |
and `icu55/i18n/windtfmt.cpp` in the ICU4C 55.1 bundle. |
| 483 |
|
| 484 |
|
| 485 |
## 1.1.7 (2018-03-06) |
| 486 |
|
| 487 |
* [BUGFIX] Fixed ICU4C 55.1 generating some *significant warnings* |
| 488 |
(`icu55/i18n/winnmfmt.cpp`) and *suppressing important diagnostics* |
| 489 |
(`src/icu55/i18n/decNumber.c`). |
| 490 |
|
| 491 |
|
| 492 |
## 1.1.6 (2017-11-10) |
| 493 |
|
| 494 |
* [WINDOWS SPECIFIC] #270: Strings marked with `latin1` encoding |
| 495 |
are now converted internally to UTF-8 using the WINDOWS-1252 codec. |
| 496 |
This fixes problems with - among others - displaying the Euro sign. |
| 497 |
|
| 498 |
* [NEW FEATURE] #263: Added support for custom rule-based break iteration, |
| 499 |
see `?stri_opts_brkiter`. |
| 500 |
|
| 501 |
* [NEW FEATURE] #267: `omit_na=TRUE` in `stri_sub<-()` now ignores missing |
| 502 |
values in any of the arguments provided. |
| 503 |
|
| 504 |
* [BUGFIX] Fixed unPROTECTed variable names and stack imbalances |
| 505 |
as reported by `rchk`. |
| 506 |
|
| 507 |
|
| 508 |
## 1.1.5 (2017-04-07) |
| 509 |
|
| 510 |
* [GENERAL] stringi now requires ICU4C >= 52. |
| 511 |
|
| 512 |
* [BUGFIX] Fixed errors pointed out by `clang-UBSAN` in `stri_brkiter.h`. |
| 513 |
|
| 514 |
* [GENERAL] stringi now requires R >= 2.14. |
| 515 |
|
| 516 |
* [BUILD TIME] #238, #220: Now trying *standard* ICU4C build flags if a call |
| 517 |
to `pkg-config` fails. |
| 518 |
|
| 519 |
* [BUILD TIME] #258: Use `CXX11` instead of `CXX1X` on R >= 3.4. |
| 520 |
|
| 521 |
* [BUILD TIME, BUGFIX] #254: `dir.exists()` is R >= 3.2. |
| 522 |
|
| 523 |
|
| 524 |
## 1.1.3 (2017-03-21) |
| 525 |
|
| 526 |
* [REMOVE DEPRECATED] `stri_install_check()` and `stri_install_icudt()` |
| 527 |
marked as deprecated in stringi 0.5-5 are no longer being exported. |
| 528 |
|
| 529 |
* [BUGFIX] #227: Incorrect behaviour of `stri_sub()` and `stri_sub<-()` |
| 530 |
if the empty string was the result. |
| 531 |
|
| 532 |
* [BUILD TIME] #231: The `configure` (Linux/Unix only) script now reads the |
| 533 |
following environment variables: `STRINGI_CFLAGS`, `STRINGI_CPPFLAGS`, |
| 534 |
`STRINGI_CXXFLAGS`, `STRINGI_LDFLAGS`, `STRINGI_LIBS`, |
| 535 |
`STRINGI_DISABLE_CXX11`, `STRINGI_DISABLE_ICU_BUNDLE`, |
| 536 |
`STRINGI_DISABLE_PKG_CONFIG`, `PKG_CONFIG`, |
| 537 |
see `INSTALL` for more information. |
| 538 |
|
| 539 |
* [BUILD TIME] #253: Call to `R_useDynamicSymbols()` added. |
| 540 |
|
| 541 |
* [BUILD TIME] #230: `icudt` is now being downloaded by |
| 542 |
`configure` (*NIX only) *before* building. |
| 543 |
|
| 544 |
* [BUILD TIME] #242: `_COUNT/_LIMIT` enum constants have been deprecated |
| 545 |
as of ICU 58.2, stringi code has been upgraded accordingly. |
| 546 |
|
| 547 |
|
| 548 |
## 1.1.2 (2016-09-30) |
| 549 |
|
| 550 |
* [BUGFIX] `round()`, `snprintf()` is not C++98. |
| 551 |
|
| 552 |
|
| 553 |
## 1.1.1 (2016-05-25) |
| 554 |
|
| 555 |
* [BUGFIX] #214: Allow a regex pattern like `.*` to match an empty string. |
| 556 |
|
| 557 |
* [BUGFIX] #210: `stri_replace_all_fixed(c("1", "NULL"), "NULL", NA)` |
| 558 |
now results in `c("1", NA)`. |
| 559 |
|
| 560 |
* [NEW FEATURE] #199: `stri_sub<-()` now allows for ignoring `NA` locations |
| 561 |
(a new `omit_na` argument added). |
| 562 |
|
| 563 |
* [NEW FEATURE] #207: `stri_sub<-()` now allows for substring insertions |
| 564 |
(via `length=0`). |
| 565 |
|
| 566 |
* [NEW FUNCTION] #124: `stri_subset<-()` functions added. |
| 567 |
|
| 568 |
* [NEW FEATURE] #216: `stri_detect()`, `stri_subset()`, `stri_subset<-()` |
| 569 |
now all have the `negate` argument. |
| 570 |
|
| 571 |
* [NEW FUNCTION] #175: `stri_join_list()` concatenates all strings |
| 572 |
in a list of character vectors. Useful in conjunction with, e.g., |
| 573 |
`stri_extract_all_regex()`, `stri_extract_all_words()`, etc. |
| 574 |
|
| 575 |
|
| 576 |
## 1.0-1 (2015-10-22) |
| 577 |
|
| 578 |
* [GENERAL] #88: C API is now available for use in, e.g., Rcpp packages, see |
| 579 |
<https://github.com/gagolews/ExampleRcppStringi> for an example. |
| 580 |
|
| 581 |
* [BUGFIX] #183: Floating point exception raised in `stri_sub()` and |
| 582 |
`stri_sub<-()` when `to` or `length` was a zero-length numeric vector. |
| 583 |
|
| 584 |
* [BUGFIX] #180: `stri_c()` warned incorrectly (recycling rule) when using more |
| 585 |
than two elements. |
| 586 |
|
| 587 |
|
| 588 |
## 0.5-5 (2015-06-28) |
| 589 |
|
| 590 |
* [BACKWARD INCOMPATIBILITY] `stri_install_check()` and `stri_install_icudt()` |
| 591 |
are now deprecated. From now on they are supposed to be used only |
| 592 |
by the stringi installer. |
| 593 |
|
| 594 |
* [BUGFIX] #176: A patch for `sys/feature_tests.h` no longer included |
| 595 |
(the original file was copyrighted by Sun Microsystems); fixed the *Compiler |
| 596 |
or options invalid for pre-Unix 03 X/Open applications and pre-2001 POSIX |
| 597 |
applications* error by forcing (conditionally) `_XPG6` conformance. |
| 598 |
|
| 599 |
* [BUGFIX] #174: `stri_paste()` did not generate any warning when |
| 600 |
the recycling rule is violated and `sep==""`. |
| 601 |
|
| 602 |
* [BUGFIX] #170: `icu::setDataDirectory` is no longer called if our ICU |
| 603 |
source bundle is not used (this used to cause build problems on openSUSE). |
| 604 |
|
| 605 |
* [BUILD TIME] #169: `configure` now tries to switch to the *standard* |
| 606 |
C++ compiler if a C++11 one is not configured correctly. |
| 607 |
|
| 608 |
* [BUILD TIME] `configure.win` (`Biarch: TRUE`) now mimics `autoconf`'s |
| 609 |
`AC_SUBST` and `AC_CONFIG_FILES` so that the build process is now |
| 610 |
more similar across different platforms. |
| 611 |
|
| 612 |
* [NEW FEATURE] `stri_info()` now also gives information about which version |
| 613 |
of ICU4C is in use (system or bundle). |
| 614 |
|
| 615 |
|
| 616 |
## 0.5-2 (2015-06-21) |
| 617 |
|
| 618 |
* [BACKWARD INCOMPATIBILITY] The second argument to `stri_pad_*()` has |
| 619 |
been renamed `width`. |
| 620 |
|
| 621 |
* [GENERAL] #69: stringi is now bundled with ICU4C 55.1. |
| 622 |
|
| 623 |
* [NEW FUNCTIONS] `stri_extract_*_boundaries()` extract text between text |
| 624 |
boundaries. |
| 625 |
|
| 626 |
* [NEW FUNCTION] #46: `stri_trans_char()` is a stringi-flavoured |
| 627 |
`chartr()` equivalent. |
| 628 |
|
| 629 |
* [NEW FUNCTION] #8: `stri_width()` approximates the *width* of a string |
| 630 |
in a more Unicode-ish fashion than `nchar(..., "width")` |
| 631 |
|
| 632 |
* [NEW FEATURE] #149: `stri_pad()` and `stri_wrap()` is now (by default) |
| 633 |
based on code point widths instead of the number of code points. |
| 634 |
Moreover, the default behaviour of `stri_wrap()` is now such that it |
| 635 |
does not get rid of non-breaking, zero width, etc., spaces. |
| 636 |
|
| 637 |
* [NEW FEATURE] #133: `stri_wrap()` silently allows for `width <= 0` |
| 638 |
(for compatibility with `strwrap()`). |
| 639 |
|
| 640 |
* [NEW FEATURE] #139: `stri_wrap()` gained a new argument: `whitespace_only`. |
| 641 |
|
| 642 |
* [NEW FUNCTIONS] #137: Date-time formatting/parsing: |
| 643 |
|
| 644 |
* `stri_timezone_list()` - lists all known time zone identifiers; |
| 645 |
* `stri_timezone_set()`, `stri_timezone_get()` - manage the current |
| 646 |
default time zone; |
| 647 |
* `stri_timezone_info()` - basic information on a given time zone; |
| 648 |
* `stri_datetime_symbols()` - gives localizable date-time formatting data; |
| 649 |
* `stri_datetime_fstr()` - converts a `strptime`-like format string |
| 650 |
to an ICU date/time format string; |
| 651 |
* `stri_datetime_format()` - converts date/time to string; |
| 652 |
* `stri_datetime_parse()` - converts string to date/time object; |
| 653 |
* `stri_datetime_create()` - constructs date-time objects |
| 654 |
from numeric representations; |
| 655 |
* `stri_datetime_now()` - returns current date-time; |
| 656 |
* `stri_datetime_fields()` - returns date-time fields' values; |
| 657 |
* `stri_datetime_add()` - adds specific number of date-time units |
| 658 |
to a date-time object. |
| 659 |
|
| 660 |
* [GENERAL] #144: Performance improvements in handling ASCII strings |
| 661 |
(these affect `stri_sub()`, `stri_locate()` and other string index-based |
| 662 |
operations) |
| 663 |
|
| 664 |
* [GENERAL] #143: Searching for short fixed patterns (`stri_*_fixed()`) now |
| 665 |
relies on the current `libC`'s implementation of `strchr()` and `strstr()`. |
| 666 |
This is very fast, e.g., on `glibc` using the `SSE2/3/4` instruction set. |
| 667 |
|
| 668 |
* [BUILD TIME] #141: A local copy of `icudt*.zip` may be used on package |
| 669 |
install; see the `INSTALL` file for more information. |
| 670 |
|
| 671 |
* [BUILD TIME] #165: The `configure` option `--disable-icu-bundle` |
| 672 |
forces the use of system ICU when building the package. |
| 673 |
|
| 674 |
* [BUGFIX] Locale specifiers are now normalized in a more intelligent way: |
| 675 |
e.g., `@calendar=gregorian` expands to `DEFAULT_LOCALE@calendar=gregorian`. |
| 676 |
|
| 677 |
* [BUGFIX] #134: `stri_extract_all_words()` did not accept `simplify=NA`. |
| 678 |
|
| 679 |
* [BUGFIX] #132: Incorrect behaviour in `stri_locate_regex()` for matches |
| 680 |
of zero lengths. |
| 681 |
|
| 682 |
* [BUGFIX] stringr/#73: `stri_wrap()` returned `CHARSXP` instead of `STRSXP` |
| 683 |
on empty string input with `simplify=FALSE` argument. |
| 684 |
|
| 685 |
* [BUGFIX] #164: Using `libicu-dev` failed on Ubuntu |
| 686 |
(`LIBS` shall be passed after `LDFLAGS` and the list of `.o` files). |
| 687 |
|
| 688 |
* [BUGFIX] #168: Build now fails if `icudt` is not available. |
| 689 |
|
| 690 |
* [BUGFIX] #135: C++11 is now used by default (see the `INSTALL` file, |
| 691 |
however) to build stringi from sources. This is because ICU4C uses the |
| 692 |
`long long` type which is not part of the C++98 standard. |
| 693 |
|
| 694 |
* [BUGFIX] #154: Dates and other objects with a custom class attribute |
| 695 |
were not coerced to the character type correctly. |
| 696 |
|
| 697 |
* [BUGFIX] Force ICU `u_init()` call on the stringi dynlib load. |
| 698 |
|
| 699 |
* [BUGFIX] #157: Many overfull `hbox`es in the package PDF manual have been |
| 700 |
corrected. |
| 701 |
|
| 702 |
|
| 703 |
## 0.4-1 (2014-12-11) |
| 704 |
|
| 705 |
* [IMPORTANT CHANGE] `n_max` argument in `stri_split_*()` has been renamed `n`. |
| 706 |
|
| 707 |
* [IMPORTANT CHANGE] `simplify=FALSE` in `stri_extract_all_*()` and |
| 708 |
`stri_split_*()` now calls `stri_list2matrix()` with `fill=""`. |
| 709 |
`fill=NA_character_` may be obtained by using `simplify=NA`. |
| 710 |
|
| 711 |
* [IMPORTANT CHANGE, NEW FUNCTIONS] #120: `stri_extract_words()` has been |
| 712 |
renamed `stri_extract_all_words()` and `stri_locate_boundaries()` - |
| 713 |
`stri_locate_all_boundaries()` as well as `stri_locate_words()` - |
| 714 |
`stri_locate_all_words()`. New functions are now available: |
| 715 |
`stri_locate_first_boundaries()`, `stri_locate_last_boundaries()`, |
| 716 |
`stri_locate_first_words()`, `stri_locate_last_words()`, |
| 717 |
`stri_extract_first_words()`, `stri_extract_last_words()`. |
| 718 |
|
| 719 |
* [IMPORTANT CHANGE] #111: `opts_regex`, `opts_collator`, `opts_fixed`, and |
| 720 |
`opts_brkiter` can now be supplied individually via `...`. |
| 721 |
In other words, you may now simply call, e.g., |
| 722 |
`stri_detect_regex(str, pattern, case_insensitive=TRUE)` instead of |
| 723 |
`stri_detect_regex(str, pattern, |
| 724 |
opts_regex=stri_opts_regex(case_insensitive=TRUE))`. |
| 725 |
|
| 726 |
* [NEW FEATURE] #110: Fixed pattern search engine's settings can |
| 727 |
now be supplied via `opts_fixed` argument in `stri_*_fixed()`, |
| 728 |
see `stri_opts_fixed()`. A simple (not suitable for natural language |
| 729 |
processing) yet very fast `case_insensitive` pattern matching can be |
| 730 |
performed now. `stri_extract_*_fixed()` is again available. |
| 731 |
|
| 732 |
* [NEW FEATURE] #23: `stri_extract_all_fixed()`, `stri_count()`, and |
| 733 |
`stri_locate_all_fixed()` may now also look for overlapping pattern |
| 734 |
matches, see `?stri_opts_fixed`. |
| 735 |
|
| 736 |
* [NEW FEATURE] #129: `stri_match_*_regex()` gained a `cg_missing` argument. |
| 737 |
|
| 738 |
* [NEW FEATURE] #117: `stri_extract_all_*()`, `stri_locate_all_*()`, |
| 739 |
`stri_match_all_*()` gained a new argument: `omit_no_match`. |
| 740 |
Setting it to `TRUE` makes these functions compatible with their |
| 741 |
**`stringr`** equivalents. |
| 742 |
|
| 743 |
* [NEW FEATURE] #118: `stri_wrap()` gained `indent`, `exdent`, `initial`, |
| 744 |
and `prefix` arguments. Moreover, Knuth's dynamic word wrapping algorithm |
| 745 |
now assumes that the cost of printing the last line is zero, see #128. |
| 746 |
|
| 747 |
* [NEW FEATURE] #122: `stri_subset()` gained an `omit_na` argument. |
| 748 |
|
| 749 |
* [NEW FEATURE] `stri_list2matrix()` gained an `n_min` argument. |
| 750 |
|
| 751 |
* [NEW FEATURE] #126: `stri_split()` is now also able to act |
| 752 |
just like `stringr::str_split_fixed()`. |
| 753 |
|
| 754 |
* [NEW FEATURE] #119: `stri_split_boundaries()` now has |
| 755 |
`n`, `tokens_only`, and `simplify` arguments. Additionally, |
| 756 |
`stri_extract_all_words()` is now equipped with `simplify` arg. |
| 757 |
|
| 758 |
* [NEW FEATURE] #116: `stri_paste()` gained a new argument: |
| 759 |
`ignore_null`. Setting it to `TRUE` makes this function more compatible |
| 760 |
with `paste()`. |
| 761 |
|
| 762 |
* [OTHER] #123: `useDynLib` is used to speed up symbol look-up in |
| 763 |
the compiled dynamic library. |
| 764 |
|
| 765 |
* [BUGFIX] #114: `stri_paste()`: could return result in an incorrect order. |
| 766 |
|
| 767 |
* [BUGFIX] #94: Run-time errors on Solaris caused by setting |
| 768 |
`-DU_DISABLE_RENAMING=1` - memory allocation errors in, among others, |
| 769 |
the ICU `UnicodeString`. This setting also caused some `ASAN` sanity check |
| 770 |
failures within ICU code. |
| 771 |
|
| 772 |
|
| 773 |
## 0.3-1 (2014-11-06) |
| 774 |
|
| 775 |
* [IMPORTANT CHANGE] #87: `%>%` overlapped with the pipe operator from |
| 776 |
the `magrittr` package; now each operator like `%>%` has been renamed `%s>%`. |
| 777 |
|
| 778 |
* [IMPORTANT CHANGE] #108: Now the `BreakIterator` (for text boundary analysis) |
| 779 |
may be more easily controlled via `stri_opts_brkiter()` (see options `type` |
| 780 |
and `locale` which aim to replace now-removed `boundary` and `locale` |
| 781 |
parameters to `stri_locate_boundaries()`, `stri_split_boundaries()`, |
| 782 |
`stri_trans_totitle()`, `stri_extract_words()`, and `stri_locate_words()`). |
| 783 |
|
| 784 |
* [NEW FUNCTIONS] #109: `stri_count_boundaries()` and `stri_count_words()` |
| 785 |
count the number of text boundaries in a string. |
| 786 |
|
| 787 |
* [NEW FUNCTIONS] #41: `stri_startswith_*()` and `stri_endswith_*()` |
| 788 |
determine whether a string starts or ends with a given pattern. |
| 789 |
|
| 790 |
* [NEW FEATURE] #102: `stri_replace_all_*()` now all have the `vectorize_all` |
| 791 |
parameter, which defaults to `TRUE` for backward compatibility. |
| 792 |
|
| 793 |
* [NEW FUNCTION] #91: Added `stri_subset_*()` - a convenient and more efficient |
| 794 |
substitute for `str[stri_detect_*(str, ...)]`. |
| 795 |
|
| 796 |
* [NEW FEATURE] #100: `stri_split_fixed()`, `stri_split_charclass()`, |
| 797 |
`stri_split_regex()`, `stri_split_coll()` gained a `tokens_only` parameter, |
| 798 |
which defaults to `FALSE` for backward compatibility. |
| 799 |
|
| 800 |
* [NEW FUNCTION] #105: `stri_list2matrix()` converts lists of atomic vectors |
| 801 |
to character matrices, useful in conjunction with `stri_split()` |
| 802 |
and `stri_extract()`. |
| 803 |
|
| 804 |
* [NEW FEATURE] #107: `stri_split_*()` now allow |
| 805 |
setting an `omit_empty=NA` argument. |
| 806 |
|
| 807 |
* [NEW FEATURE] #106: `stri_split()` and `stri_extract_all()` |
| 808 |
gained a `simplify` argument |
| 809 |
(if `TRUE`, then `stri_list2matrix(..., byrow=TRUE)` |
| 810 |
is called on the resulting list). |
| 811 |
|
| 812 |
* [NEW FUNCTION] #77: `stri_rand_lipsum()` generates |
| 813 |
a (pseudo)random dummy *lorem ipsum* text. |
| 814 |
|
| 815 |
* [NEW FEATURE] #98: `stri_trans_totitle()` gained a `opts_brkiter` |
| 816 |
parameter; it indicates which ICU `BreakIterator` should be used when |
| 817 |
case mapping. |
| 818 |
|
| 819 |
* [NEW FEATURE] `stri_wrap()` gained a new parameter: `normalize`. |
| 820 |
|
| 821 |
* [BUGFIX] #86: `stri_*_fixed()`, `stri_*_coll()`, and `stri_*_regex()` could |
| 822 |
give incorrect results if one of search strings were of length 0. |
| 823 |
|
| 824 |
* [BUGFIX] #99: `stri_replace_all()` did not use the `replacement` arg. |
| 825 |
|
| 826 |
* [BUGFIX] #112: Some of the objects were not PROTECTed from |
| 827 |
garbage collection - this could have led to spontaneous SEGFAULTS. |
| 828 |
|
| 829 |
* [BUGFIX] Some collator's options were not passed correctly to ICU services. |
| 830 |
|
| 831 |
* [BUGFIX] Memory leaks as detected by |
| 832 |
`valgrind --tool=memcheck --leak-check=full` have been removed. |
| 833 |
|
| 834 |
* [DOCUMENTATION] Significant extensions/clean ups in the stringi manual. |
| 835 |
|
| 836 |
|
| 837 |
## 0.2-5 (2014-05-16) |
| 838 |
|
| 839 |
* Some examples are no longer run if `icudt` is not available |
| 840 |
(this was reverted in a future version though). |
| 841 |
|
| 842 |
|
| 843 |
## 0.2-4 (2014-05-15) |
| 844 |
|
| 845 |
* [BUGFIX] Fixed issues with loading of misaligned addresses |
| 846 |
in `stri_*_fixed()`. |
| 847 |
|
| 848 |
|
| 849 |
## 0.2-3 (2014-05-14) |
| 850 |
|
| 851 |
* [IMPORTANT CHANGE] `stri_cmp*()` now do not allow for passing |
| 852 |
`opts_collator=NA`. From now on, `stri_cmp_eq()`, `stri_cmp_neq()`, |
| 853 |
and the new operators `%===%`, `%!==%`, `%stri===%`, and `%stri!==%` |
| 854 |
are locale-independent operations, which base on code point comparisons. |
| 855 |
New functions `stri_cmp_equiv()` and `stri_cmp_nequiv()` |
| 856 |
(and from now on also `%==%`, `%!=%`, `%stri==%`, and `%stri!=%`) |
| 857 |
test for canonical equivalence. |
| 858 |
|
| 859 |
* [IMPORTANT CHANGE] `stri_*_fixed()` search functions now perform |
| 860 |
a locale-independent exact (byte-wise, of course after conversion to UTF-8) |
| 861 |
pattern search. All the `Collator`-based, locale-dependent search routines |
| 862 |
are now available via `stri_*_coll()`. The reason behind this is that |
| 863 |
ICU's `USearch` has currently very poor performance. What is more, |
| 864 |
in many search tasks exact pattern matching is sufficient anyway. |
| 865 |
|
| 866 |
* [GENERAL] `stri_*_fixed` now use a tweaked Knuth-Morris-Pratt search |
| 867 |
algorithm which improves the search performance drastically. |
| 868 |
|
| 869 |
* [IMPORTANT CHANGE] `stri_enc_nf*()` and `stri_enc_isnf*()` function families |
| 870 |
have been renamed `stri_trans_nf*()` and `stri_trans_isnf*()`, |
| 871 |
respectively -- they deal with text transforming, |
| 872 |
and not with character encoding. Note that all of these may |
| 873 |
be performed by ICU's `Transliterator` too (see below). |
| 874 |
|
| 875 |
* [NEW FUNCTION] `stri_trans_general()` and `stri_trans_list()` give access |
| 876 |
to ICU's `Transliterator`: they may be used to perform some generic |
| 877 |
text transforms, like Unicode normalisation, case folding, etc. |
| 878 |
|
| 879 |
* [NEW FUNCTION `stri_split_boundaries()` uses ICU's `BreakIterator` |
| 880 |
to split strings at specific text boundaries. Moreover, |
| 881 |
`stri_locate_boundaries()` indicates positions of these boundaries. |
| 882 |
|
| 883 |
* [NEW FUNCTION] `stri_extract_words()` uses ICU's `BreakIterator` to |
| 884 |
extract all words from a text. Additionally, `stri_locate_words()` |
| 885 |
locates start and end positions of words in a text. |
| 886 |
|
| 887 |
* [NEW FUNCTION] `stri_pad()`, `stri_pad_left()`, `stri_pad_right()`, |
| 888 |
and `stri_pad_both()` pad a string with a specific code point. |
| 889 |
|
| 890 |
* [NEW FUNCTION] `stri_wrap()` breaks paragraphs of text into lines. |
| 891 |
Two algorithms (greedy and minimal raggedness) are available. |
| 892 |
|
| 893 |
* [IMPORTANT CHANGE] `stri_*_charclass()` search functions now |
| 894 |
rely solely on ICU's `UnicodeSet` patterns. All the previously accepted |
| 895 |
charclass identifiers became invalid. However, new patterns |
| 896 |
should now be more familiar to the users (they are regex-like). |
| 897 |
Moreover, we observe a very nice performance gain. |
| 898 |
|
| 899 |
* [IMPORTANT CHANGE] `stri_sort()` now does not include `NA`s |
| 900 |
in output vectors by default, for compatibility with `sort()`. |
| 901 |
Moreover, currently none of the input vector's attributes are preserved. |
| 902 |
|
| 903 |
* [NEW FUNCTION] `stri_unique()` extracts unique elements from |
| 904 |
a character vector. |
| 905 |
|
| 906 |
* [NEW FUNCTIONS] `stri_duplicated()` and `stri_duplicated_any()` |
| 907 |
determine duplicate elements in a character vector. |
| 908 |
|
| 909 |
* [NEW FUNCTION] `stri_replace_na()` replaces `NA`s in a character vector |
| 910 |
with a given string, useful for emulating, e.g., R's `paste()` behaviour. |
| 911 |
|
| 912 |
* [NEW FUNCTION] `stri_rand_shuffle()` generates a random permutation |
| 913 |
of code points in a string. |
| 914 |
|
| 915 |
* [NEW FUNCTION] `stri_rand_strings()` generates random strings. |
| 916 |
|
| 917 |
* [NEW FUNCTIONS] New functions and binary operators for string comparison: |
| 918 |
`stri_cmp_eq()`, `stri_cmp_neq()`, `stri_cmp_lt()`, `stri_cmp_le()`, |
| 919 |
`stri_cmp_gt()`, `stri_cmp_ge()`, `%==%`, `%!=%`, `%<%`, `%<=%`, |
| 920 |
`%>%`, `%>=%`. |
| 921 |
|
| 922 |
* [NEW FUNCTION] `stri_enc_mark()` reads declared encodings of character |
| 923 |
strings as seen by stringi. |
| 924 |
|
| 925 |
* [NEW FUNCTION] `stri_enc_tonative(str)` is an alias to |
| 926 |
`stri_encode(str, NULL, NULL)`. |
| 927 |
|
| 928 |
* [NEW FEATURE] `stri_order()` and `stri_sort()` now have an additional |
| 929 |
argument `na_last` (defaults to `TRUE` and `NA`, respectively). |
| 930 |
|
| 931 |
* [NEW FEATURE] `stri_replace_all_charclass()`, `stri_extract_all_charclass()`, |
| 932 |
and `stri_locate_all_charclass()` now have a new argument, `merge` |
| 933 |
(defaults to `FALSE` for backward-compatibility). It may be used |
| 934 |
to, e.g., replace sequences of white spaces with a single space. |
| 935 |
|
| 936 |
* [NEW FEATURE] `stri_enc_toutf8()` now has a new `validate` argument |
| 937 |
(which defaults to `FALSE` for backward-compatibility). It may be used |
| 938 |
in a (rare) case where a user wants to fix an invalid UTF-8 byte sequence. |
| 939 |
`stri_length()` (among others) now detects invalid UTF-8 byte sequences. |
| 940 |
|
| 941 |
* [NEW FEATURE] All binary operators `%???%` now also have aliases `%stri???%`. |
| 942 |
|
| 943 |
* [GENERAL] Performance improvements in `StriContainerUTF8` |
| 944 |
and `StriContainerUTF16` (they affect most other functions). |
| 945 |
|
| 946 |
* [GENERAL] Significant performance improvements in `stri_join()`, |
| 947 |
`stri_flatten()`, `stri_cmp()`, `stri_trans_to*()`, and others. |
| 948 |
|
| 949 |
* [GENERAL] Added 3rd mirror site for our `icudt` binary distribution. |
| 950 |
|
| 951 |
* `U_MISSING_RESOURCE_ERROR` message in `StriException` now suggests |
| 952 |
calling `stri_install_check()`. |
| 953 |
|
| 954 |
* [BUGFIX] UTF-8 BOMs are now silently removed from input strings. |
| 955 |
|
| 956 |
* [BUGFIX] No more attempts to re-encode UTF-8 encoded strings |
| 957 |
if native encoding is UTF-8 in `StriContainerUTF8`. |
| 958 |
|
| 959 |
* [BUGFIX] Possible memory leaks when throwing errors via `Rf_error()`. |
| 960 |
|
| 961 |
* [BUGFIX] `stri_order()` and `stri_cmp()` could return incorrect results |
| 962 |
for `opts_collator=NA`. |
| 963 |
|
| 964 |
* [BUGFIX] `stri_sort()` did not guarantee to return strings in UTF-8. |
| 965 |
|
| 966 |
|
| 967 |
## 0.1-25 (2014-03-12) |
| 968 |
|
| 969 |
* LICENSE tweaks. |
| 970 |
|
| 971 |
* First CRAN release. |
| 972 |
|
| 973 |
|
| 974 |
## 0.1-24 (2014-03-11) |
| 975 |
|
| 976 |
* Fixed bugs detected with `ASAN` and `UBSAN`, |
| 977 |
e.g., fixed `CharClass::gcmask` type (`enum` -> `uint32_t`) |
| 978 |
(reported by `UBSAN`). |
| 979 |
|
| 980 |
* Fixed array over-runs detected with `valgrind` in `string8.h`. |
| 981 |
|
| 982 |
* Fixed uninitialised class fields in `StriContainerUTF8` |
| 983 |
(reported by `valgrind`). |
| 984 |
|
| 985 |
|
| 986 |
## 0.1-23 (2014-03-11) |
| 987 |
|
| 988 |
* License changed to BSD-3-clause, COPYRIGHTS updated. |
| 989 |
|
| 990 |
* `icudt` is not shipped with stringi anymore; |
| 991 |
it is now downloaded in `install.libs.R` from one of our servers. |
| 992 |
|
| 993 |
* New functions: `stri_install_check()`, `stri_install_icudt()`. |
| 994 |
|
| 995 |
|
| 996 |
## 0.1-22 (2014-02-20) |
| 997 |
|
| 998 |
* System ICU is used on systems which do have one (version >= 50 needed). |
| 999 |
ICU is auto-detected with `pkg-config` in `configure`. |
| 1000 |
Pass `'--disable-pkg-config'` to `configure` to force building |
| 1001 |
ICU from sources. |
| 1002 |
|
| 1003 |
* `icudt52b` (custom subset) is now shipped with stringi |
| 1004 |
(for big-endian, ASCII systems). |
| 1005 |
|
| 1006 |
|
| 1007 |
## 0.1-21 (2014-02-19) |
| 1008 |
|
| 1009 |
* Fixed some issues on Solaris while preparing stringi |
| 1010 |
for CRAN submission. |
| 1011 |
|
| 1012 |
|
| 1013 |
## 0.1-20 (2014-02-17) |
| 1014 |
|
| 1015 |
* ICU4C 52.1 sources included (common, i18n, stubdata + `icu52dt.dat` |
| 1016 |
loaded dynamically). Compilation via Makevars. |
| 1017 |
|
| 1018 |
* stringi does not depend on any external libraries anymore. |
| 1019 |
|
| 1020 |
|
| 1021 |
## 0.1-11 (2013-11-16) |
| 1022 |
|
| 1023 |
* ICU4C is now statically linked on Windows. |
| 1024 |
|
| 1025 |
* First OS X binary build. |
| 1026 |
|
| 1027 |
* The package is being intensively tested by our students at Warsaw |
| 1028 |
University of Technology. |
| 1029 |
|
| 1030 |
|
| 1031 |
## 0.1-10 (2013-11-13) |
| 1032 |
|
| 1033 |
* Using `pkg-config` via `configure` to look for ICU4C libs. |
| 1034 |
|
| 1035 |
|
| 1036 |
## 0.1-6 (2013-07-05) |
| 1037 |
|
| 1038 |
* First Windows binary build. |
| 1039 |
|
| 1040 |
* Compilation passed on Oracle Sun Studio compiler collection. |
| 1041 |
|
| 1042 |
* By now we have implemented most of the functionality |
| 1043 |
scheduled for milestone 0.1. |
| 1044 |
|
| 1045 |
|
| 1046 |
## 0.1-1 (2013-01-05) |
| 1047 |
|
| 1048 |
* The stringi project has been started. |