Skip to content

Commit

Permalink
v1.7.6
Browse files Browse the repository at this point in the history
  • Loading branch information
gagolews committed Nov 28, 2021
1 parent c2e30ba commit 1a1b511
Show file tree
Hide file tree
Showing 140 changed files with 1,438 additions and 981 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
@@ -1,6 +1,6 @@
Package: stringi
Version: 1.7.5.9001
Date: 2021-11-27
Version: 1.7.6
Date: 2021-11-29
Title: 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: 1 addition & 3 deletions NEWS
@@ -1,14 +1,12 @@
# What Is New in *stringi*

## 1.7.5.9001 (under development)
## 1.7.6 (2021-11-29)

* [BUILD TIME] #463: Added loongarch support in ICU's double conversion
(@liuxiang88).

* [BUGFIX] #467: The UCRT build on Windows was not marking strings as `latin1`.

* ...


## 1.7.5 (2021-10-04)

Expand Down
4 changes: 1 addition & 3 deletions devel/sphinx/news.md
@@ -1,14 +1,12 @@
# What Is New in *stringi*

## 1.7.5.9001 (under development)
## 1.7.6 (2021-11-29)

* [BUILD TIME] #463: Added loongarch support in ICU's double conversion
(@liuxiang88).

* [BUGFIX] #467: The UCRT build on Windows was not marking strings as `latin1`.

* ...


## 1.7.5 (2021-10-04)

Expand Down
4 changes: 2 additions & 2 deletions devel/sphinx/rapi/stri_datetime_add.md
Expand Up @@ -63,9 +63,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] "2022-01-27 11:09:44 AEDT"
## [1] "2022-01-29 10:28:47 AEDT"
stri_datetime_add(x, -2, units='months')
## [1] "2021-11-27 11:09:44 AEDT"
## [1] "2021-11-29 10:28:47 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
Expand Up @@ -72,14 +72,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 2021 11 27 11 9 45 405 48 4
## 1 2021 11 29 10 28 48 53 49 5
## DayOfYear DayOfWeek Hour12 AmPm Era
## 1 331 7 11 1 2
## 1 333 2 10 1 2
stri_datetime_fields(stri_datetime_now(), locale='@calendar=hebrew')
## Year Month Day Hour Minute Second Millisecond WeekOfYear WeekOfMonth
## 1 5782 3 23 11 9 45 409 12 4
## 1 5782 3 25 10 28 48 56 13 5
## DayOfYear DayOfWeek Hour12 AmPm Era
## 1 82 7 11 1 1
## 1 84 2 10 1 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
Expand Up @@ -181,11 +181,11 @@ Other datetime: [`stri_datetime_add()`](stri_datetime_add.md), [`stri_datetime_c

```r
stri_datetime_parse(c('2015-02-28', '2015-02-29'), 'yyyy-MM-dd')
## [1] "2015-02-28 11:09:45 AEDT" NA
## [1] "2015-02-28 10:28:48 AEDT" NA
stri_datetime_parse(c('2015-02-28', '2015-02-29'), 'yyyy-MM-dd', lenient=TRUE)
## [1] "2015-02-28 11:09:45 AEDT" "2015-03-01 11:09:45 AEDT"
## [1] "2015-02-28 10:28:48 AEDT" "2015-03-01 10:28:48 AEDT"
stri_datetime_parse('19 lipca 2015', 'date_long', locale='pl_PL')
## [1] "2015-07-19 11:09:45 AEST"
## [1] "2015-07-19 10:28:48 AEST"
stri_datetime_format(stri_datetime_now(), 'datetime_relative_medium')
## [1] "today, 11:09:45 am"
## [1] "today, 10:28:48 am"
```
4 changes: 2 additions & 2 deletions devel/sphinx/rapi/stri_locale_set.md
Expand Up @@ -48,12 +48,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.5.9001 (pt_BR.UTF-8; ICU4C 69.1 [bundle]; Unicode 13.0)
## You are now working with stringi_1.7.6 (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.5.9001 (en_AU.UTF-8; ICU4C 69.1 [bundle]; Unicode 13.0)
## You are now working with stringi_1.7.6 (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
Expand Up @@ -141,14 +141,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 1637971798.608054 is 2021-11-27 11:09:58."
## [1] "UNIX time 1638142141.168161 is 2021-11-29 10:29:01."
# 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] "2021-11-27 11:09:58 is 1637971798.610289 UNIX time."
## [1] "2021-11-29 10:29:01 is 1638142141.170445 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
17 changes: 15 additions & 2 deletions docs/_sources/install.md.txt
Expand Up @@ -106,12 +106,12 @@ Note that Pre-4.9.0 GCC has a
If our built-in workaround does not work, you may try calling:

```r
install.packages("stringi", configure.args="--with-extra-cxxflags='--std=c++11'")
install.packages("stringi", configure.args="--with-extra-cxxflags='-std=c++11'")
```

Overall, your build chain may be misconfigured, check out,
amongst others, `<R_inst_dir>/etc/Makeconf`
(e.g., are you using `--std=gnu++11` instead of `--std=c++11`?). Refer to
(e.g., are you using `-std=gnu++11` instead of `-std=c++11`?). Refer to
https://cran.r-project.org/doc/manuals/r-release/R-admin.html for more details.

There is an option of using the fallback version of ICU4C 55.1
Expand Down Expand Up @@ -197,3 +197,16 @@ If you do not manage to set up a successful stringi build, do not
hesitate to [file a bug report](https://github.com/gagolews/stringi/issues).
However, please check the list of archived (closed) issues first --
it is very likely that a solution to your problem has already been posted.

To help diagnose your error further, please run (from the terminal):

```bash
cd /tmp
wget https://github.com/gagolews/stringi/archive/master.zip
unzip master.zip
cd stringi-master
./configure
```

And submit the output from `./configure` as well as the contents of
`config.log`.
7 changes: 7 additions & 0 deletions docs/_sources/news.md.txt
@@ -1,5 +1,12 @@
# What Is New in *stringi*

## 1.7.6 (2021-11-29)

* [BUILD TIME] #463: Added loongarch support in ICU's double conversion
(@liuxiang88).

* [BUGFIX] #467: The UCRT build on Windows was not marking strings as `latin1`.


## 1.7.5 (2021-10-04)

Expand Down
4 changes: 2 additions & 2 deletions docs/_sources/rapi/stri_datetime_add.md.txt
Expand Up @@ -63,9 +63,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] "2021-12-04 11:45:48 AEDT"
## [1] "2022-01-29 10:28:47 AEDT"
stri_datetime_add(x, -2, units='months')
## [1] "2021-10-04 11:45:48 AEDT"
## [1] "2021-11-29 10:28:47 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
10 changes: 5 additions & 5 deletions docs/_sources/rapi/stri_datetime_fields.md.txt
Expand Up @@ -72,16 +72,16 @@ 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 2021 10 4 11 45 49 347 41 2
## 1 2021 11 29 10 28 48 53 49 5
## DayOfYear DayOfWeek Hour12 AmPm Era
## 1 277 2 11 1 2
## 1 333 2 10 1 2
stri_datetime_fields(stri_datetime_now(), locale='@calendar=hebrew')
## Year Month Day Hour Minute Second Millisecond WeekOfYear WeekOfMonth
## 1 5782 1 28 11 45 49 351 5 5
## 1 5782 3 25 10 28 48 56 13 5
## DayOfYear DayOfWeek Hour12 AmPm Era
## 1 28 2 11 1 1
## 1 84 2 10 1 1
stri_datetime_symbols(locale='@calendar=hebrew')$Month[
stri_datetime_fields(stri_datetime_now(), locale='@calendar=hebrew')$Month
]
## [1] "Tishri"
## [1] "Kislev"
```
8 changes: 4 additions & 4 deletions docs/_sources/rapi/stri_datetime_format.md.txt
Expand Up @@ -181,11 +181,11 @@ Other datetime: [`stri_datetime_add()`](stri_datetime_add.md), [`stri_datetime_c

```r
stri_datetime_parse(c('2015-02-28', '2015-02-29'), 'yyyy-MM-dd')
## [1] "2015-02-28 11:45:49 AEDT" NA
## [1] "2015-02-28 10:28:48 AEDT" NA
stri_datetime_parse(c('2015-02-28', '2015-02-29'), 'yyyy-MM-dd', lenient=TRUE)
## [1] "2015-02-28 11:45:49 AEDT" "2015-03-01 11:45:49 AEDT"
## [1] "2015-02-28 10:28:48 AEDT" "2015-03-01 10:28:48 AEDT"
stri_datetime_parse('19 lipca 2015', 'date_long', locale='pl_PL')
## [1] "2015-07-19 11:45:49 AEST"
## [1] "2015-07-19 10:28:48 AEST"
stri_datetime_format(stri_datetime_now(), 'datetime_relative_medium')
## [1] "today, 11:45:49 am"
## [1] "today, 10:28:48 am"
```
4 changes: 2 additions & 2 deletions docs/_sources/rapi/stri_locale_set.md.txt
Expand Up @@ -48,12 +48,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.5 (pt_BR.UTF-8; ICU4C 69.1 [bundle]; Unicode 13.0)
## You are now working with stringi_1.7.6 (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.5 (en_AU.UTF-8; ICU4C 69.1 [bundle]; Unicode 13.0)
## You are now working with stringi_1.7.6 (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
Expand Up @@ -141,14 +141,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 1633308361.994752 is 2021-10-04 11:46:01."
## [1] "UNIX time 1638142141.168161 is 2021-11-29 10:29:01."
# 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] "2021-10-04 11:46:01 is 1633308361.996937 UNIX time."
## [1] "2021-11-29 10:29:01 is 1638142141.170445 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

0 comments on commit 1a1b511

Please sign in to comment.