-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
digit-value
to account for characters in the non-ASCII range
Signed-off-by: yamacir-kit <[email protected]>
- Loading branch information
1 parent
3238345
commit 9a261ac
Showing
11 changed files
with
79 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
build | ||
include/meevax/kernel/digit_value.hpp | ||
src/kernel/basis.cpp | ||
src/kernel/version.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.4.796 | ||
0.4.797 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/sh -e | ||
|
||
# https://www.unicode.org/L2/L1999/UnicodeData.html | ||
# | ||
# \1 = Code value | ||
# \2 = Character name | ||
# \3 = General category | ||
# \4 = Canonical combining classes | ||
# \5 = Bidirectional category | ||
# \6 = Character decomposition mapping | ||
# \7 = Decimal digit value | ||
# \8 = Digit value | ||
# \9 = Numeric value | ||
# \10 = Mirrored | ||
# \11 = Unicode 1.0 Name | ||
# \12 = 10646 comment field | ||
# \13 = Uppercase mapping | ||
# \14 = Lowercase mapping | ||
# \15 = Titlecase mapping | ||
|
||
unicode_data='^([^;]*);([^;]*);([^;]*);([^;]*);([^;]*);([^;]*);([^;]*);([^;]*);([^;]*);([^;]*);([^;]*);([^;]*);([^;]*);([^;]*);(.*)$' | ||
|
||
substitute() | ||
{ | ||
sed -E "s/$unicode_data/$1/g" "$(git rev-parse --show-toplevel)/configure/UnicodeData.txt" | ||
} | ||
|
||
digit_value() | ||
{ | ||
substitute '{ 0x\1, make_number("\9") },' | grep -e '{ .\+, make_number(".\+") },' | ||
} | ||
|
||
for each in "$@" | ||
do | ||
case "$each" in | ||
--digit-value ) digit_value ;; | ||
esac | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters