summaryrefslogtreecommitdiffstats
path: root/contrib/tcsh/sh.char.c
diff options
context:
space:
mode:
authormp <mp@FreeBSD.org>2002-07-24 16:23:10 +0000
committermp <mp@FreeBSD.org>2002-07-24 16:23:10 +0000
commitf2c2aa29b7d05c53575ab7ce4dc5870fd33a1310 (patch)
tree22260a5dd95c2612c939ecc9dc8166877f07d1d1 /contrib/tcsh/sh.char.c
parente8a1e84ed0d35851468ed9942dd757f1874d0907 (diff)
downloadFreeBSD-src-f2c2aa29b7d05c53575ab7ce4dc5870fd33a1310.zip
FreeBSD-src-f2c2aa29b7d05c53575ab7ce4dc5870fd33a1310.tar.gz
Import of tcsh-6.12.00
Diffstat (limited to 'contrib/tcsh/sh.char.c')
-rw-r--r--contrib/tcsh/sh.char.c39
1 files changed, 32 insertions, 7 deletions
diff --git a/contrib/tcsh/sh.char.c b/contrib/tcsh/sh.char.c
index bb028b7..6fb51d1 100644
--- a/contrib/tcsh/sh.char.c
+++ b/contrib/tcsh/sh.char.c
@@ -1,4 +1,4 @@
-/* $Header: /src/pub/tcsh/sh.char.c,v 3.16 2001/03/20 04:16:56 christos Exp $ */
+/* $Header: /src/pub/tcsh/sh.char.c,v 3.18 2002/07/01 20:50:21 christos Exp $ */
/*
* sh.char.c: Character classification tables
*/
@@ -14,11 +14,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -36,7 +32,7 @@
*/
#include "sh.h"
-RCSID("$Id: sh.char.c,v 3.16 2001/03/20 04:16:56 christos Exp $")
+RCSID("$Id: sh.char.c,v 3.18 2002/07/01 20:50:21 christos Exp $")
#include "sh.char.h"
@@ -874,6 +870,35 @@ unsigned short _mbmap_big5[256] = {
_MB1|_MB2, _MB1|_MB2, _MB1|_MB2, 0,
};
+unsigned short _mbmap_utf8[256] = {
+/* utf8 uses up to 6 bytes */
+/* first byte 0xc0 - 0xfd */
+/* any further bytes 0x80 - 0xbf */
+/* 0 - 7f all 0 */
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+/* 80 - bf : all _MB2 */
+ _MB2, _MB2, _MB2, _MB2, _MB2, _MB2, _MB2, _MB2,
+ _MB2, _MB2, _MB2, _MB2, _MB2, _MB2, _MB2, _MB2,
+ _MB2, _MB2, _MB2, _MB2, _MB2, _MB2, _MB2, _MB2,
+ _MB2, _MB2, _MB2, _MB2, _MB2, _MB2, _MB2, _MB2,
+ _MB2, _MB2, _MB2, _MB2, _MB2, _MB2, _MB2, _MB2,
+ _MB2, _MB2, _MB2, _MB2, _MB2, _MB2, _MB2, _MB2,
+ _MB2, _MB2, _MB2, _MB2, _MB2, _MB2, _MB2, _MB2,
+ _MB2, _MB2, _MB2, _MB2, _MB2, _MB2, _MB2, _MB2,
+/* c0 - fc : all _MB1 */
+ _MB1, _MB1, _MB1, _MB1, _MB1, _MB1, _MB1, _MB1,
+ _MB1, _MB1, _MB1, _MB1, _MB1, _MB1, _MB1, _MB1,
+ _MB1, _MB1, _MB1, _MB1, _MB1, _MB1, _MB1, _MB1,
+ _MB1, _MB1, _MB1, _MB1, _MB1, _MB1, _MB1, _MB1,
+ _MB1, _MB1, _MB1, _MB1, _MB1, _MB1, _MB1, _MB1,
+ _MB1, _MB1, _MB1, _MB1, _MB1, _MB1, _MB1, _MB1,
+ _MB1, _MB1, _MB1, _MB1, _MB1, _MB1, _MB1, _MB1,
+/* f8 f9 fa fb fc fd fe ff*/
+ _MB1, _MB1, _MB1, _MB1, _MB1, _MB1, 0, 0
+};
#else /* !(defined(KANJI) && defined(SHORT_STRINGS) && defined(DSPMBYTE)) */
unsigned short _cmap[256] = {
OpenPOWER on IntegriCloud