= 1024" x-on:close-sidebar="sidebar=window.innerWidth >= 1024 && true">
package datakit-ci
-
datakit_ci
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val of_string : string -> t
of_string s
is a cursor at the start of s
.
val to_string : t -> string
to_string t
is the substring from t
to the end of the input.
val avail : t -> int
avail t
is the number of remaining characters in the stream.
val is_empty : t -> bool
is_empty t
is avail t = 0
.
next t
is Some (c, t2)
, where c
is the next character in the stream and t2
is skip t
, or None
if is_empty t
.
equal a b
is true
iff the streams a
and b
are at the same offset in the same base string.
(s, a, b)
represents the span of s
from index a
up to but excluding b
.
a -- b
is the span from a
(inclusive) to b
(exclusive). a
must not have a higher offset than b
.
val string_of_span : span -> string
string_of_span (s, a, b)
is the sub-string of s
from a
to b
.