package textutils

  1. Overview
  2. Docs
Text output utilities

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=b2681af1f4029245a5c187c4f0834ac470ada6ffc69db7c7e219b3244f88b3d5

doc/textutils.ascii_table_kernel/Ascii_table_kernel/Private/Utf8_text_chunks/index.html

Module Private.Utf8_text_chunksSource

Sourceval of_utf8 : Core.String.Utf8.t -> width:int -> prefer_split_on_spaces:bool -> Core.String.Utf8.t list

of_utf8 utf8 ~width ~prefer_split_on_spaces splits utf8 into chunks no wider than width characters. chunks_of_utf8 always returns at least one chunk, which may be empty.

If prefer_split_on_spaces = true and such a space exists, utf8 will be split on the last U+0020 SPACE before the chunk becomes too wide. Otherwise, the split happens exactly at width characters.

OCaml

Innovation. Community. Security.