From bf212e80fb0f1d83902de520e9cee098187383f7 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 8 Apr 2024 22:34:51 +0200 Subject: Tweaks to uprop_get_*() --- gen/prop/gc | 85 +- gen/prop/nv | 2 +- include/unicode/__gc.h | 3291 -------------------------------------- lib/unicode/prop/uprop_get_gc.c | 3292 ++++++++++++++++++++++++++++++++++++++- lib/unicode/prop/uprop_get_nv.c | 8 +- 5 files changed, 3327 insertions(+), 3351 deletions(-) delete mode 100644 include/unicode/__gc.h diff --git a/gen/prop/gc b/gen/prop/gc index 48c6659..219df8a 100755 --- a/gen/prop/gc +++ b/gen/prop/gc @@ -2,56 +2,19 @@ set -e cd "${0%/*}/../.." -exec >include/unicode/__gc.h - -cat <lib/unicode/prop/uprop_get_gc.c gawk ' BEGIN { FS = ";" -} - -{ - s = "GC_" toupper($3) - lo = strtonum("0X" $1) - - if ($2 ~ /First/) { - getline - hi = strtonum("0X" $1) - } else - hi = lo - - for (i = lo; i <= hi; i++) - props[i] = s -} - -END { - for (i = 0; i <= 0xFF; i++) - print props[i] "," -} -' data/UnicodeData.txt | paste -d' ' - - - - - - - - | sed 's/^/\t/' - -cat <