12345678910111213141516171819202122(***********************************************************************)(* *)(* Objective Caml *)(* *)(* Jun Furuse, projet Cristal, INRIA Rocquencourt *)(* *)(* Copyright 1999-2004, *)(* Institut National de Recherche en Informatique et en Automatique. *)(* Distributed only by permission. *)(* *)(***********************************************************************)(* $Id: jis_unicode.ml,v 1.1 2007/01/18 10:29:57 rousse Exp $ *)openJis_tableletencodes=(* they must be pure EUC string! *)Array.init(String.lengths/2)@@funi->leth=(Char.codes.[i*2]-0x80)andl=(Char.codes.[i*2+1]-0x80)inletpos=((h-0x21)*94+(l-0x21))*2inint_of_chartable.[pos]*256+int_of_chartable.[pos+1]