1654 *hash<auto>
parse(
string code,
string label, *softint warning_mask, *
string source, *softint offset, softbool format_label =
True);
2107 string splice(
string str, softint start, softint len, *
string nstr);
2122 list<auto>
splice(list<auto> l, softint start);
2140 list<auto>
splice(list<auto> l, softint start, softint len);
2159 list<auto>
splice(list<auto> l, softint start, softint len, softlist<auto> nlist);
2484 SIGSTKSZ:
"SIGSTKSZ",
Program objects allow Qore programs to support subprograms with the option to restrict capabilities,...
Definition: QC_Program.dox.h:56
const CD_XML
code for decoding XML entities
Definition: ql_misc.dox.h:2307
const CD_ALL
code for decoding everything
Definition: ql_misc.dox.h:2276
const CD_XHTML
code for decoding XHTML named character references to symbols
Definition: ql_misc.dox.h:2294
const CD_NUM_REF
code for decoding numeric character references to symbols
Definition: ql_misc.dox.h:2288
const CD_HTML
code for decoding HTML 5 named character references to their native symbols
Definition: ql_misc.dox.h:2284
const CE_ALL
code for encoding everything
Definition: ql_misc.dox.h:2226
const CE_HTML
code for encoding HTML 5 symbols as named character references
Definition: ql_misc.dox.h:2234
const CE_NONASCII
code for encoding all non-ASCII symbols as numeric character references
Definition: ql_misc.dox.h:2240
const CE_XHTML
code for encoding XHTML entities
Definition: ql_misc.dox.h:2246
const CE_XML
code for encoding XML entities
Definition: ql_misc.dox.h:2259
const True
logical True
Definition: qc_qore.dox.h:98
const False
logical False
Definition: qc_qore.dox.h:96
string parse_base64_string_to_string(string str, *string encoding)
Parses a base64 encoded string and returns a string of the decoded data.
*hash< auto > 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.
auto 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 argume...
list< hash< auto > > get_module_list()
Returns a list of hashes describing the currently-loaded Qore modules.
binary parseBase64String(string str)
Parses a base64 encoded string and returns a binary object of the decoded data.
string parseBase64StringToString(string str, *string encoding)
Parses a base64 encoded string and returns a string of the decoded data.
hash< string, hash< auto > > get_qore_option_hash()
Returns a hash of hashes giving information about Qore library options for the current build.
nothing 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
*string function_type(string name)
Returns "builtin" (for a builtin function), "user" (for a user function), or NOTHING (if the function...
*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...
*hash< ExceptionInfo > load_module_warn(string name, int warning_mask=WARN_MODULES)
Loads in a Qore module at run-time.
auto get_module_option(string module, string option)
returns the given global module option
*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...
auto call_builtin_function(string name,...)
Calls a function and returns the return value, passing the remaining arguments after the function nam...
string makeBase64String(string str, softint maxlinelen=-1)
Returns a base64-encoded representation of a string.
hash< string, hash< auto > > getModuleHash()
Returns a hash of hashes describing the currently-loaded Qore modules; the top-level hash keys are th...
binary parse_base64_string(string str)
Parses a base64 encoded string and returns a binary object of the decoded data.
hash< auto > get_global_vars()
returns a hash of global variables
bool exists_function(string name)
Returns True if the function exists in the current program's function name space.
*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...
string splice(string str)
This function always returns an empty string "".
*string get_script_path()
Returns the path (directory and filename) of the current script or NOTHING if unknown (i....
string getClassName(object obj)
Returns the class name of the object passed.
*string get_script_dir()
Returns the name of the directory from which the current script was executed or NOTHING if unknown (i...
hash< UrlInfo > parse_url(string url, bool keep_brackets)
Parses a URL string and returns a hash of the components.
auto 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 argume...
set_return_value(auto val)
sets the return value for a Program object when running with %exec-class
string decode_url(string url)
Decodes percent numeric codes in a URL string and returns the decoded string in UTF-8 encoding.
*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...
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 ...
*string functionType(string name)
Returns "builtin" (for a builtin function), "user" (for a user function), or NOTHING (if the function...
int hextoint(string str)
Returns an integer for a hexadecimal string value; throws an exception if non-hex digits are found.
string encode_url(string url, softbool encode_all=False)
Encodes URLs by substituting '%' characters with '%25', spaces (' ') with '%20', and non-ascii charac...
int get_parse_options()
returns the current parse options for the current Program object
code get_call_reference(string identifier)
resolve the string as a call reference
bool 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)...
binary parseHexString(string hexstr)
Parses a hex-encoded string and returns the binary object.
auto call_function(string name,...)
Calls a function and returns the return value, passing the remaining arguments after the function nam...
list< hash< auto > > getModuleList()
Returns a list of hashes describing the currently-loaded Qore modules.
list< string > getFeatureList()
Returns a list of strings of the builtin and module-supplied features of Qore.
bool existsFunction(string name)
Returns True if the function exists in the current program's function name space.
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
list< string > get_feature_list()
Returns a list of strings of the builtin and module-supplied features of Qore.
*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...
string make_base64_string(string str, softint maxlinelen=-1)
Returns a base64-encoded representation of a string.
list< hash< auto > > get_qore_option_list()
Returns a list of hashes giving information about Qore library options for the current build.
string get_default_encoding()
Returns the name of the default character encoding.
nothing set_module_option(string module, string option, auto value)
set the given module option
string html_encode(string str)
Returns a string with characters needing HTML escaping translated to HTML escape codes.
hash< auto > get_qore_library_info()
Returns a hash of library build and version info.
string get_class_name(object obj)
Returns the class name of the object passed.
string get_ex_pos(hash< auto > ex)
returns a descriptive string for an exception location; the source and offset information will also b...
hash< string, hash< auto > > get_module_hash()
Returns a hash of hashes describing the currently-loaded Qore modules; the top-level hash keys are th...
*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...
hash< auto > get_local_vars(int frame)
retrieves a hash of local variables for the given stack frame
string html_decode(string str)
Returns a string with any HTML escape codes translated to the original characters.
string encode_uri_request(string url)
Encodes URI requests by substituting special characters in the path with percent-encoded equivalents ...
bool exists(...)
A function performing the same role as the exists operator.
*string get_script_name()
Returns the filename of the current script if known or NOTHING if unknown (i.e. no parent script,...
*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...
*hash< UrlInfo > 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...
string makeHexString(string str)
Returns a hex-encoded representation of a string.
*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 make_hex_string(string str)
Returns a hex-encoded representation of a string.
nothing set_global_var_value(string name, auto value)
set the value of a global variable
*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...
binary parse_hex_string(string hexstr)
Parses a hex-encoded string and returns the binary object.
string backquote(string cmd, *reference< int > rc)
Executes a process and returns a string of the output (stdout only)
nothing load_module(string name, int warning_mask=WARN_MODULES)
Loads in a Qore module at run-time.
list< auto > hash_values(hash< auto > h)
Returns a list of all the values in the hash argument passed.
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 QURL_KEEP_BRACKETS
If the hostname or address is enclosed in square brackets, the brackets will be included in the "host...
Definition: ql_misc.dox.h:2209
const QURL_DECODE
Perform percent decoding on the "host", "username", and "password" fields.
Definition: ql_misc.dox.h:2202
const QURL_DECODE_PATH
Decodes all fields like QURL_DECODE plus also performs percent decoding on the "path" field.
Definition: ql_misc.dox.h:2204
const SIGUSR1
SIGUSR1.
Definition: ql_misc.dox.h:2441
const SIGXRES
SIGXRES.
Definition: ql_misc.dox.h:2455
const SIGALRM
SIGALRM.
Definition: ql_misc.dox.h:2369
const SIGHUP
SIGHUP.
Definition: ql_misc.dox.h:2387
const SIGTTOU
SIGTTOU.
Definition: ql_misc.dox.h:2437
const SIGLWP
SIGLWP.
Definition: ql_misc.dox.h:2407
const SIGCHLD
SIGCHLD.
Definition: ql_misc.dox.h:2375
const SIGSYS
SIGSYS.
Definition: ql_misc.dox.h:2425
const SIGPOLL
SIGPOLL.
Definition: ql_misc.dox.h:2411
const SIGABRT
SIGABRT.
Definition: ql_misc.dox.h:2367
const SIGWAITING
SIGWAITING.
Definition: ql_misc.dox.h:2447
const SIGVTALRM
SIGVTALRM.
Definition: ql_misc.dox.h:2445
const SIGTSTP
SIGTSTP.
Definition: ql_misc.dox.h:2433
const SIGXFSZ
SIGXFSZ.
Definition: ql_misc.dox.h:2453
const SIGBUS
SIGBUS.
Definition: ql_misc.dox.h:2371
const SIGSTKFLT
SIGSTKFLT.
Definition: ql_misc.dox.h:2421
const SIGPIPE
SIGPIPE.
Definition: ql_misc.dox.h:2409
const SIGPROF
SIGPROF.
Definition: ql_misc.dox.h:2413
const SIGILL
SIGILL.
Definition: ql_misc.dox.h:2389
const SIGCLD
SIGCLD.
Definition: ql_misc.dox.h:2377
const SIGURG
SIGURG.
Definition: ql_misc.dox.h:2439
const SIGTRAP
SIGTRAP.
Definition: ql_misc.dox.h:2431
const SIGTHAW
SIGTHAW.
Definition: ql_misc.dox.h:2429
const SIGCANCEL
SIGCANCEL.
Definition: ql_misc.dox.h:2373
const SIGSTOP
SIGSTOP.
Definition: ql_misc.dox.h:2423
const SIGWINCH
SIGWINCH.
Definition: ql_misc.dox.h:2449
const SIGEMT
SIGEMT.
Definition: ql_misc.dox.h:2381
const SIGINFO
SIGINFO.
Definition: ql_misc.dox.h:2391
const SIGFPE
SIGFPE.
Definition: ql_misc.dox.h:2383
const SIGLOST
SIGLOST.
Definition: ql_misc.dox.h:2405
const NameToSignal
maps signal names to signal values
Definition: ql_misc.dox.h:2319
const SIGKILL
SIGKILL.
Definition: ql_misc.dox.h:2403
const SignalToName
maps signal numbers (as a string key) to the symbolic name for the signal
Definition: ql_misc.dox.h:2457
const SIGQUIT
SIGQUIT.
Definition: ql_misc.dox.h:2417
const SIGIOT
SIGIOT.
Definition: ql_misc.dox.h:2397
const SIGTERM
SIGTERM.
Definition: ql_misc.dox.h:2427
const SIGTTIN
SIGTTIN.
Definition: ql_misc.dox.h:2435
const SIGUSR2
SIGUSR2.
Definition: ql_misc.dox.h:2443
const SIGCONT
SIGCONT.
Definition: ql_misc.dox.h:2379
const SIGIO
SIGIO.
Definition: ql_misc.dox.h:2395
const SIGXCPU
SIGXCPU.
Definition: ql_misc.dox.h:2451
const SIGSEGV
SIGSEGV.
Definition: ql_misc.dox.h:2419
const SIGJVM1
SIGJVM1.
Definition: ql_misc.dox.h:2399
const SIGFREEZE
SIGFREEZE.
Definition: ql_misc.dox.h:2385
const SIGINT
SIGINT.
Definition: ql_misc.dox.h:2393
const SIGJVM2
SIGJVM2.
Definition: ql_misc.dox.h:2401
const SIGPWR
SIGPWR.
Definition: ql_misc.dox.h:2415
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...
nothing remove_signal_handler(softint signal)
Removes a signal handler and returns the signal handling state to the default.
binary binary()
Always returns an empty binary object (of zero length)
const WARN_MODULES
The default warning mask for user modules.
Definition: QC_Program.dox.h:2056
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
a hash describing a parsed URL
Definition: ql_misc.dox.h:7
string host
the hostname given in the URL string, if any
Definition: ql_misc.dox.h:9
string path
the path given in the URL string, if present
Definition: ql_misc.dox.h:13
string username
the username of the URL, if present
Definition: ql_misc.dox.h:19
string password
the password given in the URL, if any
Definition: ql_misc.dox.h:11
int port
the port number given in the URL string, if any
Definition: ql_misc.dox.h:15
string protocol
the scheme or protocol of the URL, if present
Definition: ql_misc.dox.h:17