(<>.) [Ustring.Op] |
Safe structural inequality operator for ustrings.
|
(=.) [Ustring.Op] |
Safe structural equality operator for ustrings.
|
(^.) [Ustring.Op] |
Fast infix string concatenation operator.
|
(^..) [Ustring.Op] |
Infix string concatenation operator.
|
A | |
append [Ustring] |
Append/concatenation of two strings.
|
B | |
bool_of_ustring [Ustring.Op] |
Expression
bool_of_ustring s returns "true" if s has value true or
false if s has value "false" .
|
C | |
compare [Ustring] |
Comparison function for ustrings.
|
concat [Ustring] | Ustring.concat sep sl returns a ustring where the list of ustrings
sl are concatenated, were separator string sep is inserted between
each list element.
|
convert_escaped_chars [Ustring] |
Converts escaped characters.
|
copy [Ustring] |
Returns a fresh copy of the string, i.e., there will be no more
sharing
|
count [Ustring] | Ustring.count s c returns the number of occurrences of character c
in ustring s .
|
create [Ustring] |
Function
Ustring.create n returns a new fresh ustring with length n
characters.
|
E | |
empty [Ustring] |
Returns an empty ustring
|
equal [Ustring] |
Safe structural equality comparison function for ustrings.
|
F | |
fast_append [Ustring] |
Fast append/concatenation of two strings.
|
fast_concat [Ustring] |
Same as function
concat with the difference that it is not returning
a fresh string.
|
float_of_ustring [Ustring.Op] |
Converts the ustring representation of a floating-point number, e.g.,
123.21 , -0.1231 , or 3.212e-12 to a floating-point value.
|
from_latin1 [Ustring] |
Creates an ustring from a string that is
assumed to be encoded with Latin-1.
|
from_latin1_char [Ustring] |
Creates an ustring from a Latin-1 encoded char
|
from_uchars [Ustring] |
Converts an array of uchars to an ustring.
|
from_utf8 [Ustring] |
Creates an ustring from a string that is assumed to be
encoded using UTF-8.
|
G | |
get [Ustring] | Ustring.get s n returns character number n in ustring s .
|
H | |
hash [Ustring] |
Implements a safe hash function for ustrings.
|
I | |
int_of_ustring [Ustring.Op] |
Expression
int_of_ustring s converts string s to an integer value.
|
L | |
latin1_to_uchar [Ustring] |
Converts a Latin-1 encoded char to an uchar
|
length [Ustring] | Ustring.length s returns the number of characters of s .
|
lexing_from_channel [Ustring] |
Creates a new
Lexing.lexbuf on a given input channel.
|
lexing_from_ustring [Ustring] |
Creates a new
Lexing.lexbuf that reads from a ustring.
|
M | |
make [Ustring] |
Function
Ustring.make n c returns a new fresh ustring of length n , filled
with character c .
|
N | |
not_equal [Ustring] |
Safe structural inequality comparison function for ustrings.
|
R | |
read_file [Ustring] |
Function
Ustring.read_file fn returns a ustring of the whole contents
of a file with file name fn .
|
read_from_channel [Ustring] |
Function
Ustring.read_from_channel ic returns a function which
can read from the in_channel.
|
rindex [Ustring] | Ustring.rindex s c returns the index of the last occurrence of
character c in ustring s .
|
rindex_from [Ustring] | Ustring.rindex_from s i c returns the index of the last occurrence of
character c in ustring s before index position i+1 .
|
S | |
set [Ustring] | Ustring.set s n c modifies ustring s in place by replacing uchar at
index n by uchar c .
|
string2hex [Ustring] |
Function
Ustring.string2hex s returns a comma separated list of hex
values for the bytes in string s .
|
sub [Ustring] |
Function
Ustring.sub s start len returns a new ustring with length
len , consisting of a sub-string of s , which starts at index
position start and has length len .
|
T | |
to_latin1 [Ustring] |
Creates a new string encoded using Latin-1.
|
to_uchars [Ustring] |
Returns an array of uchars.
|
to_utf8 [Ustring] |
Returns an UTF-8 encoded string.
|
trim [Ustring] |
Returns a new ustring where white space (e.g.
|
trim_left [Ustring] |
Returns a new ustring where white space (e.g.
|
trim_right [Ustring] |
Returns a new ustring where white space (e.g.
|
U | |
uc [Ustring.Op] |
Creates a uchar from a Latin-1 encoded char.
|
unix2dos [Ustring] |
Function
Ustring.unix2dos s returns a string where newline characters in
string s are converted to the DOS and Windows standard.
|
uprint_bool [Ustring.Op] |
Prints the string representation of an boolean to the standard output.
|
uprint_char [Ustring.Op] |
Prints a uchar to the standard output.
|
uprint_endline [Ustring.Op] |
Prints a ustring to the standard output, followed by a
newline character and flush of the standard output.
|
uprint_float [Ustring.Op] |
Prints a floating-point number in decimal form to the standard output.
|
uprint_int [Ustring.Op] |
Prints an integer i decimal form to the standard output.
|
uprint_newline [Ustring.Op] |
Prints a new line and flushes the standard output.
|
uprint_string [Ustring.Op] |
Prints a ustring to the standard output.
|
us [Ustring.Op] |
Creates a ustring from a Latin-1 encoded OCaml string.
|
ustring_of_bool [Ustring.Op] |
Returns the string representation ("true" or "false") of the boolean
argument.
|
ustring_of_float [Ustring.Op] |
Returns the string representation of a floating-point number.
|
ustring_of_int [Ustring.Op] |
Returns the string representation of an integer in decimal.
|
V | |
validate_utf8_string [Ustring] |
Expression
Ustring.validate_utf8_string s n checks if the first n characters
of string s have valid UTF-8 encoding.
|