A | |
asctime [Time] |
Same as
ctime but takes a Unix.tm
|
assoc [ListExtras.S] |
Same as
List.assoc
|
C | |
cadddr [ListExtras] | |
caddr [ListExtras] | |
cadr [ListExtras] | |
capitalize [StrExtras] |
Like
String.capitalize , but locale-dependant
|
car [ListExtras] |
Same as
List.hd
|
case_sensitive [Glob] |
Returns the case-sensisitiveness of a pattern.
|
cddddr [ListExtras] | |
cdddr [ListExtras] | |
cddr [ListExtras] | |
cdr [ListExtras] |
Same as
List.tl
|
center [StrExtras] | center str length returns str centered in a length-character
line.
|
chomp [StrExtras] |
Remove all trailing whitespace from a string
|
closelog [Syslog] |
Close the log
|
collate [StrExtras] | collate a b compares two strings like String.compare , but
using the `LC_COLLATE locale via the C strcoll()
function.
|
combine [StrExtras] |
Concatenates a list of strings with a blank seperator
|
common_prefix [StrExtras] |
Returns the longest prefix all the strings in the list have in
common.
|
compare [StrExtras.CaseInsensitive] | |
compare [StrExtras.Collate] | |
compare [ListExtras.ComparableType] |
Returns 0 if its arguments are equal, anything else if they're not equal.
|
compare [ArrayExtras.Comparable] | compare a b returns 0 if a and b are equal, a negative number
if a is greater than b, and a positive number if a is less than
b.
|
compare_insensitive [StrExtras] | compare_insensitive a b compares two strings in a
case-insensitive manner, using the current `LC_CTYPE locale.
|
compile [Glob] |
Compile a pattern for matching.
|
ctime [Time] |
Returns the time as a string with trailing newline
|
cut_first_char [StrExtras] |
Cuts off the first character of a string and returns the rest
|
cut_first_n [StrExtras] |
Cuts off the first
n characters of a string and returns the rest.
|
cut_first_word [StrExtras] |
Cuts off the first word of a string and returns the rest
|
cut_last_char [StrExtras] |
Cuts off the last character of a string and returns the rest
|
cut_last_n [StrExtras] |
Cuts off the last
n characters of a string and returns the rest
|
D | |
default [Option] | default opt default-value returns either the option's value, or
the default if the option was None .
|
deffalse [Option] |
A specialization of
default for bool options that returns false
for a default value
|
deftrue [Option] |
A specialization of
default for bool options that returns true
for a default value
|
difftime [Time] | difftime past now returns the number of seconds between the two times
|
E | |
endservent [UnixExtras] |
Same as the Unix endservent(3)
|
ensure [StrExtras] | ensure f s returns true if f is true for all characters in
s .
|
ensure [ArrayExtras] | ensure f a returns true if f is true for all elements in
a .
|
ensure_range [StrExtras] | ensure_range f s i len applies f to the len -gth characters in s
starting at index i and returns true if f is true for all the
characters, otherwise false.
|
ensure_range [ArrayExtras] | ensure_range f a i len applies f to the len -gth elements in a
starting at index i and returns true if f is true for all the
elements, otherwise false.
|
equal [StrExtras.CaseInsensitive] | |
equal [StrExtras.Collate] | |
escape [Glob] |
Returns the string with any special wildcard characters escaped.
|
exec [Glob] |
Match a compiled pattern against a string
|
exists [ArrayExtras.Sorted] | exists arr elem returns true of the element is in the
sorted array.
|
explode [StrExtras] |
Turn a string into a list of characters.
|
F | |
fast_munge [ListExtras] |
The same using the fastest list sorting
|
fast_munge [ArrayExtras] |
The same using the fastest array sorting
|
fast_sort [ArrayExtras.Sorted] |
See above
|
find [Find] |
Run the tests on all files in a directory.
|
find [ArrayExtras.Sorted] | index arr elem returns the index of the element in the sorrted array.
|
find_index [ArrayExtras] | find_index f arr Returns the index of the first element in the
array that satisfies the predicate
|
find_index_from [ArrayExtras] |
Same as find_index, but starts looking at the given index.
|
first_not_of [StrExtras] | first_not_of needle haystack returns the position of the first
occurance in haystack of a character that's not also in needle.
|
first_not_of_from [StrExtras] | first_not_of_from needle haystack pos returns the position of
the first occurance in haystack (Starting at pos) of a character
that's not also in needle.
|
first_of [StrExtras] | first_of needle haystack returns the position of the first
occurance in haystack of a character in needle.
|
first_of_from [StrExtras] | first_of_from needle haystack pos returns the position of the first occurance in haystack (Starting at pos) of a character in needle.
|
first_word [StrExtras] |
Returns the first word of a string
|
fold_left [StrExtras] | fold_left f x s computes f (... (f (f x s.[0]) s.[1])
...) s.[n-1] where n is the length of the string s .
|
fold_right [StrExtras] | fold_right f s x computes
f s.(0) (f s.(1) ( ... (f s.(n-1) x) ...)) ,
where n is the length of the string s .
|
format_time [Time] |
Same taking a time in seconds
|
format_tm [Time] |
Wrapper for the C strftime() function.
|
G | |
get [Locale] |
Get the current locale for a category
|
get_chartype [CharExtras] |
Query the CTYPE locale being used.
|
getpgid [UnixExtras] |
Same as the Unix getpgid(2)
|
getpgrp [UnixExtras] |
Same as the Unix getpgrp(2)
|
getrlimit [UnixExtras] |
Same as the Unix getrlimit(2)
|
getrusage [UnixExtras] |
Same as the Unix getrusage(2)
|
getservent [UnixExtras] |
Same as the Unix getservent(3)
|
gettimeofday [Time] |
Return a high-precision time.
|
gmtime [Time] |
Take a time and return a
Unix.tm using UTC
|
H | |
hash [Variant] | |
hash [StrExtras.CaseInsensitive] | |
hash [StrExtras.Collate] | |
I | |
implode [StrExtras] |
Turn a list of characters into a string.
|
index [StrExtras.FastSearch] | index needle haystack returns the position in haystack where
needle starts.
|
index [ListExtras.S] |
Returns the 0-based position of an element in the list using user-defined equality test.
|
index [ListExtras] | index item list returns the 0-based position of index in list.
|
index_from [StrExtras.FastSearch] | index_from needle haystack pos returns the position in
haystack where needle starts, starting looking at pos.
|
index_substr [StrExtras] | index_substr needle haystack returns the position in haystack
where needle starts.
|
index_substr_from [StrExtras] | index_substr_from needle haystack pos returns the position in
haystack where needle starts, starting looking at pos.
|
indexq [ListExtras] |
Same as
index but using physical equality instead of structural equality to compare the elements.
|
input_continued [IOExtras] |
Read a line from a handle where a trailing non-escaped \ on the
line means to read the next line and concatenate it to the end of the
previous line.
|
is_alpha [CharExtras] |
Is the character alphabetic?
|
is_alphanumeric [CharExtras] |
Is the character alphabetic or a digit?
|
is_graphical [CharExtras] |
Is the character displayable and not whitespace?
|
is_hexadecimal [CharExtras] |
Is the character a digit in base 16?
|
is_lower [CharExtras] |
Is the character lowercase?
|
is_number [CharExtras] |
Is the character a digit?
|
is_printable [CharExtras] |
Is the character displayable?
|
is_punctation [CharExtras] |
Is the character a punctuation symbol?
|
is_space [CharExtras] |
Is the character whitespace?
|
is_upper [CharExtras] |
Is the character uppercase?
|
iteri [StrExtras] |
Like
String.iter , but passes the index of the character as well.
|
L | |
last_not_of [StrExtras] | last_not_of needle haystack returns the position of the last
occurance in haystack of a character that's not also in needle.
|
last_not_of_from [StrExtras] | last_not_of_from needle haystack pos returns the position of the
last occurance in haystack (Starting at pos) of a character that's not
also in needle.
|
last_of [StrExtras] | last_of needle haystack returns the position of the last
occurance in haystack of a character in needle.
|
last_of_from [StrExtras] | last_of_from needle haystack pos returns the position of the
last occurance in haystack (Starting to look at pos) of a character in
needle.
|
left [StrExtras] |
Return the leftmost n characters of a string
|
listdir [UnixExtras] |
Returns a list of all filenames that can be read from a dirhandle
|
ljust [StrExtras] | ljust str length adds padding characters to the end of str if
needed so it is len characters long.
|
localtime [Time] |
Take a time and return a
Unix.tm using the local time zone
|
lowercase [StrExtras] |
Like
String.lowercase , but locale-dependant
|
M | |
make [Find] |
Make a find object that obeys the given rules.
|
make_daemon [UnixExtras] |
Runs f in a new daemon process.
|
map [StrExtras] |
Like
Array.map , for strings.
|
map_inplace [StrExtras] |
Like
map , but modifies the argument string.
|
mapi [StrExtras] |
Like
map , but passes the index as well as the character.
|
mapi_inplace [StrExtras] |
Like
map_inplace , but passes the index of the character as well.
|
match_substr [StrExtras] | match_substr substr str pos returns true if str contains substr
at position pos
|
mem [ListExtras.S] | mem a l is true if and only if a is equal to an element of l .
|
mem_assoc [ListExtras.S] |
Same as
List.mem_assoc
|
mknod [UnixExtras] | mknod filename type ~major ~minor makes a new character or block
special file.
|
mktime [Time] |
Turn a
Unix.tm into the current time plus a normalized Unix.tm
|
monetary_info [Locale] |
Return the settings for the current
`LC_MONETARY locale.
|
munge [ListExtras] |
Implements munging/Schwartzian transform on a list.
|
munge [ArrayExtras] |
Implements munging/Schwartzian transform on an array.
|
N | |
numeric_info [Locale] |
Return the settings for the current
`LC_NUMERIC locale.
|
O | |
of_array [StrExtras] |
Turn an array of characters into a string.
|
open_out [IOExtras] |
Open a file for output and auto-flush at exit
|
openlog [Syslog] |
Same as openlog(3)
|
output_endline [IOExtras] | print_endline on a generic channel.
|
output_int [IOExtras] | print_int on a generic channel.
|
P | |
parse_time [Time] |
Same returning time in seconds
|
parse_tm [Time] |
Wrapper for the C strptime() function.
|
pop [ArrayExtras] |
Returns the first element of the array and a new array with the
rest of the elements of the original.
|
pread [UnixExtras] | pread fd buff ofs len is just like Unix.read except it doesn't update the file descriptor's offset.
|
prefix [StrExtras] | prefix pref str returns true if str starts with pref.
|
push [ArrayExtras] |
Returns a new array with the element pushed onto the front of it.
|
pwrite [UnixExtras] | pwrite fd buff ofs len is just like Unix.write except it doesn't update the file descriptor's offset.
|
Q | |
quick [Glob] | quick pattern against does a one-shot match
|
R | |
range [ArrayExtras.Sorted] | range arr elem returns a pair of the first and last indexes into the array that contain a range of elements equal to elem .
|
regexp_of_glob [Glob] |
Returns a regular expression version of the glob.
|
remove_assoc [ListExtras.S] |
Same as
List.remove_assoc
|
repeat [StrExtras] | repeat s n returns a new string made up of n copies of s.
|
replace [StrExtras] | StrExtras.replace str old new replaces every instance of old
with new in str and returns a new string with the changes.
|
rev [StrExtras] |
Returns a reversed version of the string
|
rev [ArrayExtras] |
Reverses the elements of the array
|
right [StrExtras] |
Return the rightmost n characters of a string
|
rjust [StrExtras] |
Just like
rjust , but padding is added to the start of the string
if needed.
|
S | |
send_file [UnixExtras] |
Reads
len bytes from the src descr with offset start and
copies them to the dest descr.
|
set [Locale] |
If a new locale name is not provided, just return the
Some name of the
current locale for the category.
|
set_chartype [CharExtras] |
Set the CTYPE locale.
|
set_from_env [Locale] |
Set the locale based on environment variables
|
set_logpath [Syslog] |
If your syslogd unix socket isn't /dev/log, call this before openlog or syslog to change it to the proper file
|
set_socktype [Syslog] |
If your syslogd unix socket isn't a datagram one
Unix.SOCK_DGRAM ), call this with the proper one before openlog or syslog
|
setpgid [UnixExtras] |
Same as the Unix setpgid(2)
|
setpgrp [UnixExtras] |
Same as the Unix setpgrp(2)
|
setrlimit [UnixExtras] |
Same as the Unix setrlimit(2)
|
setservent [UnixExtras] |
Same as the Unix setservent(3)
|
snarf_file [IOExtras] | read_file filename returns the contents of filename.
|
sort [ArrayExtras.Sorted] |
Acts just like
Array.sort using the functorized comparision
function.
|
split_at [StrExtras] |
Returns everything after the character
|
stable_munge [ListExtras] |
The same using a stable sort
|
stable_munge [ArrayExtras] |
The same using a stable sort
|
stable_sort [ArrayExtras.Sorted] |
See above.
|
study [StrExtras.FastSearch] |
Analyze a search string
|
subpos [StrExtras] | subpos string startp endp returns the substring of string
starting at position start and ending at position end.
|
suffix [StrExtras] | suffix suf str returns true if str ends with suf.
|
swap [ArrayExtras] |
Swap two elements of an array
|
syslog [Syslog] |
Same as syslog(3), except there's no formats.
|
T | |
tail [ListExtras] |
Returns the nth cdr (Zero-based) of list
|
tilde_expand [UnixExtras] |
Does shell-like tilde expansion of a file path.
|
time [Time] |
Return the current time
|
time_string [Time] |
Time as a string without trailing newline
|
titlecase [StrExtras] |
Lowercases all but the first letter in each word in the string, which is uppercased.
|
tm_string [Time] |
Same as
time_string but takes a Unix.tm
|
to_array [StrExtras] |
Turn a string into an array of characters.
|
to_lower [CharExtras] |
Lowercase the character according to the CTYPE locale.
|
to_upper [CharExtras] |
Uppercase the character according to the CTYPE locale.
|
trim [StrExtras] | trim string character removes any leading and trailing
occurances of character from string.
|
U | |
uncapitalize [StrExtras] |
Like
String.uncapitalize , but locale-dependant
|
uppercase [StrExtras] |
Like
String.uppercase , but locale-dependant
|