Overview  Index  Help 
LMLML

MultiByteText


structure MultiByteText :> MULTI_BYTE_TEXT =
struct
  structure String =
  struct
    open S
    val decodeBytesSlice : codec -> Word8VectorSlice.slice -> string
    val decodeBytes : codec -> Word8Vector.vector -> string
    val decodeString : codec -> String.string -> string
    val getCodec : string -> codec
  end
  structure Char =
  struct
    open C
    val fromWord : codec -> Word32.word -> char
    val decodeBytesSlice : codec -> Word8VectorSlice.slice -> char option
    val decodeBytes : codec -> Word8Vector.vector -> char option
    val decodeString : codec -> String.string -> char option
    val getCodec : char -> codec
  end
  structure Substring = CodecSubstringBase(struct open Prim val compare end)
  structure ParserCombinator = CodecParserCombinatorBase(P)
  structure StringConverter = CodecStringConverterBase(P)
  type codec = Codecs.methods
  exception BadFormat = Codecs.BadFormat
  exception Unordered = Codecs.Unordered
  exception UnknownCodec = Codecs.UnknownCodec
  val getCodec : String.string -> codec
  val getCodecNames : unit -> String.string list
  val addDefaultCodecChangeListener : (codec -> unit) -> unit
  val setDefaultCodec : codec -> unit
  val getDefaultCodec : unit -> codec
end

The main user interface of the multibyte text library.

Author:
YAMATODANI Kiyoshi
Version:
$Id: StrMultiByteText.html,v 1.1 2010/07/24 06:24:36 kiyoshiy Exp $

 
Type detail

codec

type codec = Codecs.methods

     
Value detail

getCodec

val getCodec : String.string -> codec


getCodecNames

val getCodecNames : unit -> String.string list


addDefaultCodecChangeListener

val addDefaultCodecChangeListener : (codec -> unit) -> unit


setDefaultCodec

val setDefaultCodec : codec -> unit


getDefaultCodec

val getDefaultCodec : unit -> codec

 
Exception detail

BadFormat

exception BadFormat = Codecs.BadFormat


Unordered

exception Unordered = Codecs.Unordered


UnknownCodec

exception UnknownCodec = Codecs.UnknownCodec


Overview  Index  Help 
LMLML: Library of MultiLingualization for ML