Qore Programming Language Reference Manual: Miscellaneous Functions (original) (raw)

string

Qore::backquote (string cmd, *reference< int > rc)

Executes a process and returns a string of the output (stdout only) More...

nothing

Qore::backquote ()

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...

string

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...

string

Qore::decode_url (string url)

Decodes percent numeric codes in a URL string and returns the decoded string in UTF-8 encoding. More...

nothing

Qore::decode_url ()

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...

string

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...

string

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)

Always returns True. More...

nothing

Qore::existsFunction ()

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)

Always returns True. More...

*string

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

Qore::functionType ()

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...

*string

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

Qore::getByte ()

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...

string

Qore::getClassName (object obj)

Returns the class name of the object passed. More...

nothing

Qore::getClassName ()

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...

list< string >

Qore::getFeatureList ()

Returns a list of strings of the builtin and module-supplied features of Qore. More...

hash< string, hash< auto > >

Qore::getModuleHash ()

Returns a hash of hashes describing the currently-loaded Qore modules; the top-level hash keys are the module names. More...

list< hash< auto > >

Qore::getModuleList ()

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

Qore::getWord32 ()

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...

string

Qore::get_class_name (object obj)

Returns the class name of the object passed. More...

string

Qore::get_default_encoding ()

Returns the name of the default character encoding. More...

string

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...

list< string >

Qore::get_feature_list ()

Returns a list of strings of the builtin and module-supplied features of Qore. More...

hash< auto >

Qore::get_global_vars ()

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...

hash< string, hash< auto > >

Qore::get_module_hash ()

Returns a hash of hashes describing the currently-loaded Qore modules; the top-level hash keys are the module names. More...

list< hash< auto > >

Qore::get_module_list ()

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...

int

Qore::get_parse_options ()

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...

hash< string, hash< auto > >

Qore::get_qore_option_hash ()

Returns a hash of hashes giving information about Qore library options for the current build. More...

list< hash< auto > >

Qore::get_qore_option_list ()

Returns a list of hashes giving information about Qore library options for the current build. More...

string

Qore::get_safe_url (string url)

Returns the URL string passed without any password information. More...

*string

Qore::get_script_dir ()

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...

*string

Qore::get_script_name ()

Returns the filename of the current script if known or NOTHING if unknown (i.e. no parent script, script read from stdin, etc) More...

*string

Qore::get_script_path ()

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

Qore::hash_values ()

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::hextoint (string str)

Returns an integer for a hexadecimal string value; throws an exception if non-hex digits are found. More...

nothing

Qore::hextoint ()

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...

string

Qore::html_decode (string str)

Returns a string with any HTML escape codes translated to the original characters. More...

nothing

Qore::html_decode ()

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...

string

Qore::html_encode (string str)

Returns a string with characters needing HTML escaping translated to HTML escape codes. More...

nothing

Qore::html_encode ()

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

Qore::load_module ()

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...

string

Qore::makeBase64String (string str, softint maxlinelen=-1)

Returns a base64-encoded representation of a string. More...

string

Qore::makeBase64String (binary bin, softint maxlinelen=-1)

Returns a base64-encoded representation of a binary object. More...

nothing

Qore::makeBase64String ()

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...

string

Qore::makeHexString (string str)

Returns a hex-encoded representation of a string. More...

string

Qore::makeHexString (binary bin)

Returns a hex-encoded representation of a binary object. More...

nothing

Qore::makeHexString ()

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...

string

Qore::make_base64_string (string str, softint maxlinelen=-1)

Returns a base64-encoded representation of a string. More...

string

Qore::make_base64_string (binary bin, softint maxlinelen=-1)

Returns a base64-encoded representation of a binary object. More...

string

Qore::make_base64_url_string (string str)

Returns a base64-url-encoded representation of a string. More...

string

Qore::make_base64_url_string (binary bin)

Returns a base64-url-encoded representation of a binary object. More...

string

Qore::make_hex_string (string str)

Returns a hex-encoded representation of a string. More...

string

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...

binary

Qore::parseBase64String (string str)

Parses a base64 encoded string and returns a binary object of the decoded data. More...

nothing

Qore::parseBase64String ()

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...

string

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...

binary

Qore::parseHexString (string hexstr)

Parses a hex-encoded string and returns the binary object. More...

nothing

Qore::parseHexString ()

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< UrlInfo >

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

Qore::parseURL ()

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...

binary

Qore::parse_base64_string (string str)

Parses a base64 encoded string and returns a binary object of the decoded data. More...

string

Qore::parse_base64_string_to_string (string str, *string encoding)

Parses a base64 encoded string and returns a string of the decoded data. More...

binary

Qore::parse_base64_url_string (string str)

Parses a base64-url-encoded string and returns a binary object of the decoded data. More...

string

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...

binary

Qore::parse_hex_string (string hexstr)

Parses a hex-encoded string and returns the binary object. More...

hash< UrlInfo >

Qore::parse_url (string url, bool keep_brackets)

Parses a URL string and returns a hash of the components. More...

hash< UrlInfo >

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...

string

Qore::splice (string str)

This function always returns an empty string "". More...

string

Qore::splice (string str, softint start)

Returns a string based on the argument string but with characters removed from a certain character index. More...

string

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...

int

Qore::strtoint (string num, softint base=10)

parses a string representing a number in a configurable base and returns the integer More...

nothing

Qore::strtoint ()

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...