module UTF8.Byte: sig
.. end
Positions in the string represented by the number of bytes from
the head. The location of the first character is Byte.first
.
The location of the second is Byte.next Byte.first
.
type
b_idx
val of_int_unsafe : int -> b_idx
val to_int : b_idx -> int
val next : UTF8.t ->
b_idx -> b_idx
val prev : UTF8.t ->
b_idx -> b_idx
val of_char_idx : UTF8.t ->
UTF8.char_idx -> b_idx
of_char_idx s n
returns the position of the n
-th Unicode
character. The call requires O(n)-time
val at_end : UTF8.t -> b_idx -> bool
val out_of_range : UTF8.t -> b_idx -> bool
val first : b_idx
val last : UTF8.t -> b_idx
val move : UTF8.t ->
b_idx -> int -> b_idx