Update.
[glibc.git] / iconvdata / gen-8bit.sh
blobde6605f7fcac03528dfd0a6309064769a45ccc50
1 #! /bin/sh
2 echo "static const uint32_t to_ucs4[256] = {"
3 sed -ne '/^[^[:space:]]*[[:space:]]*.x00/d' \
4 -e 's/^[^[:space:]]*[[:space:]]*.x\(..\)[[:space:]]*<U\(....\)>.*/ [0x\1] = 0x\2,/p' \
5 "$@" | sort -u
6 echo "};"
7 echo "static const char from_ucs4[] = {"
8 sed -ne '/^[^[:space:]]*[[:space:]]*.x00/d' \
9 -e 's/^[^[:space:]]*[[:space:]]*.x\(..\)[[:space:]]*<U\(....\)>.*/ [0x\2] = 0x\1,/p' \
10 "$@" | sort -u
11 echo "};"