Skip to content

kni/sml-unicode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unicode and UTF8 for Standard ML
********************************

 structure Utf8 :
 sig
  val decode  : string -> word list
  val encode  : word list -> string

  val decode' : word list -> (char, 'cs) StringCvt.reader -> (word list, 'cs) StringCvt.reader
  val encode' : word * char list -> char list
 end
 
 structure Unicode :
 sig
   val toCaseFolded : word list -> word list
   val toLower      : word list -> word list
   val toUpper      : word list -> word list
   val toTitle      : word list -> word list

   val fc : word -> word list -> word list
   val lc : word -> word
   val uc : word -> word
   val tc : word -> word
 end


See t.sml for example and tests:

 mlton t.mlb
 poly --script t.mlp

About

Unicode and UTF8 for Standard ML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published