Skip to content

Commit

Permalink
v1.7.12
Browse files Browse the repository at this point in the history
  • Loading branch information
gagolews committed Jan 9, 2023
1 parent a2abb45 commit e4cf317
Show file tree
Hide file tree
Showing 142 changed files with 306 additions and 312 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions NEWS
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 1 addition & 3 deletions R/search_locate_4.R
Original file line number Diff line number Diff line change
@@ -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 <https://www.gagolewski.com>
## Copyright (c) 2013-2023, Marek Gagolewski <https://www.gagolewski.com>
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -33,15 +33,13 @@

#' @title Locate Pattern Occurrences
#'
#'
#' @description
#' These functions find the indexes (positions) where
#' there is a match to some pattern.
#' The functions \code{stri_locate_all_*} locate all the matches.
#' \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,
Expand Down
3 changes: 1 addition & 2 deletions R/search_locate_bound.R
Original file line number Diff line number Diff line change
@@ -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 <https://www.gagolewski.com>
## Copyright (c) 2013-2023, Marek Gagolewski <https://www.gagolewski.com>
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -33,7 +33,6 @@

#' @title Locate Text Boundaries
#'
#'
#' @description
#' These functions locate text boundaries
#' (like character, word, line, or sentence boundaries).
Expand Down
6 changes: 1 addition & 5 deletions R/sort.R
Original file line number Diff line number Diff line change
@@ -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 <https://www.gagolewski.com>
## Copyright (c) 2013-2023, Marek Gagolewski <https://www.gagolewski.com>
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -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}}.
Expand Down Expand Up @@ -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}}.
Expand Down
2 changes: 1 addition & 1 deletion R/trans_normalization.R
Original file line number Diff line number Diff line change
@@ -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 <https://www.gagolewski.com>
## Copyright (c) 2013-2023, Marek Gagolewski <https://www.gagolewski.com>
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion R/trans_transliterate.R
Original file line number Diff line number Diff line change
@@ -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 <https://www.gagolewski.com>
## Copyright (c) 2013-2023, Marek Gagolewski <https://www.gagolewski.com>
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
Expand Down
4 changes: 2 additions & 2 deletions devel/sphinx/news.md
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 2 additions & 2 deletions devel/sphinx/rapi/stri_datetime_add.md
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
8 changes: 4 additions & 4 deletions devel/sphinx/rapi/stri_datetime_fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
Expand Down
8 changes: 4 additions & 4 deletions devel/sphinx/rapi/stri_datetime_format.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```
4 changes: 2 additions & 2 deletions devel/sphinx/rapi/stri_locale_set.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```
4 changes: 2 additions & 2 deletions devel/sphinx/rapi/stri_sprintf.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ stri_printf("%+10.3f", c(-Inf, -0, 0, Inf, NaN, NA_real_),
## 💩
## <NA>
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
Expand Down
4 changes: 2 additions & 2 deletions docs/_sources/news.md.txt
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 2 additions & 2 deletions docs/_sources/rapi/stri_datetime_add.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
8 changes: 4 additions & 4 deletions docs/_sources/rapi/stri_datetime_fields.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
Expand Down
8 changes: 4 additions & 4 deletions docs/_sources/rapi/stri_datetime_format.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```
4 changes: 2 additions & 2 deletions docs/_sources/rapi/stri_locale_set.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```
4 changes: 2 additions & 2 deletions docs/_sources/rapi/stri_sprintf.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ stri_printf("%+10.3f", c(-Inf, -0, 0, Inf, NaN, NA_real_),
## 💩
## <NA>
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
Expand Down
2 changes: 1 addition & 1 deletion docs/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
4 changes: 2 additions & 2 deletions docs/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@


<div class="version">
1.7.11
1.7.12
</div>


Expand Down Expand Up @@ -177,7 +177,7 @@ <h1 id="index">Index</h1>

<div role="contentinfo">
<p>&#169; Copyright 2013-2023, Marek Gagolewski.
<span class="lastupdated">Last updated on 2022-12-31T12:21:19+1100.
<span class="lastupdated">Last updated on 2023-01-09T18:27:06+1100.
</span></p>
</div>

Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@


<div class="version">
1.7.11
1.7.12
</div>


Expand Down Expand Up @@ -434,7 +434,7 @@ <h1>stringi: Fast and Portable Character String Processing in R<a class="headerl

<div role="contentinfo">
<p>&#169; Copyright 2013-2023, Marek Gagolewski.
<span class="lastupdated">Last updated on 2022-12-31T12:21:19+1100.
<span class="lastupdated">Last updated on 2023-01-09T18:27:06+1100.
</span></p>
</div>

Expand Down
4 changes: 2 additions & 2 deletions docs/install.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@


<div class="version">
1.7.11
1.7.12
</div>


Expand Down Expand Up @@ -343,7 +343,7 @@ <h2>Conclusion<a class="headerlink" href="#conclusion" title="Permalink to this

<div role="contentinfo">
<p>&#169; Copyright 2013-2023, Marek Gagolewski.
<span class="lastupdated">Last updated on 2022-12-31T12:21:19+1100.
<span class="lastupdated">Last updated on 2023-01-09T18:27:06+1100.
</span></p>
</div>

Expand Down
Loading

0 comments on commit e4cf317

Please sign in to comment.