Qore Programming Language Reference Manual: Miscellaneous Functions (original) (raw)
Qore::backquote (string cmd, *reference< int > rc)
Executes a process and returns a string of the output (stdout only) More...
nothing
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
auto
Qore::call_builtin_function (string name,...)
Calls a function and returns the return value, passing the remaining arguments after the function name to the builtin function. More...
auto
Qore::call_builtin_function_args (string name, *softlist< auto > vargs)
Calls a function and returns the return value, using the optional second argument as a list of arguments for the function. More...
auto
Qore::call_function (string name,...)
Calls a function and returns the return value, passing the remaining arguments after the function name to the function. More...
auto
Qore::call_function (code f,...)
Calls the given call reference or closure and returns the result, passing the remaining arguments to the call reference or closure. More...
auto
Qore::call_function_args (string name, *softlist< auto > vargs)
Calls a function and returns the return value, using the optional second argument as a list of arguments for the function. More...
auto
Qore::call_function_args (code f, *softlist< auto > vargs)
Calls the given call reference or closure and returns the result, using the optional second argument as a list of arguments to the call reference or closure. More...
Qore::decode_uri_request (string uri)
Decodes percent-encoded codes in a URI path and converts "+"
signs in the query component to spaces and returns the decoded string in UTF-8 encoding. More...
Qore::decode_url (string url)
Decodes percent numeric codes in a URL string and returns the decoded string in UTF-8 encoding. More...
nothing
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
Qore::encode_uri_request (string url)
Encodes URI requests by substituting special characters in the path with percent-encoded equivalents and substituting spaces with "+"
and "+"
with the percent-encoded equivalent in the URI query component. More...
Qore::encode_url (string url, softbool encode_all=False)
Encodes URLs by substituting '%'
characters with '%25'
, spaces ('
') with '%20'
, and non-ascii characters by percent-encoded representations. More...
bool
Qore::exists (...)
A function performing the same role as the exists operator. More...
bool
Qore::existsFunction (string name)
Returns True if the function exists in the current program's function name space. More...
bool
Qore::existsFunction (code c)
nothing
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
bool
Qore::exists_function (string name)
Returns True if the function exists in the current program's function name space. More...
bool
Qore::exists_function (code c)
Qore::functionType (string name)
Returns "builtin"
(for a builtin function), "user"
(for a user function), or NOTHING (if the function cannot be found) according to the function name passed. More...
nothing
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
Qore::function_type (string name)
Returns "builtin"
(for a builtin function), "user"
(for a user function), or NOTHING (if the function cannot be found) according to the function name passed. More...
*int
Qore::getByte (string str, softint offset=0)
Returns the byte value at the given byte offset (the first value is at offset 0) or NOTHING if the offset is not legal for the given data. More...
nothing
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
*int
Qore::getByte (binary b, softint offset=0)
Returns the byte value at the given byte offset (the first value is at offset 0) or NOTHING if the offset is not legal for the given data. More...
Qore::getClassName (object obj)
Returns the class name of the object passed. More...
nothing
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
Returns a list of strings of the builtin and module-supplied features of Qore. More...
Returns a hash of hashes describing the currently-loaded Qore modules; the top-level hash keys are the module names. More...
Returns a list of hashes describing the currently-loaded Qore modules. More...
*int
Qore::getWord32 (string str, softint offset=0)
Returns the 32-bit integer value at the given 4-byte offset (the first value is at offset 0) or NOTHING if the offset is not legal for the given data. More...
*int
Qore::getWord32 (binary b, softint offset=0)
Returns the 32-bit integer value at the given 4-byte offset (the first value is at offset 0) or NOTHING if the offset is not legal for the given data. More...
nothing
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
*int
Qore::get_byte (string str, softint offset=0)
Returns the byte value at the given byte offset (the first value is at offset 0) or NOTHING if the offset is not legal for the given data. More...
*int
Qore::get_byte (binary b, softint offset=0)
Returns the byte value at the given byte offset (the first value is at offset 0) or NOTHING if the offset is not legal for the given data. More...
code
Qore::get_call_reference (string identifier)
resolve the string as a call reference More...
Qore::get_class_name (object obj)
Returns the class name of the object passed. More...
Returns the name of the default character encoding. More...
Qore::get_ex_pos (hash< auto > ex)
returns a descriptive string for an exception location; the source
and offset
information will also be included in the string returned if present in the ExceptionInfo hash argument More...
Returns a list of strings of the builtin and module-supplied features of Qore. More...
hash< auto >
returns a hash of global variables More...
hash< auto >
Qore::get_local_vars (int frame)
retrieves a hash of local variables for the given stack frame More...
Returns a hash of hashes describing the currently-loaded Qore modules; the top-level hash keys are the module names. More...
Returns a list of hashes describing the currently-loaded Qore modules. More...
auto
Qore::get_module_option (string module, string option)
returns the given global module option More...
returns the current parse options for the current Program object More...
hash< auto >
Qore::get_qore_library_info ()
Returns a hash of library build and version info. More...
Returns a hash of hashes giving information about Qore library options for the current build. More...
Returns a list of hashes giving information about Qore library options for the current build. More...
Qore::get_safe_url (string url)
Returns the URL string passed without any password information. More...
Returns the name of the directory from which the current script was executed or NOTHING if unknown (i.e. no parent script, script read from stdin, etc) More...
Returns the filename of the current script if known or NOTHING if unknown (i.e. no parent script, script read from stdin, etc) More...
Returns the path (directory and filename) of the current script or NOTHING if unknown (i.e. no parent script, script read from stdin, etc) More...
*int
Qore::get_word_16 (string str, softint offset=0)
Returns the 16-bit integer value at the given 2-byte offset (the first value is at offset 0) or NOTHING if the offset is not legal for the given data. More...
*int
Qore::get_word_16 (binary b, softint offset=0)
Returns the 16-bit integer value at the given 2-byte offset (the first value is at offset 0) or NOTHING if the offset is not legal for the given data. More...
*int
Qore::get_word_16_lsb (string str, softint offset=0)
Returns the 16-bit integer value at the given 2-byte offset (the first value is at offset 0) or NOTHING if the offset is not legal for the given data. More...
*int
Qore::get_word_16_lsb (binary b, softint offset=0)
Returns the 16-bit integer value at the given 2-byte offset (the first value is at offset 0) or NOTHING if the offset is not legal for the given data. More...
*int
Qore::get_word_32 (string str, softint offset=0)
Returns the 32-bit integer value at the given 4-byte offset (the first value is at offset 0) or NOTHING if the offset is not legal for the given data. More...
*int
Qore::get_word_32 (binary b, softint offset=0)
Returns the 32-bit integer value at the given 4-byte offset (the first value is at offset 0) or NOTHING if the offset is not legal for the given data. More...
*int
Qore::get_word_32_lsb (string str, softint offset=0)
Returns the 32-bit integer value at the given 4-byte offset (the first value is at offset 0) or NOTHING if the offset is not legal for the given data. More...
*int
Qore::get_word_32_lsb (binary b, softint offset=0)
Returns the 32-bit integer value at the given 4-byte offset (the first value is at offset 0) or NOTHING if the offset is not legal for the given data. More...
*int
Qore::get_word_64 (string str, softint offset=0)
Returns the 64-bit integer value at the given 8-byte offset (the first value is at offset 0) or NOTHING if the offset is not legal for the given data. More...
*int
Qore::get_word_64 (binary b, softint offset=0)
Returns the 64-bit integer value at the given 8-byte offset (the first value is at offset 0) or NOTHING if the offset is not legal for the given data. More...
*int
Qore::get_word_64_lsb (string str, softint offset=0)
Returns the 64-bit integer value at the given 8-byte offset (the first value is at offset 0) or NOTHING if the offset is not legal for the given data. More...
*int
Qore::get_word_64_lsb (binary b, softint offset=0)
Returns the 64-bit integer value at the given 8-byte offset (the first value is at offset 0) or NOTHING if the offset is not legal for the given data. More...
bool
Qore::has_key (hash< auto > h, string key)
Returns True if the given key exists in the hash (does not necessarily have to have a value assigned); exceptions are only raised if string encoding errors are encountered. More...
bool
Qore::has_key (object obj, string key)
Returns True if the given key exists in the object (does not necessarily have to have a value assigned); exceptions are only raised if string encoding errors are encountered or in case of object access errors. More...
list< auto >
Qore::hash_values (hash< auto > h)
Returns a list of all the values in the hash argument passed. More...
nothing
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
Qore::hextoint (string str)
Returns an integer for a hexadecimal string value; throws an exception if non-hex digits are found. More...
nothing
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
Qore::html_decode (string str)
Returns a string with any HTML escape codes translated to the original characters. More...
nothing
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
Qore::html_encode (string str)
Returns a string with characters needing HTML escaping translated to HTML escape codes. More...
nothing
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
nothing
Qore::load_module (string name, int warning_mask=WARN_MODULES)
Loads in a Qore module at run-time. More...
nothing
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
*hash< ExceptionInfo >
Qore::load_module_warn (string name, int warning_mask=WARN_MODULES)
Loads in a Qore module at run-time. More...
nothing
Qore::load_user_module_with_program (string name, Qore::Program pgm)
Loads in a Qore user module at run-time with using the given Program object as the container for the user module code. More...
Qore::makeBase64String (string str, softint maxlinelen=-1)
Returns a base64-encoded representation of a string. More...
Qore::makeBase64String (binary bin, softint maxlinelen=-1)
Returns a base64-encoded representation of a binary object. More...
nothing
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
Qore::makeHexString (string str)
Returns a hex-encoded representation of a string. More...
Qore::makeHexString (binary bin)
Returns a hex-encoded representation of a binary object. More...
nothing
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
Qore::make_base64_string (string str, softint maxlinelen=-1)
Returns a base64-encoded representation of a string. More...
Qore::make_base64_string (binary bin, softint maxlinelen=-1)
Returns a base64-encoded representation of a binary object. More...
Qore::make_base64_url_string (string str)
Returns a base64-url-encoded representation of a string. More...
Qore::make_base64_url_string (binary bin)
Returns a base64-url-encoded representation of a binary object. More...
Qore::make_hex_string (string str)
Returns a hex-encoded representation of a string. More...
Qore::make_hex_string (binary bin)
Returns a hex-encoded representation of a binary object. More...
*hash< auto >
Qore::parse (string code, string label, *softint warning_mask, *string source, *softint offset, softbool format_label=True)
Adds the text passed to the current program's code, tagged with the given label. More...
nothing
Qore::parse ()
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
Qore::parseBase64String (string str)
Parses a base64 encoded string and returns a binary object of the decoded data. More...
nothing
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
Qore::parseBase64StringToString (string str, *string encoding)
Parses a base64 encoded string and returns a string of the decoded data. More...
nothing
Qore::parseBase64StringToString ()
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
Qore::parseHexString (string hexstr)
Parses a hex-encoded string and returns the binary object. More...
nothing
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
Qore::parseURL (string url, bool keep_brackets=False)
Parses a URL string and returns a hash of the components; if the URL cannot be parsed then NOTHING is returned. More...
nothing
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
Qore::parse_base64_string (string str)
Parses a base64 encoded string and returns a binary object of the decoded data. More...
Qore::parse_base64_string_to_string (string str, *string encoding)
Parses a base64 encoded string and returns a string of the decoded data. More...
Qore::parse_base64_url_string (string str)
Parses a base64-url-encoded string and returns a binary object of the decoded data. More...
Qore::parse_base64_url_string_to_string (string str, *string encoding)
Parses a base64-url-encoded string and returns a string of the decoded data. More...
Qore::parse_hex_string (string hexstr)
Parses a hex-encoded string and returns the binary object. More...
Qore::parse_url (string url, bool keep_brackets)
Parses a URL string and returns a hash of the components. More...
Qore::parse_url (string url, *int options)
Parses a URL string and returns a hash of the components. More...
nothing
Qore::reload_module (string name)
Reloads an already-loaded Qore module subject to code injection at run-time into Qore; the module's code is not imported into the current Program object. More...
nothing
Qore::set_global_var_value (string name, auto value)
set the value of a global variable More...
nothing
Qore::set_local_var_value (int frame, string var, auto value)
sets the value of the given local variable; if the variable cannot be found an exception is raised More...
nothing
Qore::set_module_option (string module, string option, auto value)
set the given module option More...
Qore::set_return_value (auto val)
sets the return value for a Program object when running with %exec-class More...
Qore::splice (string str)
This function always returns an empty string ""
. More...
Qore::splice (string str, softint start)
Returns a string based on the argument string but with characters removed from a certain character index. More...
Qore::splice (string str, softint start, softint len, *string nstr)
Returns a string based on the argument string but optionally with characters removed and/or added from a certain character index. More...
list< auto >
Qore::splice (list< auto > l, softint start)
Returns a list based on the argument list but with elements removed from the given index to the end of the list. More...
list< auto >
Qore::splice (list< auto > l, softint start, softint len)
Returns a list based on the argument list but optionally with elements removed and/or added from a certain index. More...
list< auto >
Qore::splice (list< auto > l, softint start, softint len, softlist< auto > nlist)
Returns a list based on the argument list but optionally with elements removed and/or added from a certain index. More...
nothing
Qore::splice ()
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...
Qore::strtoint (string num, softint base=10)
parses a string representing a number in a configurable base and returns the integer More...
nothing
This function variant does nothing at all; it is only included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments. More...