Qore Programming Language Reference Manual  0.9.3
ql_misc.dox.h
1 namespace Qore {
4 
6 struct UrlInfo {
8  string host;
10  string password;
12  string path;
14  int port;
16  string protocol;
18  string username;
19 };
20 };
21 
23 namespace Qore {
28 
30 
48 nothing remove_signal_handler(softint signal);
49 
51 
72 nothing set_signal_handler(softint signal, code f);
73 
75 };
76 
78 namespace Qore {
83 
85 
107 string backquote(string cmd, *reference<int> rc);
108 
110 
117 nothing backquote();
118 
120 
137 auto call_builtin_function(string name, ...);
138 
140 
157 auto call_builtin_function_args(string name, *softlist<auto> vargs);
158 
160 
182 auto call_function(string name, ...);
183 
185 
202 auto call_function(code f, ...);
203 
205 
227 auto call_function_args(string name, *softlist<auto> vargs);
228 
230 
247 auto call_function_args(code f, *softlist<auto> vargs);
248 
250 
279 string decode_uri_request(string uri);
280 
282 
301 string decode_url(string url);
302 
304 
308 nothing decode_url();
309 
311 
342 string encode_uri_request(string url);
343 
345 
365 string encode_url(string url, softbool encode_all = False);
366 
368 
380 bool exists( ...);
381 
383 
392 bool existsFunction(string name);
393 
395 
406 bool existsFunction(code c);
407 
409 
413 nothing existsFunction();
414 
416 
430 bool exists_function(string name);
431 
433 
444 bool exists_function(code c);
445 
447 
455 *string functionType(string name);
456 
458 
462 nothing functionType();
463 
465 
475 *string function_type(string name);
476 
478 
491 *int getByte(string str, softint offset = 0);
492 
494 
498 nothing getByte();
499 
501 
514 *int getByte(binary b, softint offset = 0);
515 
517 
525 string getClassName(object obj);
526 
528 
532 nothing getClassName();
533 
535 
544 list<string> getFeatureList();
545 
547 
567 hash<string,hash<auto>> getModuleHash();
568 
570 
590 list<hash<auto>> getModuleList();
591 
593 
607 *int getWord32(string str, softint offset = 0);
608 
610 
624 *int getWord32(binary b, softint offset = 0);
625 
627 
631 nothing getWord32();
632 
634 
650 *int get_byte(string str, softint offset = 0);
651 
653 
669 *int get_byte(binary b, softint offset = 0);
670 
672 
687 string get_class_name(object obj);
688 
690 
697 string get_default_encoding();
698 
700 
718 string get_ex_pos(hash<auto> ex);
719 
721 
732 list<string> get_feature_list();
733 
735 
749 hash<auto> get_global_vars();
750 
752 
773 hash<auto> get_local_vars(int frame);
774 
776 
796 hash<string,hash<auto>> get_module_hash();
797 
799 
821 list<hash<auto>> get_module_list();
822 
824 
844 auto get_module_option(string module, string option);
845 
847 
859 int get_parse_options();
860 
862 
884 hash<auto> get_qore_library_info();
885 
887 
905 hash<string,hash<auto>> get_qore_option_hash();
906 
908 
924 list<hash<auto>> get_qore_option_list();
925 
927 
934 *string get_script_dir();
935 
937 
944 *string get_script_name();
945 
947 
954 *string get_script_path();
955 
957 
974 *int get_word_16(string str, softint offset = 0);
975 
977 
994 *int get_word_16(binary b, softint offset = 0);
995 
997 
1014 *int get_word_16_lsb(string str, softint offset = 0);
1015 
1017 
1034 *int get_word_16_lsb(binary b, softint offset = 0);
1035 
1037 
1056 *int get_word_32(string str, softint offset = 0);
1057 
1059 
1078 *int get_word_32(binary b, softint offset = 0);
1079 
1081 
1100 *int get_word_32_lsb(string str, softint offset = 0);
1101 
1103 
1120 *int get_word_32_lsb(binary b, softint offset = 0);
1121 
1123 
1140 *int get_word_64(string str, softint offset = 0);
1141 
1143 
1160 *int get_word_64(binary b, softint offset = 0);
1161 
1163 
1180 *int get_word_64_lsb(string str, softint offset = 0);
1181 
1183 
1200 *int get_word_64_lsb(binary b, softint offset = 0);
1201 
1203 
1217 bool has_key(hash<auto> h, string key);
1218 
1220 
1229 bool has_key(object obj, string key);
1230 
1232 
1248 list<auto> hash_values(hash<auto> h);
1249 
1251 
1255 nothing hash_values();
1256 
1258 
1269 int hextoint(string str);
1270 
1272 
1276 nothing hextoint();
1277 
1279 
1295 string html_decode(string str);
1296 
1298 
1302 nothing html_decode();
1303 
1305 
1321 string html_encode(string str);
1322 
1324 
1328 nothing html_encode();
1329 
1331 
1356 nothing load_module(string name, int warning_mask = WARN_MODULES);
1357 
1359 
1366 nothing load_module();
1367 
1369 
1394 *hash<ExceptionInfo> load_module_warn(string name, int warning_mask = WARN_MODULES);
1395 
1397 
1414 nothing load_user_module_with_program(string name, Qore::Program pgm);
1415 
1417 
1435 string makeBase64String(string str, softint maxlinelen = -1);
1436 
1438 
1456 string makeBase64String(binary bin, softint maxlinelen = -1);
1457 
1459 
1463 nothing makeBase64String();
1464 
1466 
1480 string makeHexString(string str);
1481 
1483 
1497 string makeHexString(binary bin);
1498 
1500 
1504 nothing makeHexString();
1505 
1507 
1528 string make_base64_string(string str, softint maxlinelen = -1);
1529 
1531 
1552 string make_base64_string(binary bin, softint maxlinelen = -1);
1553 
1555 
1574 string make_hex_string(string str);
1575 
1577 
1596 string make_hex_string(binary bin);
1597 
1599 
1624 *hash<auto> parse(string code, string label, *softint warning_mask, *string source, *softint offset, softbool format_label = True);
1625 
1627 
1634 nothing parse();
1635 
1637 
1654 binary parseBase64String(string str);
1655 
1657 
1661 nothing parseBase64String();
1662 
1664 
1684 string parseBase64StringToString(string str, *string encoding);
1685 
1687 
1691 nothing parseBase64StringToString();
1692 
1694 
1709 binary parseHexString(string hexstr);
1710 
1712 
1716 nothing parseHexString();
1717 
1719 
1742 *hash<UrlInfo> parseURL(string url, bool keep_brackets = False);
1743 
1745 
1749 nothing parseURL();
1750 
1752 
1774 binary parse_base64_string(string str);
1775 
1777 
1802 string parse_base64_string_to_string(string str, *string encoding);
1803 
1805 
1825 binary parse_hex_string(string hexstr);
1826 
1828 
1850 hash<UrlInfo> parse_url(string url, bool keep_brackets = False);
1851 
1853 
1874 nothing reload_module(string name);
1875 
1877 
1893 nothing set_global_var_value(string name, auto value);
1894 
1896 
1916 nothing set_local_var_value(int frame, string var, auto value);
1917 
1919 
1935 nothing set_module_option(string module, string option, auto value);
1936 
1938 
1952  set_return_value(auto val);
1953 
1955 
1964 string splice(string str);
1965 
1967 
1981 string splice(string str, softint start);
1982 
1984 
2000 string splice(string str, softint start, softint len, *string nstr);
2001 
2003 
2015 list<auto> splice(list<auto> l, softint start);
2016 
2018 
2033 list<auto> splice(list<auto> l, softint start, softint len);
2034 
2036 
2052 list<auto> splice(list<auto> l, softint start, softint len, softlist<auto> nlist);
2053 
2055 
2059 nothing splice();
2060 
2062 
2074 int strtoint(string num, softint base = 10);
2075 
2077 
2081 nothing strtoint();
2082 
2084 };
2085 
2087 namespace Qore {
2095 
2097 
2099  const CE_ALL = CE_ALL;
2101 
2107  const CE_HTML = CE_HTML;
2109 
2115 
2121 
2132  const CE_XML = CE_XML;
2134 };
2135 
2137 namespace Qore {
2145 
2147 
2149  const CD_ALL = CD_ALL;
2151 
2157  const CD_HTML = CD_HTML;
2159 
2163 
2169 
2180  const CD_XML = CD_XML;
2182 };
2183 
2185 namespace Qore {
2190 
2192  const NameToSignal = (
2193  "SIGABRT": SIGABRT,
2194  "SIGALRM": SIGALRM,
2195  "SIGBUS": SIGBUS,
2196  "SIGCANCEL": SIGCANCEL,
2197  "SIGCHLD": SIGCHLD,
2198  "SIGCLD": SIGCLD,
2199  "SIGCONT": SIGCONT,
2200  "SIGEMT": SIGEMT,
2201  "SIGFPE": SIGFPE,
2202  "SIGFREEZE": SIGFREEZE,
2203  "SIGHUP": SIGHUP,
2204  "SIGILL": SIGILL,
2205  "SIGINFO": SIGINFO,
2206  "SIGINT": SIGINT,
2207  "SIGIO": SIGIO,
2208  "SIGIOT": SIGIOT,
2209  "SIGJVM1": SIGJVM1,
2210  "SIGJVM2": SIGJVM2,
2211  "SIGKILL": SIGKILL,
2212  "SIGLOST": SIGLOST,
2213  "SIGLWP": SIGLWP,
2214  "SIGPIPE": SIGPIPE,
2215  "SIGPOLL": SIGPOLL,
2216  "SIGPROF": SIGPROF,
2217  "SIGPWR": SIGPWR,
2218  "SIGQUIT": SIGQUIT,
2219  "SIGSEGV": SIGSEGV,
2220  "SIGSTKFLT": SIGSTKFLT,
2221  "SIGSTOP": SIGSTOP,
2222  "SIGSYS": SIGSYS,
2223  "SIGTERM": SIGTERM,
2224  "SIGTHAW": SIGTHAW,
2225  "SIGTRAP": SIGTRAP,
2226  "SIGTSTP": SIGTSTP,
2227  "SIGTTIN": SIGTTIN,
2228  "SIGTTOU": SIGTTOU,
2229  "SIGURG": SIGURG,
2230  "SIGUSR1": SIGUSR1,
2231  "SIGUSR2": SIGUSR2,
2232  "SIGVTALRM": SIGVTALRM,
2233  "SIGWAITING": SIGWAITING,
2234  "SIGWINCH": SIGWINCH,
2235  "SIGXCPU": SIGXCPU,
2236  "SIGXFSZ": SIGXFSZ,
2237  "SIGXRES": SIGXRES,
2238  );
2240  const SIGABRT = SIGABRT;
2242  const SIGALRM = SIGALRM;
2244  const SIGBUS = SIGBUS;
2248  const SIGCHLD = SIGCHLD;
2250  const SIGCLD = SIGCLD;
2252  const SIGCONT = SIGCONT;
2254  const SIGEMT = SIGEMT;
2256  const SIGFPE = SIGFPE;
2260  const SIGHUP = SIGHUP;
2262  const SIGILL = SIGILL;
2264  const SIGINFO = SIGINFO;
2266  const SIGINT = SIGINT;
2268  const SIGIO = SIGIO;
2270  const SIGIOT = SIGIOT;
2272  const SIGJVM1 = SIGJVM1;
2274  const SIGJVM2 = SIGJVM2;
2276  const SIGKILL = SIGKILL;
2278  const SIGLOST = SIGLOST;
2280  const SIGLWP = SIGLWP;
2282  const SIGPIPE = SIGPIPE;
2284  const SIGPOLL = SIGPOLL;
2286  const SIGPROF = SIGPROF;
2288  const SIGPWR = SIGPWR;
2290  const SIGQUIT = SIGQUIT;
2292  const SIGSEGV = SIGSEGV;
2296  const SIGSTOP = SIGSTOP;
2298  const SIGSYS = SIGSYS;
2300  const SIGTERM = SIGTERM;
2302  const SIGTHAW = SIGTHAW;
2304  const SIGTRAP = SIGTRAP;
2306  const SIGTSTP = SIGTSTP;
2308  const SIGTTIN = SIGTTIN;
2310  const SIGTTOU = SIGTTOU;
2312  const SIGURG = SIGURG;
2314  const SIGUSR1 = SIGUSR1;
2316  const SIGUSR2 = SIGUSR2;
2324  const SIGXCPU = SIGXCPU;
2326  const SIGXFSZ = SIGXFSZ;
2328  const SIGXRES = SIGXRES;
2330  const SignalToName = (
2331  SIGABRT: "SIGABRT",
2332  SIGALRM: "SIGALRM",
2333  SIGBUS: "SIGBUS",
2334  SIGCANCEL: "SIGCANCEL",
2335  SIGCHLD: "SIGCHLD",
2336  SIGCONT: "SIGCONT",
2337  SIGEMT: "SIGEMT",
2338  SIGFPE: "SIGFPE",
2339  SIGFREEZE: "SIGFREEZE",
2340  SIGHUP: "SIGHUP",
2341  SIGILL: "SIGILL",
2342  SIGINFO: "SIGINFO",
2343  SIGINT: "SIGINT",
2344  SIGIO: "SIGIO",
2345  SIGIOT: "SIGIOT",
2346  SIGJVM1: "SIGJVM1",
2347  SIGJVM2: "SIGJVM2",
2348  SIGKILL: "SIGKILL",
2349  SIGLOST: "SIGLOST",
2350  SIGLWP: "SIGLWP",
2351  SIGPIPE: "SIGPIPE",
2352  SIGPOLL: "SIGPOLL",
2353  SIGPROF: "SIGPROF",
2354  SIGPWR: "SIGPWR",
2355  SIGQUIT: "SIGQUIT",
2356  SIGSEGV: "SIGSEGV",
2357  SIGSTKSZ: "SIGSTKSZ",
2358  SIGSTOP: "SIGSTOP",
2359  SIGSYS: "SIGSYS",
2360  SIGTERM: "SIGTERM",
2361  SIGTHAW: "SIGTHAW",
2362  SIGTRAP: "SIGTRAP",
2363  SIGTSTP: "SIGTSTP",
2364  SIGTTIN: "SIGTTIN",
2365  SIGTTOU: "SIGTTOU",
2366  SIGURG: "SIGURG",
2367  SIGUSR1: "SIGUSR1",
2368  SIGUSR2: "SIGUSR2",
2369  SIGVTALRM: "SIGVTALRM",
2370  SIGWAITING: "SIGWAITING",
2371  SIGWINCH: "SIGWINCH",
2372  SIGXCPU: "SIGXCPU",
2373  SIGXFSZ: "SIGXFSZ",
2374  SIGXRES: "SIGXRES",
2375  );
2377 };
const SIGKILL
SIGKILL.
Definition: ql_misc.dox.h:2276
*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:2298
const CE_ALL
code for encoding everything
Definition: ql_misc.dox.h:2099
const CE_XML
code for encoding XML entities
Definition: ql_misc.dox.h:2132
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...
const SIGINFO
SIGINFO.
Definition: ql_misc.dox.h:2264
*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.
hash< auto > get_global_vars()
returns a hash of global variables
*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...
binary parseHexString(string hexstr)
Parses a hex-encoded string and returns the binary object.
const SIGURG
SIGURG.
Definition: ql_misc.dox.h:2312
string parse_base64_string_to_string(string str, *string encoding)
Parses a base64 encoded string and returns a string of the decoded data.
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...
list< hash< auto > > get_module_list()
Returns a list of hashes describing the currently-loaded Qore modules.
int port
the port number given in the URL string, if any
Definition: ql_misc.dox.h:14
const SIGPROF
SIGPROF.
Definition: ql_misc.dox.h:2286
const SIGSTKFLT
SIGSTKFLT.
Definition: ql_misc.dox.h:2294
Program objects allow Qore programs to support subprograms with the option to restrict capabilities,...
Definition: QC_Program.dox.h:54
list< string > getFeatureList()
Returns a list of strings of the builtin and module-supplied features of Qore.
const SIGBUS
SIGBUS.
Definition: ql_misc.dox.h:2244
set_return_value(auto val)
sets the return value for a Program object when running with %exec-class
*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:2310
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:2290
*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:2322
string get_ex_pos(hash< auto > ex)
returns a descriptive string for an exception location; the source and offset information will also b...
list< hash< auto > > get_qore_option_list()
Returns a list of hashes giving information about Qore library options for the current build.
const CD_XHTML
code for decoding XHTML named character references to symbols
Definition: ql_misc.dox.h:2167
const SIGPWR
SIGPWR.
Definition: ql_misc.dox.h:2288
const True
logical True
Definition: qc_qore.dox.h:94
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...
const SIGIO
SIGIO.
Definition: ql_misc.dox.h:2268
string encode_uri_request(string url)
Encodes URI requests by substituting special characters in the path with percent-encoded equivalents ...
const CE_XHTML
code for encoding XHTML entities
Definition: ql_misc.dox.h:2119
const SIGCLD
SIGCLD.
Definition: ql_misc.dox.h:2250
const SIGUSR2
SIGUSR2.
Definition: ql_misc.dox.h:2316
*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:2318
auto call_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:2296
const SIGTERM
SIGTERM.
Definition: ql_misc.dox.h:2300
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:2242
*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 protocol
the scheme or protocol of the URL, if present
Definition: ql_misc.dox.h:16
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:2157
const SIGTRAP
SIGTRAP.
Definition: ql_misc.dox.h:2304
const False
logical False
Definition: qc_qore.dox.h:92
string backquote(string cmd, *reference< int > rc)
Executes a process and returns a string of the output (stdout only)
const SIGCONT
SIGCONT.
Definition: ql_misc.dox.h:2252
const CE_HTML
code for encoding HTML 5 symbols as named character references
Definition: ql_misc.dox.h:2107
nothing set_global_var_value(string name, auto value)
set the value of a global variable
const SIGLWP
SIGLWP.
Definition: ql_misc.dox.h:2280
string make_hex_string(string str)
Returns a hex-encoded representation of a string.
const SIGTTIN
SIGTTIN.
Definition: ql_misc.dox.h:2308
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.
*hash< ExceptionInfo > load_module_warn(string name, int warning_mask=WARN_MODULES)
Loads in a Qore module at run-time.
auto call_builtin_function(string name,...)
Calls a function and returns the return value, passing the remaining arguments after the function nam...
*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.
hash< auto > get_local_vars(int frame)
retrieves a hash of local variables for the given stack frame
list< string > get_feature_list()
Returns a list of strings of the builtin and module-supplied features of Qore.
const SIGJVM2
SIGJVM2.
Definition: ql_misc.dox.h:2274
const SIGCHLD
SIGCHLD.
Definition: ql_misc.dox.h:2248
nothing set_module_option(string module, string option, auto value)
set the given module option
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 ...
*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:2292
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...
string password
the password given in the URL, if any
Definition: ql_misc.dox.h:10
a hash describing a parsed URL
Definition: ql_misc.dox.h:6
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
string host
the hostname given in the URL string, if any
Definition: ql_misc.dox.h:8
const SIGEMT
SIGEMT.
Definition: ql_misc.dox.h:2254
const SIGABRT
SIGABRT.
Definition: ql_misc.dox.h:2240
const CD_XML
code for decoding XML entities
Definition: ql_misc.dox.h:2180
hash< auto > get_qore_library_info()
Returns a hash of library build and version info.
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:2330
*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:2258
*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.
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)...
const SIGPOLL
SIGPOLL.
Definition: ql_misc.dox.h:2284
const SIGXCPU
SIGXCPU.
Definition: ql_misc.dox.h:2324
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:2260
const SIGILL
SIGILL.
Definition: ql_misc.dox.h:2262
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< 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.
string username
the username of the URL, if present
Definition: ql_misc.dox.h:18
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:2272
string path
the path given in the URL string, if present
Definition: ql_misc.dox.h:12
const SIGTSTP
SIGTSTP.
Definition: ql_misc.dox.h:2306
list< auto > hash_values(hash< auto > h)
Returns a list of all the values in the hash argument passed.
const SIGFPE
SIGFPE.
Definition: ql_misc.dox.h:2256
list< hash< auto > > getModuleList()
Returns a list of hashes describing the currently-loaded Qore modules.
*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:2314
nothing reload_module(string name)
Reloads an already-loaded Qore module subject to code injection at run-time into Qore; the module's c...
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
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:2320
hash< string, hash< auto > > getModuleHash()
Returns a hash of hashes describing the currently-loaded Qore modules; the top-level hash keys are th...
const CD_NUM_REF
code for decoding numeric character references to symbols
Definition: ql_misc.dox.h:2161
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 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:2266
*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...
auto get_module_option(string module, string option)
returns the given global module option
const CD_ALL
code for decoding everything
Definition: ql_misc.dox.h:2149
const NameToSignal
maps signal names to signal values
Definition: ql_misc.dox.h:2192
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:2326
nothing load_module(string name, int warning_mask=WARN_MODULES)
Loads in a Qore module at run-time.
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
const SIGIOT
SIGIOT.
Definition: ql_misc.dox.h:2270
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...
const WARN_MODULES
The default warning mask for user modules.
Definition: QC_Program.dox.h:1886
const SIGPIPE
SIGPIPE.
Definition: ql_misc.dox.h:2282
const SIGCANCEL
SIGCANCEL.
Definition: ql_misc.dox.h:2246
hash< UrlInfo > 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...
const CE_NONASCII
code for encoding all non-ASCII symbols as numeric character references
Definition: ql_misc.dox.h:2113
hash< string, hash< auto > > get_qore_option_hash()
Returns a hash of hashes giving information about Qore library options for the current build.
const SIGXRES
SIGXRES.
Definition: ql_misc.dox.h:2328
const SIGTHAW
SIGTHAW.
Definition: ql_misc.dox.h:2302
const SIGLOST
SIGLOST.
Definition: ql_misc.dox.h:2278