12345678910111213141516171819202122232425262728293031323334353637383940(**************************************************************************)(* *)(* OCaml *)(* *)(* James Rayman, Jane Street, New York *)(* *)(* Copyright 2025 Jane Street Group LLC *)(* *)(* All rights reserved. This file is distributed under the terms of *)(* the GNU Lesser General Public License version 2.1, with the *)(* special exception on linking described in the file LICENSE. *)(* *)(**************************************************************************)typet=char#externalof_int8_u:int8#->char#@@portable="%identity"externalto_int8_u:char#->int8#@@portable="%identity"letcodec=Int8_u.unsigned_to_int(to_int8_uc)letto_charc=Char.chr(codec)letof_charc=of_int8_u(Int8_u.of_int(Char.codec))letchri=of_char(Char.chri)letescapedc=Char.escaped(to_charc)letlowercase_asciic=of_char(Char.lowercase_ascii(to_charc))letuppercase_asciic=of_char(Char.uppercase_ascii(to_charc))letequalcd=Int8_u.equal(to_int8_uc)(to_int8_ud)letcomparecd=Int8_u.unsigned_compare(to_int8_uc)(to_int8_ud)letseeded_hashseedc=Int.seeded_hashseed(codec)lethashc=Int.hash(codec)