85 string backquote(
string cmd, *reference rc);
441 *
int getByte(
string str, softint offset = 0);
557 *
int getWord32(
string str, softint offset = 0);
600 *
int get_byte(
string str, softint offset = 0);
1114 bool has_key(
object obj,
string key);
1478 *
hash parse(
string code,
string label, *softint warning_mask, *
string source, *softint offset, softbool format_label =
True);
1757 string splice(
string str);
1774 string splice(
string str, softint start);
1793 string splice(
string str, softint start, softint len, *
string nstr);
1827 list splice(
list l, softint start, softint len, *softlist nlist);
1849 int strtoint(
string num, softint base = 10);
2132 SIGSTKSZ:
"SIGSTKSZ",
const SIGKILL
SIGKILL.
Definition: ql_misc.dox.h:2051
*int 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 NOTHI...
string get_default_encoding()
Returns the name of the default character encoding.
const SIGSYS
SIGSYS.
Definition: ql_misc.dox.h:2073
const CE_ALL
code for encoding everything
Definition: ql_misc.dox.h:1874
const CE_XML
code for encoding XML entities
Definition: ql_misc.dox.h:1907
const SIGINFO
SIGINFO.
Definition: ql_misc.dox.h:2039
*string get_script_name()
Returns the filename of the current script if known or NOTHING if unknown (i.e. no parent script...
string decode_url(string url)
Decodes percent numeric codes in a URL string and returns the decoded string in UTF-8 encoding...
binary parseHexString(string hexstr)
Parses a hex-encoded string and returns the binary object.
const SIGURG
SIGURG.
Definition: ql_misc.dox.h:2087
string parse_base64_string_to_string(string str, *string encoding)
Parses a base64 encoded string and returns a string of the decoded data.
hash get_qore_option_hash()
Returns a hash of hashes giving information about Qore library options for the current build...
any call_function(string name,...)
Calls a function and returns the return value, passing the remaining arguments after the function nam...
nothing set_signal_handler(softint signal, code f)
Sets or replaces a signal handler according to the signal number and closure or call reference (funct...
const SIGPROF
SIGPROF.
Definition: ql_misc.dox.h:2061
const SIGSTKFLT
SIGSTKFLT.
Definition: ql_misc.dox.h:2069
*hash 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.
Program objects allow Qore programs to support subprograms with the option to restrict capabilities...
Definition: QC_Program.dox.h:29
const SIGBUS
SIGBUS.
Definition: ql_misc.dox.h:2019
*string get_script_path()
Returns the path (directory and filename) of the current script or NOTHING if unknown (i...
const SIGTTOU
SIGTTOU.
Definition: ql_misc.dox.h:2085
string make_base64_string(string str, softint maxlinelen=-1)
Returns a base64-encoded representation of a string.
const SIGQUIT
SIGQUIT.
Definition: ql_misc.dox.h:2065
*int 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 NOTHI...
*string function_type(string name)
Returns "builtin" (for a builtin function), "user" (for a user function), or NOTHING (if the function...
const SIGWINCH
SIGWINCH.
Definition: ql_misc.dox.h:2097
const CD_XHTML
code for decoding XHTML named character references to symbols
Definition: ql_misc.dox.h:1942
const SIGPWR
SIGPWR.
Definition: ql_misc.dox.h:2063
const True
logical True
Definition: qc_qore.dox.h:94
set_return_value(any val)
sets the return value for a Program object when running with %exec-class
const SIGIO
SIGIO.
Definition: ql_misc.dox.h:2043
hash get_module_hash()
Returns a hash of hashes describing the currently-loaded Qore modules; the top-level hash keys are th...
string encode_uri_request(string url)
Encodes URI requests by substituting special characters in the path with percent-encoded ewquivalents...
const CE_XHTML
code for encoding XHTML entities
Definition: ql_misc.dox.h:1894
const SIGCLD
SIGCLD.
Definition: ql_misc.dox.h:2025
const SIGUSR2
SIGUSR2.
Definition: ql_misc.dox.h:2091
*int 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 of...
const SIGVTALRM
SIGVTALRM.
Definition: ql_misc.dox.h:2093
*hash 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...
any call_builtin_function(string name,...)
Calls a function and returns the return value, passing the remaining arguments after the function nam...
binary binary()
Always returns an empty binary object (of zero length)
const SIGSTOP
SIGSTOP.
Definition: ql_misc.dox.h:2071
const SIGTERM
SIGTERM.
Definition: ql_misc.dox.h:2075
bool exists_function(string name)
Returns True if the function exists in the current program's function name space. ...
const SIGALRM
SIGALRM.
Definition: ql_misc.dox.h:2017
*int 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 NOTHI...
string parseBase64StringToString(string str, *string encoding)
Parses a base64 encoded string and returns a string of the decoded data.
const CD_HTML
code for decoding HTML 5 named character references to their native symbols
Definition: ql_misc.dox.h:1932
const SIGTRAP
SIGTRAP.
Definition: ql_misc.dox.h:2079
const False
logical False
Definition: qc_qore.dox.h:92
list get_module_list()
Returns a list of hashes describing the currently-loaded Qore modules.
const SIGCONT
SIGCONT.
Definition: ql_misc.dox.h:2027
list list(...)
Returns a list of the arguments passed at the top level.
const CE_HTML
code for encoding HTML 5 symbols as named character references
Definition: ql_misc.dox.h:1882
nothing load_module(string name)
Loads in a Qore module at run-time.
const SIGLWP
SIGLWP.
Definition: ql_misc.dox.h:2055
string make_hex_string(string str)
Returns a hex-encoded representation of a string.
const SIGTTIN
SIGTTIN.
Definition: ql_misc.dox.h:2083
string html_decode(string str)
Returns a string with any HTML escape codes translated to the original characters.
int hextoint(string str)
Returns an integer for a hexadecimal string value; throws an exception if non-hex digits are found...
*string get_script_dir()
Returns the name of the directory from which the current script was executed or NOTHING if unknown (i...
nothing remove_signal_handler(softint signal)
Removes a signal handler and returns the signal handling state to the default.
const SIGJVM2
SIGJVM2.
Definition: ql_misc.dox.h:2049
const SIGCHLD
SIGCHLD.
Definition: ql_misc.dox.h:2023
nothing 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 ...
list hash_values(hash h)
Returns a list of all the values in the hash argument passed.
*int 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 of...
const SIGSEGV
SIGSEGV.
Definition: ql_misc.dox.h:2067
bool exists(...)
A function performing the same role as the exists operator.
int get_parse_options()
returns the current parse options for the current Program object
const SIGEMT
SIGEMT.
Definition: ql_misc.dox.h:2029
list getFeatureList()
Returns a list of strings of the builtin and module-supplied features of Qore.
const SIGABRT
SIGABRT.
Definition: ql_misc.dox.h:2015
const CD_XML
code for decoding XML entities
Definition: ql_misc.dox.h:1955
string splice(string str)
This function always returns an empty string "".
const SignalToName
maps signal numbers (as a string key) to the symbolic name for the signal
Definition: ql_misc.dox.h:2105
list get_feature_list()
Returns a list of strings of the builtin and module-supplied features of Qore.
*string functionType(string name)
Returns "builtin" (for a builtin function), "user" (for a user function), or NOTHING (if the function...
binary parse_hex_string(string hexstr)
Parses a hex-encoded string and returns the binary object.
const SIGFREEZE
SIGFREEZE.
Definition: ql_misc.dox.h:2033
*int 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 NOTHI...
string getClassName(object obj)
Returns the class name of the object passed.
const SIGPOLL
SIGPOLL.
Definition: ql_misc.dox.h:2059
const SIGXCPU
SIGXCPU.
Definition: ql_misc.dox.h:2099
string html_encode(string str)
Returns a string with characters needing HTML escaping translated to HTML escape codes.
const SIGHUP
SIGHUP.
Definition: ql_misc.dox.h:2035
const SIGILL
SIGILL.
Definition: ql_misc.dox.h:2037
string makeHexString(string str)
Returns a hex-encoded representation of a string.
binary parseBase64String(string str)
Parses a base64 encoded string and returns a binary object of the decoded data.
hash parse_url(string url, bool keep_brackets=False)
Parses a URL string and returns a hash of the components; throws an exception if the string cannot be...
binary parse_base64_string(string str)
Parses a base64 encoded string and returns a binary object of the decoded data.
const SIGJVM1
SIGJVM1.
Definition: ql_misc.dox.h:2047
const SIGTSTP
SIGTSTP.
Definition: ql_misc.dox.h:2081
any call_builtin_function_args(string name, *softlist vargs)
Calls a function and returns the return value, using the optional second argument as a list of argume...
const SIGFPE
SIGFPE.
Definition: ql_misc.dox.h:2031
*int 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 NOTHI...
const SIGUSR1
SIGUSR1.
Definition: ql_misc.dox.h:2089
nothing reload_module(string name)
Reloads an already-loaded Qore module subject to code injection at run-time into Qore; the module's c...
int strtoint(string num, softint base=10)
parses a string representing a number in a configurable base and returns the integer ...
const SIGWAITING
SIGWAITING.
Definition: ql_misc.dox.h:2095
any call_function_args(string name, *softlist vargs)
Calls a function and returns the return value, using the optional second argument as a list of argume...
const CD_NUM_REF
code for decoding numeric character references to symbols
Definition: ql_misc.dox.h:1936
bool existsFunction(string name)
Returns True if the function exists in the current program's function name space. ...
string get_class_name(object obj)
Returns the class name of the object passed.
string backquote(string cmd, *reference rc)
Executes a process and returns a string of the output (stdout only)
string encode_url(string url, softbool encode_all=False)
Encodes URLs by substituting '%' characters with '%25', spaces (' ') with '%20', and non-ascii charac...
const SIGINT
SIGINT.
Definition: ql_misc.dox.h:2041
*int 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 NOTHI...
list get_qore_option_list()
Returns a list of hashes giving information about Qore library options for the current build...
const CD_ALL
code for decoding everything
Definition: ql_misc.dox.h:1924
const NameToSignal
maps signal names to signal values
Definition: ql_misc.dox.h:1967
string decode_uri_request(string uri)
Decodes percent-encoded codes in a URI path and converts "+" signs in the query component to spaces a...
const SIGXFSZ
SIGXFSZ.
Definition: ql_misc.dox.h:2101
string get_ex_pos(hash ex)
returns a descriptive string for an exception location; the source and offset information will also b...
list getModuleList()
Returns a list of hashes describing the currently-loaded Qore modules.
hash hash(object obj)
Returns a hash of an object's members.
const SIGIOT
SIGIOT.
Definition: ql_misc.dox.h:2045
string makeBase64String(string str, softint maxlinelen=-1)
Returns a base64-encoded representation of a string.
*int 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 NOTHI...
bool has_key(hash h, string key)
Returns True if the given key exists in the hash (does not necessarily have to have a value assigned)...
const SIGPIPE
SIGPIPE.
Definition: ql_misc.dox.h:2057
const SIGCANCEL
SIGCANCEL.
Definition: ql_misc.dox.h:2021
hash getModuleHash()
Returns a hash of hashes describing the currently-loaded Qore modules; the top-level hash keys are th...
hash get_qore_library_info()
Returns a hash of library build and version info.
const CE_NONASCII
code for encoding all non-ASCII symbols as numeric character references
Definition: ql_misc.dox.h:1888
const SIGXRES
SIGXRES.
Definition: ql_misc.dox.h:2103
const SIGTHAW
SIGTHAW.
Definition: ql_misc.dox.h:2077
const SIGLOST
SIGLOST.
Definition: ql_misc.dox.h:2053