Update Big5 encoding range.
From [\xA1-\xFE][\x40-\x7E\xA1-\xFE] (defined in 1984) to [\x81-\xFE][\x40-\x7E\x80-\xFE] (Modern Big5+) Obtained from: TWBUG
This commit is contained in:
parent
3e978219b8
commit
b6f397823f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40027
@ -25,8 +25,8 @@
|
||||
+#ifdef WANT_BIG5
|
||||
+/* XXX I didn't check the encoding range of big5+. This is standard big5. */
|
||||
+#define is_big5_los(lo) (((char)0x40<=lo)&&(lo<=(char)0x7E)) /* standard */
|
||||
+#define is_big5_lox(lo) (((char)0xA1<=lo)&&(lo<=(char)0xFE)) /* extended */
|
||||
+#define is_big5_hi(hi) (((char)0xA1<=hi)&&(hi<=(char)0xFE))
|
||||
+#define is_big5_lox(lo) (((char)0x80<=lo)&&(lo<=(char)0xFE)) /* extended */
|
||||
+#define is_big5_hi(hi) (((char)0x81<=hi)&&(hi<=(char)0xFE))
|
||||
+#define is_big5(hi,lo) is_big5_hi(hi) && (is_big5_los(lo) || is_big5_lox(lo))
|
||||
+#endif WANT_BIG5
|
||||
+
|
||||
|
Loading…
Reference in New Issue
Block a user