Module Break.Low
Low level interface.
This interface may be useful for table based implementers of segmenters. For each kind of break, property values are assigned integer values starting from 0. An array allows to recover the high-level representation of the corresponding property value.
Low level access to break properties
Warning. Do not mutate these array.
val line : Stdlib.Uchar.t -> intline uis an integer that can be used withline_of_int.
val line_max : intline_maxis the maximal value returned byline.
val line_of_int : line arrayline_of_int.(i)is the line break property value corresponding toi.
val grapheme_cluster : Stdlib.Uchar.t -> intgrapheme_cluster uis an integer that can be used withgrapheme_cluster_of_int.
val grapheme_cluster_max : intgrapheme_cluster_maxis the maximal value returned bygrapheme_cluster.
val grapheme_cluster_of_int : grapheme_cluster arraygrapheme_cluster_of_int.(i)is the grapheme cluster break property value corresponding toi.
val word : Stdlib.Uchar.t -> intword uis an integer that can be used withword_of_int.
val word_max : intword_maxis the maximal value returned byword.
val word_of_int : word arrayword_of_int.(i)is the word break property value corresponding toi.
val sentence : Stdlib.Uchar.t -> intsentence uis an integer that can be used withsentence_of_int.
val sentence_max : intsentence_maxis the maximal value returned bysentence.
val sentence_of_int : sentence arraysentence_of_int.(i)is the sentence break property value corresponding toi.