utf 8 - Capitalize UTF-8 text -
i need capitalize text (i.e. put first letter in uppercase) in ocaml. unfortunately text in utf-8 , standard library support ascii.
i have found uppercase
function in batteries seems available in old versions. , camomile (which looks best option processing utf-8) seems dead , has little documentation.
camomile solution here. documentation on sourceforge : http://camomile.sourceforge.net/dochtml/index.html heavily functorized , may intimidating @ first sight, take time master it, job.
uppercase :
# open camomilelibrarydefault;; # module cm = camomile.casemap.make(camomile.utf8);; # print_endline (cm.titlecase "привет");; Привет
Comments
Post a Comment