package stringCodepointSplitter

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

The Module needs Uutf Module.

It only contains split_string_by_unicode_codepoint, which splits an OCaml string str to a string list

val split_string_by_unicode_codepoint : string -> string list

Split an OCaml string str to a string list

Arguments

  • str the string to be splitted.

Example

let example= "m̄知 who you're." (*don't know who you are*) in

List.map (fun x -> print_string (x ^ ", ")) (split_string_by_unicode_codepoint example);;
  
(*it will output : "m, ̄, 知,  , w, h, o,  , y, o, u, ', r, e, ., "*)
OCaml

Innovation. Community. Security.