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

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -