package stringCodepointSplitter

  1. Overview
  2. Docs
Split a string to a list of strings of a character by the unicode codepoint

Install

Dune Dependency

Authors

Maintainers

Sources

stringCodepointSplitter-0.0.2.tbz
sha256=e76c17f9f74b665cd3f96ec913e4e9aefde7bc3c977ac1aa7df21d99d6788835
sha512=d50a99b78f0f21b007cc7881a311c3f64593156ef4cc88fa498c8da2715e75a5cefc008634a5dce59c3298d1203240d339732c55ce4503d44d1007a67529036b

Description

Split a string to a list of strings of a character by the unicode codepoint. It requires module Uutf.

Tags

string utf8

Published: 31 Aug 2023

README

stringCodepointSplitter

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

It requires module Uutf.

Dependencies

  • OCaml >= 4.06

  • 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, ., "*)

Dependencies (4)

  1. uutf
  2. dune >= "3.9"
  3. ocamlfind
  4. ocaml >= "4.07"

Dev Dependencies (1)

  1. odoc with-doc

Used by

None

Conflicts

None