Skip to content

Commit

Permalink
add char-foldcase and string-foldcase functions #269
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 22, 2024
1 parent f958f92 commit 26131c1
Show file tree
Hide file tree
Showing 8 changed files with 2,387 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* add `vector-for-each` and `vector-copy!` function from R7RS
* add `string-for-each`, `string-downcase`, and `string-upcase` from R7RS
* add `typecheck-number` function
* add `char-foldcase` and `string-foldcase` functions
### Bugfix
* fix `let-values` to allow binding to list [#281](https://github.com/jcubic/lips/issues/281)
* fix wrong strings in `string-fill!`
Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ DATE_SHORT=`date +%Y-%m-%d`
TESTS_CHECKSUM=`cat tests/test.js tests/*.scm | md5sum | cut -d' ' -f 1`
COMMIT=`git rev-parse HEAD`
URL=`git config --get remote.origin.url`
UNICODE=https://unicode.org/Public/UNIDATA/UnicodeData.txt
UNICODE_ALL=https://unicode.org/Public/UNIDATA/UnicodeData.txt
UNICODE_FOLD=https://www.unicode.org/Public/UCD/latest/ucd/CaseFolding.txt

MAKE=make
GIT=git
Expand Down Expand Up @@ -108,7 +109,8 @@ test-update: dist/lips.js dist/std.scm
@$(NPM) run test-update

zero:
@$(WGET) $(UNICODE) -O ./assets/UnicodeData.txt
@$(WGET) $(UNICODE_ALL) -O ./assets/UnicodeData.txt
@$(WGET) $(UNICODE_FOLD) -O ./assets/CaseFolding.txt

unicode: assets/UnicodeData.txt
@$(NODE) ./scripts/numerals.js
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[![npm](https://img.shields.io/badge/npm-1.0.0%E2%80%93beta.18-blue.svg)](https://www.npmjs.com/package/@jcubic/lips)
![1.0.0 Complete](https://img.shields.io/github/milestones/progress-percent/jcubic/lips/1?label=1.0.0%20Complete)
[![Build and test](https://github.com/jcubic/lips/actions/workflows/build.yaml/badge.svg?branch=devel&event=push)](https://github.com/jcubic/lips/actions/workflows/build.yaml)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/lips/badge.svg?branch=devel&230cb872febbd9573dfcbb562a8972cc)](https://coveralls.io/github/jcubic/lips?branch=devel)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/lips/badge.svg?branch=devel&7951433cc9ff158c3701ffea07e0f004)](https://coveralls.io/github/jcubic/lips?branch=devel)
[![Join Gitter Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/jcubic/lips)
![NPM Download Count](https://img.shields.io/npm/dm/@jcubic/lips)
![JSDelivr Download count](https://img.shields.io/jsdelivr/npm/hm/@jcubic/lips)
Expand Down
1,627 changes: 1,627 additions & 0 deletions assets/CaseFolding.txt

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/std.min.scm

Large diffs are not rendered by default.

377 changes: 376 additions & 1 deletion dist/std.scm

Large diffs are not rendered by default.

Binary file modified dist/std.xcb
Binary file not shown.
377 changes: 376 additions & 1 deletion lib/R7RS.scm

Large diffs are not rendered by default.

0 comments on commit 26131c1

Please sign in to comment.