Index of values


B
blit [Bigstring]
Blit a slice of the bigstring into another.
blit_of_buffer [Bigstring]
blit_of_bytes [Bigstring]
blit_of_string [Bigstring]
blit_to_bytes [Bigstring]

C
compare [Bigstring]
Lexicographic order
concat [Bigstring]
concat set l concatenates the list l, inserting sep between each pair of string.
contains [Bigstring]
String.contains s c tests if character c appears in the string s.
copy [Bigstring]
Copy of the string
create [Bigstring]
Create a new bigstring of the given size.

E
empty [Bigstring]
Empty string
equal [Bigstring]
Equality of content.
exists [Bigstring]
True for some char?

F
fill [Bigstring]
Fill the string with the given byte.
fill_slice [Bigstring]
fill_slice s c i len is the same as fill (sub s i len) c, it fills the slice from i to i+len-1 of s with the char c
fold [Bigstring]
Fold on every char in increasing order
foldi [Bigstring]
Fold on every char in increasing order
for_all [Bigstring]
True for all chars?

G
get [Bigstring]
Obtain the byte at the given index.

I
index [Bigstring]
index s ~c returns the index of the first occurrence of character c in string s.
index_pred [Bigstring]
index_pred ~f s returns the index of the first char in s that satisfies s.
init [Bigstring]
Initialize with the given function (called at every index).
iter [Bigstring]
Iterate on every char in increasing order
iteri [Bigstring]
Iterate on every char in increasing order

L
length [Bigstring]
Alias for Bigstring.size.
lines [Bigstring]
lines s returns a list of the lines of s (splits along '\n')
lines_gen [Bigstring]
lines_gen s returns a generator of the lines of s (splits along '\n') where every line is a slice of s
lowercase [Bigstring]
Copy of the string with all characters in lowercase (see Char.lowercase)

M
map [Bigstring]
map_file_descr [Bigstring]
map_file_descr descr len is a lower-level access to an underlying file descriptor.
mapi [Bigstring]

O
of_buffer [Bigstring]
of_buffer b creates a string that contains the same as b
of_bytes [Bigstring]
of_bytes_slice [Bigstring]
of_gen [Bigstring]
of_string [Bigstring]
of_string_slice [Bigstring]

P
print [Bigstring]
Pretty-print the string into a formatter, surrounded with '"'

R
rindex [Bigstring]
rindex s ~c returns the index of the last occurrence of character c in string s.
rindex_pred [Bigstring]
rindex_pred ~f s returns the index of the last char in s that satisfies s.

S
set [Bigstring]
Change the byte at the given index.
size [Bigstring]
Number of bytes
split [Bigstring]
split s ~by splits s along the occurrences of by.
split_gen [Bigstring]
Same as Bigstring.split but returns a generator
sub [Bigstring]
sub s i len takes a slice of length len from the string s, starting at offset i.
sub_bytes [Bigstring]
sub_string [Bigstring]

T
to_buffer [Bigstring]
Add the whole string at the end of the buffer
to_bytes [Bigstring]
to_gen [Bigstring]
to_gen_slice [Bigstring]
to_seq [Bigstring]
to_seq_slice [Bigstring]
to_string [Bigstring]
trim [Bigstring]
trim s returns a slice of s without the leading and trailing whitespaces, where whitespaces are defined identically to String.trim.

U
unsafe_get [Bigstring]
Same as Bigstring.get, but without bound check.
unsafe_set [Bigstring]
Same as Bigstring.set, but without bound check.
uppercase [Bigstring]
Copy of the string with all characters in uppercase (see Char.uppercase)

W
with_map_file [Bigstring]
with_map_file name f maps the file into memory, opening it, and call f with a slice pos.... pos+len of the bytes of the file where len is the length of the file if not provided.