Skip to content

Commit

Permalink
2024
Browse files Browse the repository at this point in the history
  • Loading branch information
gagolews committed May 6, 2024
1 parent 1c413a3 commit 615a0a1
Show file tree
Hide file tree
Showing 310 changed files with 867 additions and 846 deletions.
4 changes: 2 additions & 2 deletions .devel/sphinx/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyleft (C) 2021-2023, Marek Gagolewski <https://www.gagolewski.com/>
# Copyleft (C) 2021-2024, Marek Gagolewski <https://www.gagolewski.com/>
# Configuration file for the Sphinx documentation builder.

import sys, os
Expand All @@ -12,7 +12,7 @@ def get_package_version():
pkg_name = "stringi"
pkg_title = "stringi"
pkg_version = get_package_version()
copyright_year = "2013–2023"
copyright_year = "2013–2024"
html_baseurl = "https://stringi.gagolewski.com/"
html_logo = "https://www.gagolewski.com/_static/img/stringi.png"
html_favicon = "https://www.gagolewski.com/_static/img/stringi.png"
Expand Down
7 changes: 6 additions & 1 deletion .devel/sphinx/news.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Changelog


## 1.8.3.9xxx (under development)

* ...


## 1.8.3 (2023-12-10)

## [BUILD TIME] [BUGFIX] Fixed the *format string is not a string literal
* [BUILD TIME] [BUGFIX] Fixed the *format string is not a string literal
(potentially insecure)* warnings.


Expand Down
10 changes: 5 additions & 5 deletions .devel/sphinx/rapi/stri_datetime_add.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,37 +68,37 @@ print(x)
```

```
## [1] "2024-02-10 19:10:25 AEDT"
## [1] "2024-07-06 11:01:45 CEST"
```

```r
stri_datetime_add(x, -2, units='months')
```

```
## [1] "2023-12-10 19:10:25 AEDT"
## [1] "2024-05-06 11:01:45 CEST"
```

```r
stri_datetime_add(stri_datetime_create(2014, 4, 20), 1, units='years')
```

```
## [1] "2015-04-20 AEST"
## [1] "2015-04-20 CEST"
```

```r
stri_datetime_add(stri_datetime_create(2014, 4, 20), 1, units='years', locale='@calendar=hebrew')
```

```
## [1] "2015-04-09 AEST"
## [1] "2015-04-09 CEST"
```

```r
stri_datetime_add(stri_datetime_create(2016, 1, 31), 1, units='months')
```

```
## [1] "2016-02-29 AEDT"
## [1] "2016-02-29 CET"
```
8 changes: 4 additions & 4 deletions .devel/sphinx/rapi/stri_datetime_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ stri_datetime_create(2015, 12, 31, 23, 59, 59.999)
```

```
## [1] "2015-12-31 23:59:59 AEDT"
## [1] "2015-12-31 23:59:59 CET"
```

```r
stri_datetime_create(5775, 8, 1, locale='@calendar=hebrew') # 1 Nisan 5775 -> 2015-03-21
```

```
## [1] "2015-03-21 AEDT"
## [1] "2015-03-21 CET"
```

```r
Expand All @@ -88,13 +88,13 @@ stri_datetime_create(2015, 02, 29, lenient=TRUE)
```

```
## [1] "2015-03-01 AEDT"
## [1] "2015-03-01 CET"
```

```r
stri_datetime_create(hour=15, minute=59)
```

```
## [1] "2023-12-10 15:59:00 AEDT"
## [1] "2024-05-06 15:59:00 CEST"
```
10 changes: 5 additions & 5 deletions .devel/sphinx/rapi/stri_datetime_fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ stri_datetime_fields(stri_datetime_now())

```
## Year Month Day Hour Minute Second Millisecond WeekOfYear WeekOfMonth
## 1 2023 12 10 19 10 25 993 50 2
## 1 2024 5 6 11 1 46 92 19 2
## DayOfYear DayOfWeek Hour12 AmPm Era
## 1 344 1 7 2 2
## 1 127 2 11 1 2
```

```r
Expand All @@ -88,9 +88,9 @@ stri_datetime_fields(stri_datetime_now(), locale='@calendar=hebrew')

```
## Year Month Day Hour Minute Second Millisecond WeekOfYear WeekOfMonth
## 1 5784 3 27 19 10 25 999 13 4
## 1 5784 8 28 11 1 46 97 35 5
## DayOfYear DayOfWeek Hour12 AmPm Era
## 1 86 1 7 2 1
## 1 234 2 11 1 1
```

```r
Expand All @@ -100,5 +100,5 @@ stri_datetime_symbols(locale='@calendar=hebrew')$Month[
```

```
## [1] "Kislev"
## [1] "Nisan"
```
10 changes: 5 additions & 5 deletions .devel/sphinx/rapi/stri_datetime_format.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,37 +189,37 @@ stri_datetime_parse(x, 'yyyy-MM-dd')
```

```
## [1] "2015-02-28 AEDT" NA
## [1] "2015-02-28 CET" NA
```

```r
stri_datetime_parse(x, 'yyyy-MM-dd', lenient=TRUE)
```

```
## [1] "2015-02-28 AEDT" "2015-03-01 AEDT"
## [1] "2015-02-28 CET" "2015-03-01 CET"
```

```r
stri_datetime_parse(x %s+% " 17:13", "yyyy-MM-dd HH:mm")
```

```
## [1] "2015-02-28 17:13:00 AEDT" NA
## [1] "2015-02-28 17:13:00 CET" NA
```

```r
stri_datetime_parse('19 lipca 2015', 'date_long', locale='pl_PL')
```

```
## [1] "2015-07-19 AEST"
## [1] "2015-07-19 CEST"
```

```r
stri_datetime_format(stri_datetime_now(), 'datetime_relative_medium')
```

```
## [1] "today, 7:10:26 pm"
## [1] "today, 11:01:46 am"
```
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 @@ -53,7 +53,7 @@ oldloc <- stri_locale_set('pt_BR')
```

```
## You are now working with stringi_1.8.3 (pt_BR.UTF-8; ICU4C 74.1 [bundle]; Unicode 15.1)
## You are now working with stringi_1.8.3.9001 (pt_BR.UTF-8; ICU4C 74.1 [bundle]; Unicode 15.1)
```

```r
Expand All @@ -65,7 +65,7 @@ stri_locale_set(oldloc) # restore the previous default locale
```

```
## You are now working with stringi_1.8.3 (en_AU.UTF-8; ICU4C 74.1 [bundle]; Unicode 15.1)
## You are now working with stringi_1.8.3.9001 (en_AU.UTF-8; ICU4C 74.1 [bundle]; Unicode 15.1)
```

```r
Expand Down
4 changes: 2 additions & 2 deletions .devel/sphinx/rapi/stri_sprintf.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ stri_sprintf("UNIX time %1$f is %1$s.", Sys.time())
```

```
## [1] "UNIX time 1702195836.448396 is 2023-12-10 19:10:36.448396."
## [1] "UNIX time 1714986115.773750 is 2024-05-06 11:01:55.77375."
```

```r
Expand All @@ -213,7 +213,7 @@ stri_sprintf("%1$s is %1$f UNIX time.", Sys.time()) # re-coercion needed
```

```
## [1] "2023-12-10 19:10:36.450227 is 1702195836.450227 UNIX time."
## [1] "2024-05-06 11:01:55.77546 is 1714986115.775460 UNIX time."
```

```r
Expand Down
20 changes: 10 additions & 10 deletions .devel/sphinx/rapi/stri_timezone_info.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,19 @@ stri_timezone_info()

```
## $ID
## [1] "Australia/Melbourne"
## [1] "Europe/Warsaw"
##
## $Name
## [1] "Australian Eastern Standard Time"
## [1] "Central European Standard Time"
##
## $Name.Daylight
## [1] "Australian Eastern Daylight Time"
## [1] "Central European Summer Time"
##
## $Name.Windows
## [1] "AUS Eastern Standard Time"
## [1] "Central European Standard Time"
##
## $RawOffset
## [1] 10
## [1] 1
##
## $UsesDaylightTime
## [1] TRUE
Expand All @@ -89,19 +89,19 @@ stri_timezone_info(locale='sk_SK')

```
## $ID
## [1] "Australia/Melbourne"
## [1] "Europe/Warsaw"
##
## $Name
## [1] "východoaustrálsky štandardný čas"
## [1] "stredoeurópsky štandardný čas"
##
## $Name.Daylight
## [1] "východoaustrálsky letný čas"
## [1] "stredoeurópsky letný čas"
##
## $Name.Windows
## [1] "AUS Eastern Standard Time"
## [1] "Central European Standard Time"
##
## $RawOffset
## [1] 10
## [1] 1
##
## $UsesDaylightTime
## [1] TRUE
Expand Down
2 changes: 1 addition & 1 deletion .devel/sphinx/weave/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2013-2023, Marek Gagolewski <https://www.gagolewski.com/>
# Copyright (c) 2013-2024, Marek Gagolewski <https://www.gagolewski.com/>

FILES_RMD = \
example.Rmd \
Expand Down
2 changes: 1 addition & 1 deletion .devel/tinytest.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is part of the 'stringi' project.
# Copyright (c) 2013-2023, Marek Gagolewski <https://www.gagolewski.com/>
# Copyright (c) 2013-2024, Marek Gagolewski <https://www.gagolewski.com/>
# All rights reserved.

# Runs all unit tests for the package:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/r-check-other.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
config:
- {os: macOS-latest, r: 'release'}
- {os: macOS-latest, r: 'oldrel-4'}
- {os: windows-latest, r: 'devel'}
- {os: windows-latest, r: 'release'}
- {os: windows-latest, r: 'oldrel-3'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# R and C++ source code of the stringi package

```
Copyright (c) 2013-2023, Marek Gagolewski <https://www.gagolewski.com/>
Copyright (c) 2013-2024, 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 Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2013-2023, Marek Gagolewski <https://www.gagolewski.com/>
# Copyright (c) 2013-2024, Marek Gagolewski <https://www.gagolewski.com/>

.PHONY: r check build clean purge html docs test

Expand Down
7 changes: 6 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Changelog


## 1.8.3.9xxx (under development)

* ...


## 1.8.3 (2023-12-10)

## [BUILD TIME] [BUGFIX] Fixed the *format string is not a string literal
* [BUILD TIME] [BUGFIX] Fixed the *format string is not a string literal
(potentially insecure)* warnings.


Expand Down
2 changes: 1 addition & 1 deletion R/ICU_settings.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-2023, Marek Gagolewski <https://www.gagolewski.com/>
## Copyright (c) 2013-2024, 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/compare.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-2023, Marek Gagolewski <https://www.gagolewski.com/>
## Copyright (c) 2013-2024, 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/encoding.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-2023, Marek Gagolewski <https://www.gagolewski.com/>
## Copyright (c) 2013-2024, 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/encoding_conversion.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-2023, Marek Gagolewski <https://www.gagolewski.com/>
## Copyright (c) 2013-2024, 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/encoding_detection.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-2023, Marek Gagolewski <https://www.gagolewski.com/>
## Copyright (c) 2013-2024, 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/encoding_management.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-2023, Marek Gagolewski <https://www.gagolewski.com/>
## Copyright (c) 2013-2024, 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/escape.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-2023, Marek Gagolewski <https://www.gagolewski.com/>
## Copyright (c) 2013-2024, 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/files.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-2023, Marek Gagolewski <https://www.gagolewski.com/>
## Copyright (c) 2013-2024, Marek Gagolewski <https://www.gagolewski.com/>
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
Expand Down
Loading

0 comments on commit 615a0a1

Please sign in to comment.