From 0b18a690933f15c624dc0a2ecac419d963e90b29 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 11 Apr 2024 18:00:57 +0200 Subject: Add uprop_get_na() --- gen/prop/na | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 gen/prop/na (limited to 'gen/prop') diff --git a/gen/prop/na b/gen/prop/na new file mode 100755 index 0000000..5aa24e3 --- /dev/null +++ b/gen/prop/na @@ -0,0 +1,38 @@ +#!/bin/sh + +set -e +cd "${0%/*}/../.." +exec >lib/unicode/prop/uprop_get_na.c + +gawk ' +BEGIN { + FS = ";" + + print "/* This file is autogenerated by gen/prop/nv; DO NOT EDIT. */" + print "" + print "#include \"macros.h\"" + print "#include \"rune.h\"" + print "#include \"unicode/prop.h\"" + print "" + print "#define _(...) \\" + print "\t{(const char8_t []){__VA_ARGS__}, sizeof((const char8_t []){__VA_ARGS__})}" + print "" + print "static const struct u8view lookup[] = {" +} + +$2 !~ /^