diff --git a/DESCRIPTION b/DESCRIPTION index 006e5b56..bfba05ee 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: stringi -Version: 1.7.11 -Date: 2023-01-08 +Version: 1.7.12 +Date: 2023-01-09 Title: Fast and Portable Character String Processing Facilities Description: A collection of character string/text/natural language processing tools for pattern searching (e.g., with 'Java'-like regular diff --git a/NEWS b/NEWS index 4a0a0d57..01e0e6e7 100644 --- a/NEWS +++ b/NEWS @@ -1,9 +1,9 @@ # What Is New in *stringi* -## 1.7.11 (2023-01-08) +## 1.7.12 (2023-01-09) -* [BUGFIX] Fixed some problems reported by `rchk`. +* [BUGFIX] Fixed some potential problems reported by `rchk`. * [NOTE] [BACKWARD INCOMPATIBLE CHANGE IF ICU >= 72] If building against ICU >= 72, diff --git a/R/search_locate_4.R b/R/search_locate_4.R index ea10c837..ea37c5e8 100644 --- a/R/search_locate_4.R +++ b/R/search_locate_4.R @@ -1,7 +1,7 @@ # kate: default-dictionary en_US ## This file is part of the 'stringi' package for R. -## Copyright (c) 2013-2021, Marek Gagolewski +## Copyright (c) 2013-2023, Marek Gagolewski ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without @@ -33,7 +33,6 @@ #' @title Locate Pattern Occurrences #' -#' #' @description #' These functions find the indexes (positions) where #' there is a match to some pattern. @@ -41,7 +40,6 @@ #' \code{stri_locate_first_*} and \code{stri_locate_last_*} #' give the first and the last matches, respectively. #' -#' #' @details #' Vectorized over \code{str} and \code{pattern} (with recycling #' of the elements in the shorter vector if necessary). This allows to, diff --git a/R/search_locate_bound.R b/R/search_locate_bound.R index c3feff91..40ea5a27 100644 --- a/R/search_locate_bound.R +++ b/R/search_locate_bound.R @@ -1,7 +1,7 @@ # kate: default-dictionary en_US ## This file is part of the 'stringi' package for R. -## Copyright (c) 2013-2021, Marek Gagolewski +## Copyright (c) 2013-2023, Marek Gagolewski ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without @@ -33,7 +33,6 @@ #' @title Locate Text Boundaries #' -#' #' @description #' These functions locate text boundaries #' (like character, word, line, or sentence boundaries). diff --git a/R/sort.R b/R/sort.R index d0e61c0b..e83c420f 100644 --- a/R/sort.R +++ b/R/sort.R @@ -1,7 +1,7 @@ # kate: default-dictionary en_US ## This file is part of the 'stringi' package for R. -## Copyright (c) 2013-2021, Marek Gagolewski +## Copyright (c) 2013-2023, Marek Gagolewski ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without @@ -33,12 +33,10 @@ #' @title String Sorting #' -#' #' @description #' This function sorts a character vector according to a locale-dependent #' lexicographic order. #' -#' #' @details #' For more information on \pkg{ICU}'s Collator and how to tune it up #' in \pkg{stringi}, refer to \code{\link{stri_opts_collator}}. @@ -92,13 +90,11 @@ stri_sort <- function(str, decreasing = FALSE, na_last = NA, ..., opts_collator #' @title Ordering Permutation #' -#' #' @description #' This function finds a permutation which rearranges the #' strings in a given character vector into the ascending or descending #' locale-dependent lexicographic order. #' -#' #' @details #' For more information on \pkg{ICU}'s Collator and how to tune it up #' in \pkg{stringi}, refer to \code{\link{stri_opts_collator}}. diff --git a/R/trans_normalization.R b/R/trans_normalization.R index 8e04c207..76eb6351 100644 --- a/R/trans_normalization.R +++ b/R/trans_normalization.R @@ -1,7 +1,7 @@ # kate: default-dictionary en_US ## This file is part of the 'stringi' package for R. -## Copyright (c) 2013-2022, Marek Gagolewski +## Copyright (c) 2013-2023, Marek Gagolewski ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without diff --git a/R/trans_transliterate.R b/R/trans_transliterate.R index 3b23d37a..eaf2302b 100644 --- a/R/trans_transliterate.R +++ b/R/trans_transliterate.R @@ -1,7 +1,7 @@ # kate: default-dictionary en_US ## This file is part of the 'stringi' package for R. -## Copyright (c) 2013-2021, Marek Gagolewski +## Copyright (c) 2013-2023, Marek Gagolewski ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without diff --git a/devel/sphinx/news.md b/devel/sphinx/news.md index 0289d016..01e0e6e7 100644 --- a/devel/sphinx/news.md +++ b/devel/sphinx/news.md @@ -1,9 +1,9 @@ # What Is New in *stringi* -## 1.7.11 (2022-12-31) +## 1.7.12 (2023-01-09) -* [BUGFIX] Fixed some problems reported by `rchk`. +* [BUGFIX] Fixed some potential problems reported by `rchk`. * [NOTE] [BACKWARD INCOMPATIBLE CHANGE IF ICU >= 72] If building against ICU >= 72, diff --git a/devel/sphinx/rapi/stri_datetime_add.md b/devel/sphinx/rapi/stri_datetime_add.md index bf223437..a79dadcb 100644 --- a/devel/sphinx/rapi/stri_datetime_add.md +++ b/devel/sphinx/rapi/stri_datetime_add.md @@ -65,9 +65,9 @@ Other datetime: [`stri_datetime_create()`](stri_datetime_create.md), [`stri_date x <- stri_datetime_now() stri_datetime_add(x, units='months') <- 2 print(x) -## [1] "2023-02-28 12:20:54 AEDT" +## [1] "2023-03-09 18:26:38 AEDT" stri_datetime_add(x, -2, units='months') -## [1] "2022-12-28 12:20:54 AEDT" +## [1] "2023-01-09 18:26:38 AEDT" stri_datetime_add(stri_datetime_create(2014, 4, 20), 1, units='years') ## [1] "2015-04-20 12:00:00 AEST" stri_datetime_add(stri_datetime_create(2014, 4, 20), 1, units='years', locale='@calendar=hebrew') diff --git a/devel/sphinx/rapi/stri_datetime_fields.md b/devel/sphinx/rapi/stri_datetime_fields.md index f3cbf9b1..cff6c2a4 100644 --- a/devel/sphinx/rapi/stri_datetime_fields.md +++ b/devel/sphinx/rapi/stri_datetime_fields.md @@ -74,14 +74,14 @@ Other datetime: [`stri_datetime_add()`](stri_datetime_add.md), [`stri_datetime_c ```r stri_datetime_fields(stri_datetime_now()) ## Year Month Day Hour Minute Second Millisecond WeekOfYear WeekOfMonth -## 1 2022 12 31 12 20 54 999 53 5 +## 1 2023 1 9 18 26 39 241 2 2 ## DayOfYear DayOfWeek Hour12 AmPm Era -## 1 365 7 0 2 2 +## 1 9 2 6 2 2 stri_datetime_fields(stri_datetime_now(), locale='@calendar=hebrew') ## Year Month Day Hour Minute Second Millisecond WeekOfYear WeekOfMonth -## 1 5783 4 7 12 20 55 3 14 1 +## 1 5783 4 16 18 26 39 245 16 3 ## DayOfYear DayOfWeek Hour12 AmPm Era -## 1 97 7 0 2 1 +## 1 106 2 6 2 1 stri_datetime_symbols(locale='@calendar=hebrew')$Month[ stri_datetime_fields(stri_datetime_now(), locale='@calendar=hebrew')$Month ] diff --git a/devel/sphinx/rapi/stri_datetime_format.md b/devel/sphinx/rapi/stri_datetime_format.md index 9a15c383..920233ec 100644 --- a/devel/sphinx/rapi/stri_datetime_format.md +++ b/devel/sphinx/rapi/stri_datetime_format.md @@ -186,13 +186,13 @@ Other datetime: [`stri_datetime_add()`](stri_datetime_add.md), [`stri_datetime_c ```r x <- c('2015-02-28', '2015-02-29') stri_datetime_parse(x, 'yyyy-MM-dd') -## [1] "2015-02-28 12:20:55 AEDT" NA +## [1] "2015-02-28 18:26:39 AEDT" NA stri_datetime_parse(x, 'yyyy-MM-dd', lenient=TRUE) -## [1] "2015-02-28 12:20:55 AEDT" "2015-03-01 12:20:55 AEDT" +## [1] "2015-02-28 18:26:39 AEDT" "2015-03-01 18:26:39 AEDT" stri_datetime_parse(x %s+% " 00:00:00", "yyyy-MM-dd HH:mm:ss") ## [1] "2015-02-28 00:00:00 AEDT" NA stri_datetime_parse('19 lipca 2015', 'date_long', locale='pl_PL') -## [1] "2015-07-19 12:20:55 AEST" +## [1] "2015-07-19 18:26:39 AEST" stri_datetime_format(stri_datetime_now(), 'datetime_relative_medium') -## [1] "today, 12:20:55 pm" +## [1] "today, 6:26:39 pm" ``` diff --git a/devel/sphinx/rapi/stri_locale_set.md b/devel/sphinx/rapi/stri_locale_set.md index 6246e7dc..ab582e2d 100644 --- a/devel/sphinx/rapi/stri_locale_set.md +++ b/devel/sphinx/rapi/stri_locale_set.md @@ -50,12 +50,12 @@ Other locale_management: [`about_locale`](about_locale.md), [`stri_locale_info() ```r ## Not run: oldloc <- stri_locale_set('pt_BR') -## You are now working with stringi_1.7.11 (pt_BR.UTF-8; ICU4C 69.1 [bundle]; Unicode 13.0) +## You are now working with stringi_1.7.12 (pt_BR.UTF-8; ICU4C 69.1 [bundle]; Unicode 13.0) # ... some locale-dependent operations # ... note that you may always modify a locale per-call # ... changing the default locale is convenient if you perform # ... many operations stri_locale_set(oldloc) # restore the previous default locale -## You are now working with stringi_1.7.11 (en_AU.UTF-8; ICU4C 69.1 [bundle]; Unicode 13.0) +## You are now working with stringi_1.7.12 (en_AU.UTF-8; ICU4C 69.1 [bundle]; Unicode 13.0) ## End(Not run) ``` diff --git a/devel/sphinx/rapi/stri_sprintf.md b/devel/sphinx/rapi/stri_sprintf.md index e692f0d2..6d0f8d04 100644 --- a/devel/sphinx/rapi/stri_sprintf.md +++ b/devel/sphinx/rapi/stri_sprintf.md @@ -143,14 +143,14 @@ stri_printf("%+10.3f", c(-Inf, -0, 0, Inf, NaN, NA_real_), ## 💩 ## stri_sprintf("UNIX time %1$f is %1$s.", Sys.time()) -## [1] "UNIX time 1672449668.969180 is 2022-12-31 12:21:08." +## [1] "UNIX time 1673249216.815058 is 2023-01-09 18:26:56." # the following do not work in sprintf() stri_sprintf("%1$#- *2$.*3$f", 1.23456, 10, 3) # two asterisks ## [1] " 1.235 " stri_sprintf(c("%s", "%f"), pi) # re-coercion needed ## [1] "3.14159265358979" "3.141593" stri_sprintf("%1$s is %1$f UNIX time.", Sys.time()) # re-coercion needed -## [1] "2022-12-31 12:21:08 is 1672449668.971694 UNIX time." +## [1] "2023-01-09 18:26:56 is 1673249216.817669 UNIX time." stri_sprintf(c("%d", "%s"), factor(11:12)) # re-coercion needed ## [1] "1" "12" stri_sprintf(c("%s", "%d"), factor(11:12)) # re-coercion needed diff --git a/docs/_sources/news.md.txt b/docs/_sources/news.md.txt index 0289d016..01e0e6e7 100644 --- a/docs/_sources/news.md.txt +++ b/docs/_sources/news.md.txt @@ -1,9 +1,9 @@ # What Is New in *stringi* -## 1.7.11 (2022-12-31) +## 1.7.12 (2023-01-09) -* [BUGFIX] Fixed some problems reported by `rchk`. +* [BUGFIX] Fixed some potential problems reported by `rchk`. * [NOTE] [BACKWARD INCOMPATIBLE CHANGE IF ICU >= 72] If building against ICU >= 72, diff --git a/docs/_sources/rapi/stri_datetime_add.md.txt b/docs/_sources/rapi/stri_datetime_add.md.txt index bf223437..a79dadcb 100644 --- a/docs/_sources/rapi/stri_datetime_add.md.txt +++ b/docs/_sources/rapi/stri_datetime_add.md.txt @@ -65,9 +65,9 @@ Other datetime: [`stri_datetime_create()`](stri_datetime_create.md), [`stri_date x <- stri_datetime_now() stri_datetime_add(x, units='months') <- 2 print(x) -## [1] "2023-02-28 12:20:54 AEDT" +## [1] "2023-03-09 18:26:38 AEDT" stri_datetime_add(x, -2, units='months') -## [1] "2022-12-28 12:20:54 AEDT" +## [1] "2023-01-09 18:26:38 AEDT" stri_datetime_add(stri_datetime_create(2014, 4, 20), 1, units='years') ## [1] "2015-04-20 12:00:00 AEST" stri_datetime_add(stri_datetime_create(2014, 4, 20), 1, units='years', locale='@calendar=hebrew') diff --git a/docs/_sources/rapi/stri_datetime_fields.md.txt b/docs/_sources/rapi/stri_datetime_fields.md.txt index f3cbf9b1..cff6c2a4 100644 --- a/docs/_sources/rapi/stri_datetime_fields.md.txt +++ b/docs/_sources/rapi/stri_datetime_fields.md.txt @@ -74,14 +74,14 @@ Other datetime: [`stri_datetime_add()`](stri_datetime_add.md), [`stri_datetime_c ```r stri_datetime_fields(stri_datetime_now()) ## Year Month Day Hour Minute Second Millisecond WeekOfYear WeekOfMonth -## 1 2022 12 31 12 20 54 999 53 5 +## 1 2023 1 9 18 26 39 241 2 2 ## DayOfYear DayOfWeek Hour12 AmPm Era -## 1 365 7 0 2 2 +## 1 9 2 6 2 2 stri_datetime_fields(stri_datetime_now(), locale='@calendar=hebrew') ## Year Month Day Hour Minute Second Millisecond WeekOfYear WeekOfMonth -## 1 5783 4 7 12 20 55 3 14 1 +## 1 5783 4 16 18 26 39 245 16 3 ## DayOfYear DayOfWeek Hour12 AmPm Era -## 1 97 7 0 2 1 +## 1 106 2 6 2 1 stri_datetime_symbols(locale='@calendar=hebrew')$Month[ stri_datetime_fields(stri_datetime_now(), locale='@calendar=hebrew')$Month ] diff --git a/docs/_sources/rapi/stri_datetime_format.md.txt b/docs/_sources/rapi/stri_datetime_format.md.txt index 9a15c383..920233ec 100644 --- a/docs/_sources/rapi/stri_datetime_format.md.txt +++ b/docs/_sources/rapi/stri_datetime_format.md.txt @@ -186,13 +186,13 @@ Other datetime: [`stri_datetime_add()`](stri_datetime_add.md), [`stri_datetime_c ```r x <- c('2015-02-28', '2015-02-29') stri_datetime_parse(x, 'yyyy-MM-dd') -## [1] "2015-02-28 12:20:55 AEDT" NA +## [1] "2015-02-28 18:26:39 AEDT" NA stri_datetime_parse(x, 'yyyy-MM-dd', lenient=TRUE) -## [1] "2015-02-28 12:20:55 AEDT" "2015-03-01 12:20:55 AEDT" +## [1] "2015-02-28 18:26:39 AEDT" "2015-03-01 18:26:39 AEDT" stri_datetime_parse(x %s+% " 00:00:00", "yyyy-MM-dd HH:mm:ss") ## [1] "2015-02-28 00:00:00 AEDT" NA stri_datetime_parse('19 lipca 2015', 'date_long', locale='pl_PL') -## [1] "2015-07-19 12:20:55 AEST" +## [1] "2015-07-19 18:26:39 AEST" stri_datetime_format(stri_datetime_now(), 'datetime_relative_medium') -## [1] "today, 12:20:55 pm" +## [1] "today, 6:26:39 pm" ``` diff --git a/docs/_sources/rapi/stri_locale_set.md.txt b/docs/_sources/rapi/stri_locale_set.md.txt index 6246e7dc..ab582e2d 100644 --- a/docs/_sources/rapi/stri_locale_set.md.txt +++ b/docs/_sources/rapi/stri_locale_set.md.txt @@ -50,12 +50,12 @@ Other locale_management: [`about_locale`](about_locale.md), [`stri_locale_info() ```r ## Not run: oldloc <- stri_locale_set('pt_BR') -## You are now working with stringi_1.7.11 (pt_BR.UTF-8; ICU4C 69.1 [bundle]; Unicode 13.0) +## You are now working with stringi_1.7.12 (pt_BR.UTF-8; ICU4C 69.1 [bundle]; Unicode 13.0) # ... some locale-dependent operations # ... note that you may always modify a locale per-call # ... changing the default locale is convenient if you perform # ... many operations stri_locale_set(oldloc) # restore the previous default locale -## You are now working with stringi_1.7.11 (en_AU.UTF-8; ICU4C 69.1 [bundle]; Unicode 13.0) +## You are now working with stringi_1.7.12 (en_AU.UTF-8; ICU4C 69.1 [bundle]; Unicode 13.0) ## End(Not run) ``` diff --git a/docs/_sources/rapi/stri_sprintf.md.txt b/docs/_sources/rapi/stri_sprintf.md.txt index e692f0d2..6d0f8d04 100644 --- a/docs/_sources/rapi/stri_sprintf.md.txt +++ b/docs/_sources/rapi/stri_sprintf.md.txt @@ -143,14 +143,14 @@ stri_printf("%+10.3f", c(-Inf, -0, 0, Inf, NaN, NA_real_), ## 💩 ## stri_sprintf("UNIX time %1$f is %1$s.", Sys.time()) -## [1] "UNIX time 1672449668.969180 is 2022-12-31 12:21:08." +## [1] "UNIX time 1673249216.815058 is 2023-01-09 18:26:56." # the following do not work in sprintf() stri_sprintf("%1$#- *2$.*3$f", 1.23456, 10, 3) # two asterisks ## [1] " 1.235 " stri_sprintf(c("%s", "%f"), pi) # re-coercion needed ## [1] "3.14159265358979" "3.141593" stri_sprintf("%1$s is %1$f UNIX time.", Sys.time()) # re-coercion needed -## [1] "2022-12-31 12:21:08 is 1672449668.971694 UNIX time." +## [1] "2023-01-09 18:26:56 is 1673249216.817669 UNIX time." stri_sprintf(c("%d", "%s"), factor(11:12)) # re-coercion needed ## [1] "1" "12" stri_sprintf(c("%s", "%d"), factor(11:12)) # re-coercion needed diff --git a/docs/_static/documentation_options.js b/docs/_static/documentation_options.js index 435ed937..471ef185 100644 --- a/docs/_static/documentation_options.js +++ b/docs/_static/documentation_options.js @@ -1,6 +1,6 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), - VERSION: '1.7.11', + VERSION: '1.7.12', LANGUAGE: 'en', COLLAPSE_INDEX: false, BUILDER: 'html', diff --git a/docs/genindex.html b/docs/genindex.html index ea806a4d..dd28bc97 100644 --- a/docs/genindex.html +++ b/docs/genindex.html @@ -67,7 +67,7 @@
- 1.7.11 + 1.7.12
@@ -177,7 +177,7 @@

Index

© Copyright 2013-2023, Marek Gagolewski. - Last updated on 2022-12-31T12:21:19+1100. + Last updated on 2023-01-09T18:27:06+1100.

diff --git a/docs/index.html b/docs/index.html index 724fbfaf..2858912d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -69,7 +69,7 @@
- 1.7.11 + 1.7.12
@@ -434,7 +434,7 @@

stringi: Fast and Portable Character String Processing in R

© Copyright 2013-2023, Marek Gagolewski. - Last updated on 2022-12-31T12:21:19+1100. + Last updated on 2023-01-09T18:27:06+1100.

diff --git a/docs/install.html b/docs/install.html index dbb26055..d88d46f0 100644 --- a/docs/install.html +++ b/docs/install.html @@ -70,7 +70,7 @@
- 1.7.11 + 1.7.12
@@ -343,7 +343,7 @@

Conclusion

© Copyright 2013-2023, Marek Gagolewski. - Last updated on 2022-12-31T12:21:19+1100. + Last updated on 2023-01-09T18:27:06+1100.

diff --git a/docs/news.html b/docs/news.html index 713fb0ea..aee4e1f2 100644 --- a/docs/news.html +++ b/docs/news.html @@ -70,7 +70,7 @@
- 1.7.11 + 1.7.12
@@ -126,7 +126,7 @@
  • JStatSoft Paper
  • C++ API — Rcpp Example
  • What Is New in stringi