]>
Commit | Line | Data |
---|---|---|
3cb0cda8 UD |
1 | #! /bin/sh |
2 | echo "static const uint32_t to_ucs4[256] = {" | |
3 | sed -e '/^[^[:space:]]*[[:space:]]*.x00/d' \ | |
4 | -e 's/^[^[:space:]]*[[:space:]]*.x\(..\)[[:space:]]*<U\(....\)>.*/ [0x\1] = 0x\2,/p' \ | |
5 | -e d "$@" | \ | |
6 | sort -u | |
7 | echo "};" | |
8 | echo "static const char from_ucs4[] = {" | |
9 | sed -e '/^[^[:space:]]*[[:space:]]*.x00/d' \ | |
10 | -e 's/^[^[:space:]]*[[:space:]]*.x\(..\)[[:space:]]*<U\(....\)>.*/ [0x\2] = 0x\1,/p' \ | |
11 | -e d "$@" | \ | |
12 | sort -u | |
13 | echo "};" |