module Library_string: sig
.. end
String library implementation
Author(s): Tony BenBrahim < tony.benbrahim at gmail.com >
val get_this : Ast.runtime_env -> string
Returns the value of this as a string
Raises InternalError
is this is not a string
Returns the string value of this
env
: the runtime environment
val indexOf : string -> string -> int
Returns the positing of a substring within a string
Returns the position of the substring in the string, or - 1 if not found
str
: the string to search
substr
: the substring to find
val initialize : 'a -> Ast.lib_function_def list * 'a
Entry point for library initialization
Returns a list of exported functions