Index of values


(>>=) [Sosa.Of_mutable.Make_output]
(>>=) [Sosa.List_of.Make_output]
(>>=) [Sosa.Internal_pervasives]
(|>) [Sosa.Internal_pervasives]

B
bind [Sosa.OUTPUT_MODEL]
The monadic bind.
bind [Sosa.Internal_pervasives]
blit [Sosa.MINIMALISTIC_MUTABLE_STRING]
blit [Sosa.UNSAFELY_MUTABLE]
Copy length characters from src (starting at src_index) to dst (starting at dst_index).
blit [Sosa.Native_string]
blit_exn [Sosa.UNSAFELY_MUTABLE]
Like Sosa.UNSAFELY_MUTABLE.blit but fail with a non-specified exception.
blit_exn [Sosa.Native_string]

C
chop_prefix [Sosa.BASIC_STRING]
Like chop_prefix_exn but return None instead of throwing an exception.
chop_prefix [Sosa.List_of]
chop_prefix [Sosa.Make_prefix_suffix_array]
chop_prefix_exn [Sosa.BASIC_STRING]
Return a copy of t with prefix removed from the beginning.
chop_prefix_exn [Sosa.List_of]
chop_prefix_exn [Sosa.Make_prefix_suffix_array]
chop_suffix [Sosa.BASIC_STRING]
Like chop_suffix_exn but return None instead of throwing an exception.
chop_suffix [Sosa.List_of]
chop_suffix [Sosa.Make_prefix_suffix_array]
chop_suffix_exn [Sosa.BASIC_STRING]
Return a copy of t with suffix removed from the end.
chop_suffix_exn [Sosa.List_of]
chop_suffix_exn [Sosa.Make_prefix_suffix_array]
compare [Sosa.MINIMALISTIC_MUTABLE_STRING]
compare [Sosa.BASIC_STRING]
Comparison function (as expected by most common functors in the ecosystem).
compare [Sosa.BASIC_CHARACTER]
Comparison function (as expected by most common functors in the ecosystem).
compare [Sosa.Int_utf8_character]
compare [Sosa.List_of]
compare [Sosa.Native_character]
compare_char [Sosa.MINIMALISTIC_MUTABLE_STRING]
compare_substring [Sosa.T_LENGTH_AND_COMPSUB]
compare_substring [Sosa.BASIC_STRING]
Comparison function for substrings: use as compare_substring (s1, index1, length1) (s2, index2, length2).
compare_substring [Sosa.Of_mutable]
compare_substring [Sosa.List_of]
compare_substring [Sosa.Native_string.T_length_and_compsub]
compare_substring [Sosa.Native_string]
compare_substring_strict [Sosa.BASIC_STRING]
Do like Sosa.BASIC_STRING.compare_substring but return Some _ only when it is well defined (same validity criteria as Sosa.BASIC_STRING.sub: if length is 0, index is irrelevant).
compare_substring_strict [Sosa.Compare_substring_strict_of_loose]
concat [Sosa.BASIC_STRING]
The classical concat function.
concat [Sosa.Of_mutable]
concat [Sosa.List_of]
concat [Sosa.Native_string]
count_map [Sosa.Internal_pervasives.Core_list_map]
count_map2_exn [Sosa.Internal_pervasives.Core_list_map]
count_mapi [Sosa.Internal_pervasives.Core_list_map]

D
dbg [Sosa.Internal_pervasives]
drop [Sosa.BASIC_STRING]
Just the second part of split_at
drop [Sosa.List_of]
drop [Sosa.Make_split_at_index_functions]

E
empty [Sosa.MINIMALISTIC_MUTABLE_STRING]
empty [Sosa.BASIC_STRING]
An “empty” string.
empty [Sosa.List_of]
empty [Sosa.Native_string]
exists [Sosa.BASIC_STRING]
Return true if-and-only-if f returns true on at least one character.
exists [Sosa.Of_mutable]
exists [Sosa.List_of]
exists [Sosa.Native_string]

F
fail [Sosa.Internal_pervasives]
filter [Sosa.BASIC_STRING]
Create a new string with the characters for which f c is true.
filter [Sosa.Of_mutable]
filter [Sosa.List_of]
filter [Sosa.Native_string]
filter_map [Sosa.BASIC_STRING]
Create a new string with the characters for which f c returned Some c.
filter_map [Sosa.Of_mutable]
filter_map [Sosa.List_of]
filter_map [Sosa.Native_string]
find [Sosa.BASIC_STRING]
Find the index of the first character c for which f c is true.
find [Sosa.Of_mutable]
find [Sosa.List_of]
find [Sosa.Native_string]
find_reverse [Sosa.BASIC_STRING]
Find the index of the last character c for which f c is true.
find_reverse [Sosa.Of_mutable]
find_reverse [Sosa.List_of]
find_reverse [Sosa.Native_string]
fold [Sosa.BASIC_STRING]
The standard fold function, see List.fold_left for example.
fold [Sosa.Of_mutable]
fold [Sosa.List_of]
fold [Sosa.Native_string]
fold2_exn [Sosa.BASIC_STRING]
The standard fold2 function, see List.fold_left2 for example.
fold2_exn [Sosa.Of_mutable]
fold2_exn [Sosa.List_of]
fold2_exn [Sosa.Native_string]
foldi [Sosa.BASIC_STRING]
Pass an accumulator over the string's characters and their ordinals, starting with the first; left most.
foldi [Sosa.Of_mutable]
foldi [Sosa.List_of]
foldi [Sosa.Native_string]
for_all [Sosa.BASIC_STRING]
Return true if-and-only-if f returns true on all characters.
for_all [Sosa.Of_mutable]
for_all [Sosa.List_of]
for_all [Sosa.Native_string]

G
get [Sosa.MINIMALISTIC_MUTABLE_STRING]
get [Sosa.BASIC_STRING]
Get the n-th char, indexes are not necessarily bytes, they can be bits.
get [Sosa.Of_mutable]
get [Sosa.List_of]
get [Sosa.Native_string]
get_exn [Sosa.BASIC_STRING]
Like get but fail with an exception
get_exn [Sosa.Of_mutable]
get_exn [Sosa.List_of]
get_exn [Sosa.Native_string]

I
index_of_character [Sosa.T_LENGTH_SUB_AND_SEARCH]
index_of_character [Sosa.BASIC_STRING]
Find the first occurrence of a character in the string (starting at position from).
index_of_character [Sosa.Of_mutable]
index_of_character [Sosa.List_of]
index_of_character [Sosa.Native_string]
index_of_character_reverse [Sosa.BASIC_STRING]
Do like index_of_character but start from the end of the string.
index_of_character_reverse [Sosa.Of_mutable]
index_of_character_reverse [Sosa.List_of]
index_of_character_reverse [Sosa.Native_string]
index_of_string [Sosa.T_LENGTH_SUB_AND_SEARCH]
index_of_string [Sosa.BASIC_STRING]
Find the first occurrence of the substring (sub, sub_index, sub_length) in a given string, starting at index from.
index_of_string [Sosa.Make_index_of_string]
index_of_string_reverse [Sosa.BASIC_STRING]
Do like index_of_string but start from the end of the string.
index_of_string_reverse [Sosa.Make_index_of_string]
is_empty [Sosa.BASIC_STRING]
Test whether a string is empty.
is_empty [Sosa.Of_mutable]
is_empty [Sosa.List_of]
is_empty [Sosa.Native_string]
is_prefix [Sosa.BASIC_STRING]
Does t start with prefix ?
is_prefix [Sosa.List_of]
is_prefix [Sosa.Make_prefix_suffix_array]
is_print [Sosa.Native_character]
is_suffix [Sosa.BASIC_STRING]
Does t end with suffix ?
is_suffix [Sosa.List_of]
is_suffix [Sosa.Make_prefix_suffix_array]
is_whitespace [Sosa.MINIMALISTIC_MUTABLE_STRING]
is_whitespace [Sosa.BASIC_CHARACTER]
Tell whether a character is considered whitespace.
is_whitespace [Sosa.Int_utf8_character]
is_whitespace [Sosa.Native_character]
iter [Sosa.BASIC_STRING]
Apply f on every character successively.
iter [Sosa.Of_mutable]
iter [Sosa.List_of]
iter [Sosa.Native_string]
iter_reverse [Sosa.BASIC_STRING]
Apply f on every character successively in reverse order.
iter_reverse [Sosa.Of_mutable]
iter_reverse [Sosa.List_of]
iter_reverse [Sosa.Native_string]
iteri [Sosa.BASIC_STRING]
Apply f on every character and its index.
iteri [Sosa.Of_mutable]
iteri [Sosa.List_of]
iteri [Sosa.Native_string]

L
length [Sosa.MINIMALISTIC_MUTABLE_STRING]
length [Sosa.T_LENGTH_SUB_AND_SEARCH]
length [Sosa.T_LENGTH_AND_COMPSUB]
length [Sosa.BASIC_STRING]
Get the length of the string (i.e.
length [Sosa.List_of]
length [Sosa.Native_string.T_length_and_compsub]

M
make [Sosa.MINIMALISTIC_MUTABLE_STRING]
make [Sosa.BASIC_STRING]
Build a new string like String.make.
make [Sosa.List_of]
map [Sosa.BASIC_STRING]
Make a new string by applying f to all characters of the input.
map [Sosa.Of_mutable]
map [Sosa.List_of]
map [Sosa.Native_string]
map [Sosa.Internal_pervasives.Core_list_map]
map2_exn [Sosa.BASIC_STRING]
Make a new string by applying f to all pairs of characters of the inputs.
map2_exn [Sosa.Of_mutable]
map2_exn [Sosa.List_of]
map2_exn [Sosa.Native_string]
map2_exn [Sosa.Internal_pervasives.Core_list_map]
map2_slow [Sosa.Internal_pervasives.Core_list_map]
map_slow [Sosa.Internal_pervasives.Core_list_map]
mapi [Sosa.BASIC_STRING]
Make a new string by applying f to all characters and their indices.
mapi [Sosa.Of_mutable]
mapi [Sosa.List_of]
mapi [Sosa.Native_string]
mapi [Sosa.Internal_pervasives.Core_list_map]
mapi_slow [Sosa.Internal_pervasives.Core_list_map]
mutate [Sosa.UNSAFELY_MUTABLE]
Set the index-th character of the string.
mutate [Sosa.Native_string]
mutate_exn [Sosa.UNSAFELY_MUTABLE]
Set the index-th character of the string, but fail with a non-specified exception.
mutate_exn [Sosa.Native_string]

O
of_character [Sosa.BASIC_STRING]
Make a string with one character.
of_character [Sosa.Of_mutable]
of_character [Sosa.List_of]
of_character [Sosa.Native_string]
of_character_list [Sosa.BASIC_STRING]
Make a string out of a list of characters.
of_character_list [Sosa.Of_mutable]
of_character_list [Sosa.List_of]
of_character_list [Sosa.Native_string]
of_int [Sosa.BASIC_CHARACTER]
Import an integer, returns None if there is no character for that value.
of_int [Sosa.Int_utf8_character]
of_int [Sosa.Native_character]
of_native_char [Sosa.BASIC_CHARACTER]
Import a native char, returns None if the character is not representable.
of_native_char [Sosa.Int_utf8_character]
of_native_char [Sosa.Native_character]
of_native_string [Sosa.NATIVE_CONVERSIONS]
Convert a native string to the current representation.
of_native_string [Sosa.List_of]
of_native_string [Sosa.Make_native_conversions]
of_native_string [Sosa.Native_string]
of_native_substring [Sosa.NATIVE_CONVERSIONS]
Convert a native string like of_native_string but take a subset of the string.
of_native_substring [Sosa.List_of]
of_native_substring [Sosa.Make_native_conversions]
of_native_substring [Sosa.Native_string]
output [Sosa.BASIC_STRING.Make_output]
Output a string to a channel.
output [Sosa.OUTPUT_MODEL]
The function to output a given native string to a channel.
output [Sosa.Of_mutable.Make_output]
output [Sosa.List_of.Make_output]

R
read_from_native_string [Sosa.BASIC_CHARACTER]
Read a character at a given index in a native string, returns Some (c, s), the character c and the number of units read s, or None if there is no representable/valid character at that index.
read_from_native_string [Sosa.Int_utf8_character]
read_from_native_string [Sosa.Native_character]
resize_from_length [Sosa.Native_string]
return [Sosa.OUTPUT_MODEL]
The monadic return.
return [Sosa.Internal_pervasives]
rev [Sosa.BASIC_STRING]
Reverse the string.
rev [Sosa.Of_mutable]
rev [Sosa.List_of]
rev [Sosa.Native_string]

S
set [Sosa.MINIMALISTIC_MUTABLE_STRING]
set [Sosa.BASIC_STRING]
set str ~index ~v creates a new string equal to t with character v at position index.
set [Sosa.Of_mutable]
set [Sosa.List_of]
set [Sosa.Native_string]
set_exn [Sosa.BASIC_STRING]
Like set but fail with an exception
set_exn [Sosa.Of_mutable]
set_exn [Sosa.List_of]
set_exn [Sosa.Native_string]
size [Sosa.BASIC_CHARACTER]
Get the size of the character, the exact semantics are implementation-specific (c.f.
size [Sosa.Int_utf8_character]
size [Sosa.Native_character]
slice [Sosa.BASIC_STRING]
Create a sub-string from the start (default 0, within [0,length\)) position to before the finish (default length, within [0,length]) if all of the indices are in bounds.
slice [Sosa.Of_mutable]
slice [Sosa.List_of]
slice [Sosa.Native_string]
slice_exn [Sosa.BASIC_STRING]
Like slice but throw an exception instead of returning None
slice_exn [Sosa.Of_mutable]
slice_exn [Sosa.List_of]
slice_exn [Sosa.Native_string]
split [Sosa.BASIC_STRING]
Split the string using on as separator.
split [Sosa.Make_split_function]
split_at [Sosa.BASIC_STRING]
Return a tuple where the first string is a prefix of the specified length and the second is the rest.
split_at [Sosa.List_of]
split_at [Sosa.Make_split_at_index_functions]
strip [Sosa.BASIC_STRING]
Remove any whitespace characters at the beginning and/or the end of the string (default `Both).
strip [Sosa.Make_strip_function]
sub [Sosa.BASIC_STRING]
Get the sub-string of size length at position index.
sub [Sosa.Of_mutable]
sub [Sosa.List_of]
sub [Sosa.Native_string]
sub_exn [Sosa.T_LENGTH_SUB_AND_SEARCH]
sub_exn [Sosa.BASIC_STRING]
Do like sub but throw an exception instead of returning None
sub_exn [Sosa.Of_mutable]
sub_exn [Sosa.List_of]
sub_exn [Sosa.Native_string]
sub_same_tl [Sosa.Make_prefix_suffix_array]

T
take [Sosa.BASIC_STRING]
Just the first part of split_at
take [Sosa.List_of]
take [Sosa.Make_split_at_index_functions]
take_while [Sosa.BASIC_STRING]
Take a prefix of the string until f returns false.
take_while [Sosa.Of_mutable]
take_while [Sosa.List_of]
take_while [Sosa.Native_string]
take_while_with_index [Sosa.BASIC_STRING]
Like Sosa.BASIC_STRING.take_while but the function also takes the current index.
take_while_with_index [Sosa.Of_mutable]
take_while_with_index [Sosa.List_of]
take_while_with_index [Sosa.Native_string]
to_character_list [Sosa.BASIC_STRING]
Explode a string into a list of characters.
to_character_list [Sosa.Of_mutable]
to_character_list [Sosa.List_of]
to_character_list [Sosa.Native_string]
to_int [Sosa.BASIC_CHARACTER]
Returns the integer representation of the character.
to_int [Sosa.Int_utf8_character]
to_int [Sosa.Native_character]
to_native_string [Sosa.BASIC_CHARACTER]
to_native_string c creates a string containing the serialization of the character c (if size c is not a multiple of 8, the end-padding is undefined).
to_native_string [Sosa.NATIVE_CONVERSIONS]
Serialize the string to a native string.
to_native_string [Sosa.Int_utf8_character]
to_native_string [Sosa.List_of]
to_native_string [Sosa.Native_string]
to_native_string [Sosa.Native_character]
to_native_string_knowing_size [Sosa.Make_native_conversions]
to_string_hum [Sosa.BASIC_STRING]
Convert the string to a human-readable native string (à la sprintf "%S").
to_string_hum [Sosa.BASIC_CHARACTER]
Convert the character to a human-readable native string (in the spirit of sprintf "%s").
to_string_hum [Sosa.Of_mutable]
to_string_hum [Sosa.Int_utf8_character]
to_string_hum [Sosa.List_of]
to_string_hum [Sosa.Native_string]
to_string_hum [Sosa.Native_character]

W
write_to_native_string [Sosa.BASIC_CHARACTER]
write_to_native_string c ~buf ~index serializes the character c at position index in the native string buf (writing size c units).
write_to_native_string [Sosa.Int_utf8_character]
write_to_native_string [Sosa.Native_character]