No description
Find a file
Tan, Kian-ting 6a1f3000c5
Merge pull request #2 from raphael-proust/main
Improve performance of splitting function
2023-08-30 00:02:54 +08:00
lib Merge pull request #2 from raphael-proust/main 2023-08-30 00:02:54 +08:00
test more test 2023-08-29 15:45:33 +02:00
CHANGES fix something 2023-08-27 12:43:35 +08:00
dune-project Adding tests to make sure things work 2023-08-29 15:38:23 +02:00
LICENSE Update LICENSE 2023-08-29 22:30:05 +08:00
README.md modified the readme and remove the generated docs 2023-08-27 12:29:31 +08:00
stringCodepointSplitter.opam fix depenmdency 2023-08-27 18:42:29 +08:00

stringCodepointSplitter

Split a string to a list of strings of a character by the unicode codepoint.

It requires module Uutf.

Dependencies

  • OCaml >= 4.13
  • dune
  • uutf
  • fildlib

Install

$ cd /path/to/stringCodepointSplitter

$ dune build

$ dune install

Generate Docs

$ dune build @doc

Generated documentations will be in /path/to/stringCodepointSplitter/_build/default/_doc in various formats, incl. html.

Example


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

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