module 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 : BatUTF8.t -> b_idx -> b_idx
val prev : BatUTF8.t -> b_idx -> b_idx
val of_char_idx : BatUTF8.t -> BatUTF8.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 : BatUTF8.t -> b_idx -> bool
val out_of_range : BatUTF8.t -> b_idx -> bool
val first : b_idx
val last : BatUTF8.t -> b_idx
val move : BatUTF8.t -> b_idx -> int -> b_idx