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 -> int
line u
is an integer that can be used withline_of_int
.
val line_max : int
line_max
is the maximal value returned byline
.
val line_of_int : line array
line_of_int.(i)
is the line break property value corresponding toi
.
val grapheme_cluster : Stdlib.Uchar.t -> int
grapheme_cluster u
is an integer that can be used withgrapheme_cluster_of_int
.
val grapheme_cluster_max : int
grapheme_cluster_max
is the maximal value returned bygrapheme_cluster
.
val grapheme_cluster_of_int : grapheme_cluster array
grapheme_cluster_of_int.(i)
is the grapheme cluster break property value corresponding toi
.
val word : Stdlib.Uchar.t -> int
word u
is an integer that can be used withword_of_int
.
val word_max : int
word_max
is the maximal value returned byword
.
val word_of_int : word array
word_of_int.(i)
is the word break property value corresponding toi
.
val sentence : Stdlib.Uchar.t -> int
sentence u
is an integer that can be used withsentence_of_int
.
val sentence_max : int
sentence_max
is the maximal value returned bysentence
.
val sentence_of_int : sentence array
sentence_of_int.(i)
is the sentence break property value corresponding toi
.