Qore Programming Language Reference Manual  0.9.2
ql_misc.dox.h
1 
3 namespace Qore {
8 
10 
28 nothing remove_signal_handler(softint signal);
29 
31 
52 nothing set_signal_handler(softint signal, code f);
53 
55 };
56 
58 namespace Qore {
63 
65 
87 string backquote(string cmd, *reference<int> rc);
88 
90 
97 nothing backquote();
98 
100 
117 auto call_builtin_function(string name, ...);
118 
120 
137 auto call_builtin_function_args(string name, *softlist<auto> vargs);
138 
140 
162 auto call_function(string name, ...);
163 
165 
182 auto call_function(code f, ...);
183 
185 
207 auto call_function_args(string name, *softlist<auto> vargs);
208 
210 
227 auto call_function_args(code f, *softlist<auto> vargs);
228 
230 
259 string decode_uri_request(string uri);
260 
262 
281 string decode_url(string url);
282 
284 
288 nothing decode_url();
289 
291 
322 string encode_uri_request(string url);
323 
325 
345 string encode_url(string url, softbool encode_all = False);
346 
348 
360 bool exists( ...);
361 
363 
372 bool existsFunction(string name);
373 
375 
386 bool existsFunction(code c);
387 
389 
393 nothing existsFunction();
394 
396 
410 bool exists_function(string name);
411 
413 
424 bool exists_function(code c);
425 
427 
435 *string functionType(string name);
436 
438 
442 nothing functionType();
443 
445 
455 *string function_type(string name);
456 
458 
471 *int getByte(string str, softint offset = 0);
472 
474 
478 nothing getByte();
479 
481 
494 *int getByte(binary b, softint offset = 0);
495 
497 
505 string getClassName(object obj);
506 
508 
512 nothing getClassName();
513 
515 
524 list<string> getFeatureList();
525 
527 
547 hash<string,hash<auto>> getModuleHash();
548 
550 
570 list<hash<auto>> getModuleList();
571 
573 
587 *int getWord32(string str, softint offset = 0);
588 
590 
604 *int getWord32(binary b, softint offset = 0);
605 
607 
611 nothing getWord32();
612 
614 
630 *int get_byte(string str, softint offset = 0);
631 
633 
649 *int get_byte(binary b, softint offset = 0);
650 
652 
667 string get_class_name(object obj);
668 
670 
677 string get_default_encoding();
678 
680 
698 string get_ex_pos(hash<auto> ex);
699 
701 
712 list<string> get_feature_list();
713 
715 
729 hash<auto> get_global_vars();
730 
732 
753 hash<auto> get_local_vars(int frame);
754 
756 
776 hash<string,hash<auto>> get_module_hash();
777 
779 
801 list<hash<auto>> get_module_list();
802 
804 
824 auto get_module_option(string module, string option);
825 
827 
839 int get_parse_options();
840 
842 
864 hash<auto> get_qore_library_info();
865 
867 
885 hash<string,hash<auto>> get_qore_option_hash();
886 
888 
904 list<hash<auto>> get_qore_option_list();
905 
907 
914 *string get_script_dir();
915 
917 
924 *string get_script_name();
925 
927 
934 *string get_script_path();
935 
937 
954 *int get_word_16(string str, softint offset = 0);
955 
957 
974 *int get_word_16(binary b, softint offset = 0);
975 
977 
994 *int get_word_16_lsb(string str, softint offset = 0);
995 
997 
1014 *int get_word_16_lsb(binary b, softint offset = 0);
1015 
1017 
1036 *int get_word_32(string str, softint offset = 0);
1037 
1039 
1058 *int get_word_32(binary b, softint offset = 0);
1059 
1061 
1080 *int get_word_32_lsb(string str, softint offset = 0);
1081 
1083 
1100 *int get_word_32_lsb(binary b, softint offset = 0);
1101 
1103 
1120 *int get_word_64(string str, softint offset = 0);
1121 
1123 
1140 *int get_word_64(binary b, softint offset = 0);
1141 
1143 
1160 *int get_word_64_lsb(string str, softint offset = 0);
1161 
1163 
1180 *int get_word_64_lsb(binary b, softint offset = 0);
1181 
1183 
1197 bool has_key(hash<auto> h, string key);
1198 
1200 
1209 bool has_key(object obj, string key);
1210 
1212 
1228 list<auto> hash_values(hash<auto> h);
1229 
1231 
1235 nothing hash_values();
1236 
1238 
1249 int hextoint(string str);
1250 
1252 
1256 nothing hextoint();
1257 
1259 
1275 string html_decode(string str);
1276 
1278 
1282 nothing html_decode();
1283 
1285 
1301 string html_encode(string str);
1302 
1304 
1308 nothing html_encode();
1309 
1311 
1336 nothing load_module(string name, int warning_mask = WARN_MODULES);
1337 
1339 
1346 nothing load_module();
1347 
1349 
1374 *hash<ExceptionInfo> load_module_warn(string name, int warning_mask = WARN_MODULES);
1375 
1377 
1394 nothing load_user_module_with_program(string name, Qore::Program pgm);
1395 
1397 
1415 string makeBase64String(string str, softint maxlinelen = -1);
1416 
1418 
1436 string makeBase64String(binary bin, softint maxlinelen = -1);
1437 
1439 
1443 nothing makeBase64String();
1444 
1446 
1460 string makeHexString(string str);
1461 
1463 
1477 string makeHexString(binary bin);
1478 
1480 
1484 nothing makeHexString();
1485 
1487 
1508 string make_base64_string(string str, softint maxlinelen = -1);
1509 
1511 
1532 string make_base64_string(binary bin, softint maxlinelen = -1);
1533 
1535 
1554 string make_hex_string(string str);
1555 
1557 
1576 string make_hex_string(binary bin);
1577 
1579 
1604 *hash<auto> parse(string code, string label, *softint warning_mask, *string source, *softint offset, softbool format_label = True);
1605 
1607 
1614 nothing parse();
1615 
1617 
1634 binary parseBase64String(string str);
1635 
1637 
1641 nothing parseBase64String();
1642 
1644 
1664 string parseBase64StringToString(string str, *string encoding);
1665 
1667 
1671 nothing parseBase64StringToString();
1672 
1674 
1689 binary parseHexString(string hexstr);
1690 
1692 
1696 nothing parseHexString();
1697 
1699 
1722 *hash parseURL(string url, bool keep_brackets = False);
1723 
1725 
1729 nothing parseURL();
1730 
1732 
1754 binary parse_base64_string(string str);
1755 
1757 
1782 string parse_base64_string_to_string(string str, *string encoding);
1783 
1785 
1805 binary parse_hex_string(string hexstr);
1806 
1808 
1830 hash parse_url(string url, bool keep_brackets = False);
1831 
1833 
1854 nothing reload_module(string name);
1855 
1857 
1873 nothing set_global_var_value(string name, auto value);
1874 
1876 
1896 nothing set_local_var_value(int frame, string var, auto value);
1897 
1899 
1915 nothing set_module_option(string module, string option, auto value);
1916 
1918 
1932  set_return_value(auto val);
1933 
1935 
1944 string splice(string str);
1945 
1947 
1961 string splice(string str, softint start);
1962 
1964 
1980 string splice(string str, softint start, softint len, *string nstr);
1981 
1983 
1995 list<auto> splice(list<auto> l, softint start);
1996 
1998 
2013 list<auto> splice(list<auto> l, softint start, softint len);
2014 
2016 
2032 list<auto> splice(list<auto> l, softint start, softint len, softlist<auto> nlist);
2033 
2035 
2039 nothing splice();
2040 
2042 
2054 int strtoint(string num, softint base = 10);
2055 
2057 
2061 nothing strtoint();
2062 
2064 };
2065 
2067 namespace Qore {
2075 
2077 
2079  const CE_ALL = CE_ALL;
2081 
2087  const CE_HTML = CE_HTML;
2089 
2095 
2101 
2112  const CE_XML = CE_XML;
2114 };
2115 
2117 namespace Qore {
2125 
2127 
2129  const CD_ALL = CD_ALL;
2131 
2137  const CD_HTML = CD_HTML;
2139 
2143 
2149 
2160  const CD_XML = CD_XML;
2162 };
2163 
2165 namespace Qore {
2170 
2172  const NameToSignal = (
2173  "SIGABRT": SIGABRT,
2174  "SIGALRM": SIGALRM,
2175  "SIGBUS": SIGBUS,
2176  "SIGCANCEL": SIGCANCEL,
2177  "SIGCHLD": SIGCHLD,
2178  "SIGCLD": SIGCLD,
2179  "SIGCONT": SIGCONT,
2180  "SIGEMT": SIGEMT,
2181  "SIGFPE": SIGFPE,
2182  "SIGFREEZE": SIGFREEZE,
2183  "SIGHUP": SIGHUP,
2184  "SIGILL": SIGILL,
2185  "SIGINFO": SIGINFO,
2186  "SIGINT": SIGINT,
2187  "SIGIO": SIGIO,
2188  "SIGIOT": SIGIOT,
2189  "SIGJVM1": SIGJVM1,
2190  "SIGJVM2": SIGJVM2,
2191  "SIGKILL": SIGKILL,
2192  "SIGLOST": SIGLOST,
2193  "SIGLWP": SIGLWP,
2194  "SIGPIPE": SIGPIPE,
2195  "SIGPOLL": SIGPOLL,
2196  "SIGPROF": SIGPROF,
2197  "SIGPWR": SIGPWR,
2198  "SIGQUIT": SIGQUIT,
2199  "SIGSEGV": SIGSEGV,
2200  "SIGSTKFLT": SIGSTKFLT,
2201  "SIGSTOP": SIGSTOP,
2202  "SIGSYS": SIGSYS,
2203  "SIGTERM": SIGTERM,
2204  "SIGTHAW": SIGTHAW,
2205  "SIGTRAP": SIGTRAP,
2206  "SIGTSTP": SIGTSTP,
2207  "SIGTTIN": SIGTTIN,
2208  "SIGTTOU": SIGTTOU,
2209  "SIGURG": SIGURG,
2210  "SIGUSR1": SIGUSR1,
2211  "SIGUSR2": SIGUSR2,
2212  "SIGVTALRM": SIGVTALRM,
2213  "SIGWAITING": SIGWAITING,
2214  "SIGWINCH": SIGWINCH,
2215  "SIGXCPU": SIGXCPU,
2216  "SIGXFSZ": SIGXFSZ,
2217  "SIGXRES": SIGXRES,
2218  );
2220  const SIGABRT = SIGABRT;
2222  const SIGALRM = SIGALRM;
2224  const SIGBUS = SIGBUS;
2228  const SIGCHLD = SIGCHLD;
2230  const SIGCLD = SIGCLD;
2232  const SIGCONT = SIGCONT;
2234  const SIGEMT = SIGEMT;
2236  const SIGFPE = SIGFPE;
2240  const SIGHUP = SIGHUP;
2242  const SIGILL = SIGILL;
2244  const SIGINFO = SIGINFO;
2246  const SIGINT = SIGINT;
2248  const SIGIO = SIGIO;
2250  const SIGIOT = SIGIOT;
2252  const SIGJVM1 = SIGJVM1;
2254  const SIGJVM2 = SIGJVM2;
2256  const SIGKILL = SIGKILL;
2258  const SIGLOST = SIGLOST;
2260  const SIGLWP = SIGLWP;
2262  const SIGPIPE = SIGPIPE;
2264  const SIGPOLL = SIGPOLL;
2266  const SIGPROF = SIGPROF;
2268  const SIGPWR = SIGPWR;
2270  const SIGQUIT = SIGQUIT;
2272  const SIGSEGV = SIGSEGV;
2276  const SIGSTOP = SIGSTOP;
2278  const SIGSYS = SIGSYS;
2280  const SIGTERM = SIGTERM;
2282  const SIGTHAW = SIGTHAW;
2284  const SIGTRAP = SIGTRAP;
2286  const SIGTSTP = SIGTSTP;
2288  const SIGTTIN = SIGTTIN;
2290  const SIGTTOU = SIGTTOU;
2292  const SIGURG = SIGURG;
2294  const SIGUSR1 = SIGUSR1;
2296  const SIGUSR2 = SIGUSR2;
2304  const SIGXCPU = SIGXCPU;
2306  const SIGXFSZ = SIGXFSZ;
2308  const SIGXRES = SIGXRES;
2310  const SignalToName = (
2311  SIGABRT: "SIGABRT",
2312  SIGALRM: "SIGALRM",
2313  SIGBUS: "SIGBUS",
2314  SIGCANCEL: "SIGCANCEL",
2315  SIGCHLD: "SIGCHLD",
2316  SIGCONT: "SIGCONT",
2317  SIGEMT: "SIGEMT",
2318  SIGFPE: "SIGFPE",
2319  SIGFREEZE: "SIGFREEZE",
2320  SIGHUP: "SIGHUP",
2321  SIGILL: "SIGILL",
2322  SIGINFO: "SIGINFO",
2323  SIGINT: "SIGINT",
2324  SIGIO: "SIGIO",
2325  SIGIOT: "SIGIOT",
2326  SIGJVM1: "SIGJVM1",
2327  SIGJVM2: "SIGJVM2",
2328  SIGKILL: "SIGKILL",
2329  SIGLOST: "SIGLOST",
2330  SIGLWP: "SIGLWP",
2331  SIGPIPE: "SIGPIPE",
2332  SIGPOLL: "SIGPOLL",
2333  SIGPROF: "SIGPROF",
2334  SIGPWR: "SIGPWR",
2335  SIGQUIT: "SIGQUIT",
2336  SIGSEGV: "SIGSEGV",
2337  SIGSTKSZ: "SIGSTKSZ",
2338  SIGSTOP: "SIGSTOP",
2339  SIGSYS: "SIGSYS",
2340  SIGTERM: "SIGTERM",
2341  SIGTHAW: "SIGTHAW",
2342  SIGTRAP: "SIGTRAP",
2343  SIGTSTP: "SIGTSTP",
2344  SIGTTIN: "SIGTTIN",
2345  SIGTTOU: "SIGTTOU",
2346  SIGURG: "SIGURG",
2347  SIGUSR1: "SIGUSR1",
2348  SIGUSR2: "SIGUSR2",
2349  SIGVTALRM: "SIGVTALRM",
2350  SIGWAITING: "SIGWAITING",
2351  SIGWINCH: "SIGWINCH",
2352  SIGXCPU: "SIGXCPU",
2353  SIGXFSZ: "SIGXFSZ",
2354  SIGXRES: "SIGXRES",
2355  );
2357 };
const SIGKILL
SIGKILL.
Definition: ql_misc.dox.h:2256
*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:2278
const CE_ALL
code for encoding everything
Definition: ql_misc.dox.h:2079
const CE_XML
code for encoding XML entities
Definition: ql_misc.dox.h:2112
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:2244
*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
binary parseHexString(string hexstr)
Parses a hex-encoded string and returns the binary object.
const SIGURG
SIGURG.
Definition: ql_misc.dox.h:2292
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.
const SIGPROF
SIGPROF.
Definition: ql_misc.dox.h:2266
const SIGSTKFLT
SIGSTKFLT.
Definition: ql_misc.dox.h:2274
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:2224
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:2290
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:2270
*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:2302
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:2147
const SIGPWR
SIGPWR.
Definition: ql_misc.dox.h:2268
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:2248
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:2099
const SIGCLD
SIGCLD.
Definition: ql_misc.dox.h:2230
const SIGUSR2
SIGUSR2.
Definition: ql_misc.dox.h:2296
*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:2298
*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...
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:2276
const SIGTERM
SIGTERM.
Definition: ql_misc.dox.h:2280
bool exists_function(string name)
Returns True if the function exists in the current program&#39;s function name space. ...
const SIGALRM
SIGALRM.
Definition: ql_misc.dox.h:2222
*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:2137
const SIGTRAP
SIGTRAP.
Definition: ql_misc.dox.h:2284
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:2232
const CE_HTML
code for encoding HTML 5 symbols as named character references
Definition: ql_misc.dox.h:2087
nothing set_global_var_value(string name, auto value)
set the value of a global variable
const SIGLWP
SIGLWP.
Definition: ql_misc.dox.h:2260
string make_hex_string(string str)
Returns a hex-encoded representation of a string.
const SIGTTIN
SIGTTIN.
Definition: ql_misc.dox.h:2288
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:2254
const SIGCHLD
SIGCHLD.
Definition: ql_misc.dox.h:2228
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:2272
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...
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:2234
const SIGABRT
SIGABRT.
Definition: ql_misc.dox.h:2220
const CD_XML
code for decoding XML entities
Definition: ql_misc.dox.h:2160
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:2310
*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:2238
*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:2264
const SIGXCPU
SIGXCPU.
Definition: ql_misc.dox.h:2304
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:2240
const SIGILL
SIGILL.
Definition: ql_misc.dox.h:2242
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&#39;s code, tagged with the given label.
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:2252
const SIGTSTP
SIGTSTP.
Definition: ql_misc.dox.h:2286
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:2236
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:2294
nothing reload_module(string name)
Reloads an already-loaded Qore module subject to code injection at run-time into Qore; the module&#39;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:2300
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:2141
bool existsFunction(string name)
Returns True if the function exists in the current program&#39;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 &#39;%&#39; characters with &#39;%25&#39;, spaces (&#39; &#39;) with &#39;%20&#39;, and non-ascii charac...
const SIGINT
SIGINT.
Definition: ql_misc.dox.h:2246
*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:2129
const NameToSignal
maps signal names to signal values
Definition: ql_misc.dox.h:2172
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:2306
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
hash hash(object obj)
Returns a hash of an object&#39;s members.
const SIGIOT
SIGIOT.
Definition: ql_misc.dox.h:2250
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:1866
const SIGPIPE
SIGPIPE.
Definition: ql_misc.dox.h:2262
const SIGCANCEL
SIGCANCEL.
Definition: ql_misc.dox.h:2226
const CE_NONASCII
code for encoding all non-ASCII symbols as numeric character references
Definition: ql_misc.dox.h:2093
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:2308
const SIGTHAW
SIGTHAW.
Definition: ql_misc.dox.h:2282
const SIGLOST
SIGLOST.
Definition: ql_misc.dox.h:2258