]> Kevux Git Server - fll/commit
Update: The f_utf project regarding digits and perform other clean ups.
authorKevin Day <thekevinday@gmail.com>
Mon, 20 Jun 2022 04:42:18 +0000 (23:42 -0500)
committerKevin Day <thekevinday@gmail.com>
Mon, 20 Jun 2022 05:04:15 +0000 (00:04 -0500)
commite696e3941592c6910f2f8ecc87a698d4f618c3b4
tree05bda473e481648fa25f75d16435b25cbd601b2f
parentb165b923185d82930314c86ae7fad94b6743bb69
Update: The f_utf project regarding digits and perform other clean ups.

Redesign the digit and decimal behavior.
The is digit functions now refers to base-10 but does not attempt to return the identified digit.
The is decimal functions now refers to base-10 and supports providing the identified digit.
The is decimal functions also support other base units than just base-10.

The alphabetic digit/numeric functions now also have a alphebetic decimal function.

Clean up more places in the code using "sequence" rather than "character" or "characters".

Functions like f_utf_character_is_alpha_digit() are now like f_utf_character_is_alphabetic_digit().

Add related unit tests.
The is digit functions have unit tests that tests if the digit returned is correct.
I have not reviewed all of the "numeric" Unicode digits to confirm/deny that my is decimal functions are complete.

I observed what looks like bugs in the alphabetic functions.
In these cases the final return statement is returning F_false when they instead should be returning F_true.

There are minor corrections in documentation.
48 files changed:
build/level_0/settings
build/monolithic/settings
level_0/f_utf/c/private-utf.c
level_0/f_utf/c/private-utf.h
level_0/f_utf/c/private-utf_alphabetic.c
level_0/f_utf/c/private-utf_alphabetic.h
level_0/f_utf/c/private-utf_decimal.c [new file with mode: 0644]
level_0/f_utf/c/private-utf_decimal.h [new file with mode: 0644]
level_0/f_utf/c/private-utf_digit.c
level_0/f_utf/c/private-utf_word.c
level_0/f_utf/c/utf/common.h
level_0/f_utf/c/utf/is.c
level_0/f_utf/c/utf/is.h
level_0/f_utf/c/utf/is_character.c
level_0/f_utf/c/utf/is_character.h
level_0/f_utf/data/build/settings
level_0/f_utf/data/build/settings-tests
level_0/f_utf/data/tests/bytesequences/decimal-all.txt [new file with mode: 0644]
level_0/f_utf/data/tests/bytesequences/digit-all.txt
level_0/f_utf/data/tests/codepoints/decimal-all.txt [new file with mode: 0644]
level_0/f_utf/data/tests/codepoints/digit-all.txt
level_0/f_utf/data/tests/values/decimal-all.txt [new file with mode: 0644]
level_0/f_utf/tests/unit/c/data-utf.c
level_0/f_utf/tests/unit/c/data-utf.h
level_0/f_utf/tests/unit/c/test-utf-character_is_decimal.c [new file with mode: 0644]
level_0/f_utf/tests/unit/c/test-utf-character_is_decimal.h [new file with mode: 0644]
level_0/f_utf/tests/unit/c/test-utf-is_alphabetic.c
level_0/f_utf/tests/unit/c/test-utf-is_combining.c
level_0/f_utf/tests/unit/c/test-utf-is_control.c
level_0/f_utf/tests/unit/c/test-utf-is_decimal.c [new file with mode: 0644]
level_0/f_utf/tests/unit/c/test-utf-is_decimal.h [new file with mode: 0644]
level_0/f_utf/tests/unit/c/test-utf-is_digit.c
level_0/f_utf/tests/unit/c/test-utf-is_emoji.c
level_0/f_utf/tests/unit/c/test-utf-is_numeric.c
level_0/f_utf/tests/unit/c/test-utf-is_phonetic.c
level_0/f_utf/tests/unit/c/test-utf-is_private.c
level_0/f_utf/tests/unit/c/test-utf-is_punctuation.c
level_0/f_utf/tests/unit/c/test-utf-is_subscript.c
level_0/f_utf/tests/unit/c/test-utf-is_superscript.c
level_0/f_utf/tests/unit/c/test-utf-is_symbol.c
level_0/f_utf/tests/unit/c/test-utf-is_whitespace.c
level_0/f_utf/tests/unit/c/test-utf-is_wide.c
level_0/f_utf/tests/unit/c/test-utf-is_word.c
level_0/f_utf/tests/unit/c/test-utf-is_zero_width.c
level_0/f_utf/tests/unit/c/test-utf.c
level_0/f_utf/tests/unit/c/test-utf.h
level_3/controller/c/controller/private-controller.c
level_3/controller/c/controller/private-controller.h