| Qore Programming Language Reference Manual 1.0.8

ql_misc.dox.h
1
3 namespace Qore {
5
7 struct UrlInfo {
9 string host;
11 string password;
13 string path;
15 int port;
17 string protocol;
19 string username;
20 };
21 }
22
24 namespace Qore {
28
30
49 nothing remove_signal_handler(softint signal);
50
52
73 nothing set_signal_handler(softint signal, code f);
74
76 }
77
79 namespace Qore {
83
85
108 string backquote(string cmd, *reference<int> rc);
109
111
118 nothing backquote();
119
121
138 auto call_builtin_function(string name, ...);
139
141
158 auto call_builtin_function_args(string name, *softlist<auto> vargs);
159
161
183 auto call_function(string name, ...);
184
186
203 auto call_function(code f, ...);
204
206
228 auto call_function_args(string name, *softlist<auto> vargs);
229
231
248 auto call_function_args(code f, *softlist<auto> vargs);
249
251
280 string decode_uri_request(string uri);
281
283
302 string decode_url(string url);
303
305
309 nothing decode_url();
310
312
343 string encode_uri_request(string url);
344
346
366 string encode_url(string url, softbool encode_all = False);
367
369
381 bool exists( ...);
382
384
393 bool existsFunction(string name);
394
396
407 bool existsFunction(code c);
408
410
414 nothing existsFunction();
415
417
431 bool exists_function(string name);
432
434
445 bool exists_function(code c);
446
448
456 *string functionType(string name);
457
459
463 nothing functionType();
464
466
476 *string function_type(string name);
477
479
492 *int getByte(string str, softint offset = 0);
493
495
499 nothing getByte();
500
502
515 *int getByte(binary b, softint offset = 0);
516
518
526 string getClassName(object obj);
527
529
533 nothing getClassName();
534
536
545 list<string> getFeatureList();
546
548
568 hash<string,hash<auto>> getModuleHash();
569
571
591 list<hash<auto>> getModuleList();
592
594
608 *int getWord32(string str, softint offset = 0);
609
611
625 *int getWord32(binary b, softint offset = 0);
626
628
632 nothing getWord32();
633
635
651 *int get_byte(string str, softint offset = 0);
652
654
670 *int get_byte(binary b, softint offset = 0);
671
673
699 code get_call_reference(string identifier);
700
702
717 string get_class_name(object obj);
718
720
727 string get_default_encoding();
728
730
748 string get_ex_pos(hash<auto> ex);
749
751
762 list<string> get_feature_list();
763
765
779 hash<auto> get_global_vars();
780
782
803 hash<auto> get_local_vars(int frame);
804
806
826 hash<string,hash<auto>> get_module_hash();
827
829
851 list<hash<auto>> get_module_list();
852
854
874 auto get_module_option(string module, string option);
875
877
889 int get_parse_options();
890
892
914 hash<auto> get_qore_library_info();
915
917
935 hash<string,hash<auto>> get_qore_option_hash();
936
938
954 list<hash<auto>> get_qore_option_list();
955
957
964 *string get_script_dir();
965
967
974 *string get_script_name();
975
977
984 *string get_script_path();
985
987
1004 *int get_word_16(string str, softint offset = 0);
1005
1007
1024 *int get_word_16(binary b, softint offset = 0);
1025
1027
1044 *int get_word_16_lsb(string str, softint offset = 0);
1045
1047
1064 *int get_word_16_lsb(binary b, softint offset = 0);
1065
1067
1086 *int get_word_32(string str, softint offset = 0);
1087
1089
1108 *int get_word_32(binary b, softint offset = 0);
1109
1111
1130 *int get_word_32_lsb(string str, softint offset = 0);
1131
1133
1150 *int get_word_32_lsb(binary b, softint offset = 0);
1151
1153
1170 *int get_word_64(string str, softint offset = 0);
1171
1173
1190 *int get_word_64(binary b, softint offset = 0);
1191
1193
1210 *int get_word_64_lsb(string str, softint offset = 0);
1211
1213
1230 *int get_word_64_lsb(binary b, softint offset = 0);
1231
1233
1247 bool has_key(hash<auto> h, string key);
1248
1250
1259 bool has_key(object obj, string key);
1260
1262
1278 list<auto> hash_values(hash<auto> h);
1279
1281
1285 nothing hash_values();
1286
1288
1299 int hextoint(string str);
1300
1302
1306 nothing hextoint();
1307
1309
1325 string html_decode(string str);
1326
1328
1332 nothing html_decode();
1333
1335
1351 string html_encode(string str);
1352
1354
1358 nothing html_encode();
1359
1361
1386 nothing load_module(string name, int warning_mask = WARN_MODULES);
1387
1389
1396 nothing load_module();
1397
1399
1424 *hash<ExceptionInfo> load_module_warn(string name, int warning_mask = WARN_MODULES);
1425
1427
1444 nothing load_user_module_with_program(string name, Qore::Program pgm);
1445
1447
1465 string makeBase64String(string str, softint maxlinelen = -1);
1466
1468
1486 string makeBase64String(binary bin, softint maxlinelen = -1);
1487
1489
1493 nothing makeBase64String();
1494
1496
1510 string makeHexString(string str);
1511
1513
1527 string makeHexString(binary bin);
1528
1530
1534 nothing makeHexString();
1535
1537
1558 string make_base64_string(string str, softint maxlinelen = -1);
1559
1561
1582 string make_base64_string(binary bin, softint maxlinelen = -1);
1583
1585
1604 string make_hex_string(string str);
1605
1607
1626 string make_hex_string(binary bin);
1627
1629
1654 *hash<auto> parse(string code, string label, *softint warning_mask, *string source, *softint offset, softbool format_label = True);
1655
1657
1664 nothing parse();
1665
1667
1684 binary parseBase64String(string str);
1685
1687
1691 nothing parseBase64String();
1692
1694
1714 string parseBase64StringToString(string str, *string encoding);
1715
1717
1721 nothing parseBase64StringToString();
1722
1724
1739 binary parseHexString(string hexstr);
1740
1742
1746 nothing parseHexString();
1747
1749
1772 *hash<UrlInfo> parseURL(string url, bool keep_brackets = False);
1773
1775
1779 nothing parseURL();
1780
1782
1804 binary parse_base64_string(string str);
1805
1807
1832 string parse_base64_string_to_string(string str, *string encoding);
1833
1835
1855 binary parse_hex_string(string hexstr);
1856
1858
1880 hash<UrlInfo> parse_url(string url, bool keep_brackets = False);
1881
1883
1904 nothing reload_module(string name);
1905
1907
1923 nothing set_global_var_value(string name, auto value);
1924
1926
1946 nothing set_local_var_value(int frame, string var, auto value);
1947
1949
1965 nothing set_module_option(string module, string option, auto value);
1966
1968
1982 set_return_value(auto val);
1983
1985
1994 string splice(string str);
1995
1997
2011 string splice(string str, softint start);
2012
2014
2030 string splice(string str, softint start, softint len, *string nstr);
2031
2033
2045 list<auto> splice(list<auto> l, softint start);
2046
2048
2063 list<auto> splice(list<auto> l, softint start, softint len);
2064
2066
2082 list<auto> splice(list<auto> l, softint start, softint len, softlist<auto> nlist);
2083
2085
2089 nothing splice();
2090
2092
2104 int strtoint(string num, softint base = 10);
2105
2107
2111 nothing strtoint();
2112
2114 }
2115
2117 namespace Qore {
2124
2126
2129 const CE_ALL = CE_ALL;
2131
2137 const CE_HTML = CE_HTML;
2139
2143 const CE_NONASCII = CE_NONASCII;
2145
2149 const CE_XHTML = CE_XHTML;
2151
2162 const CE_XML = CE_XML;
2164 }
2165
2167 namespace Qore {
2174
2176
2179 const CD_ALL = CD_ALL;
2181
2187 const CD_HTML = CD_HTML;
2189
2191 const CD_NUM_REF = CD_NUM_REF;
2193
2197 const CD_XHTML = CD_XHTML;
2199
2210 const CD_XML = CD_XML;
2212 }
2213
2215 namespace Qore {
2219
2221 const NameToSignal = (
2223 "SIGABRT": SIGABRT,
2224 "SIGALRM": SIGALRM,
2225 "SIGBUS": SIGBUS,
2226 "SIGCANCEL": SIGCANCEL,
2227 "SIGCHLD": SIGCHLD,
2228 "SIGCLD": SIGCLD,
2229 "SIGCONT": SIGCONT,
2230 "SIGEMT": SIGEMT,
2231 "SIGFPE": SIGFPE,
2232 "SIGFREEZE": SIGFREEZE,
2233 "SIGHUP": SIGHUP,
2234 "SIGILL": SIGILL,
2235 "SIGINFO": SIGINFO,
2236 "SIGINT": SIGINT,
2237 "SIGIO": SIGIO,
2238 "SIGIOT": SIGIOT,
2239 "SIGJVM1": SIGJVM1,
2240 "SIGJVM2": SIGJVM2,
2241 "SIGKILL": SIGKILL,
2242 "SIGLOST": SIGLOST,
2243 "SIGLWP": SIGLWP,
2244 "SIGPIPE": SIGPIPE,
2245 "SIGPOLL": SIGPOLL,
2246 "SIGPROF": SIGPROF,
2247 "SIGPWR": SIGPWR,
2248 "SIGQUIT": SIGQUIT,
2249 "SIGSEGV": SIGSEGV,
2250 "SIGSTKFLT": SIGSTKFLT,
2251 "SIGSTOP": SIGSTOP,
2252 "SIGSYS": SIGSYS,
2253 "SIGTERM": SIGTERM,
2254 "SIGTHAW": SIGTHAW,
2255 "SIGTRAP": SIGTRAP,
2256 "SIGTSTP": SIGTSTP,
2257 "SIGTTIN": SIGTTIN,
2258 "SIGTTOU": SIGTTOU,
2259 "SIGURG": SIGURG,
2260 "SIGUSR1": SIGUSR1,
2261 "SIGUSR2": SIGUSR2,
2262 "SIGVTALRM": SIGVTALRM,
2263 "SIGWAITING": SIGWAITING,
2264 "SIGWINCH": SIGWINCH,
2265 "SIGXCPU": SIGXCPU,
2266 "SIGXFSZ": SIGXFSZ,
2267 "SIGXRES": SIGXRES,
2268 );
2270 const SIGABRT = SIGABRT;
2272 const SIGALRM = SIGALRM;
2274 const SIGBUS = SIGBUS;
2276 const SIGCANCEL = SIGCANCEL;
2278 const SIGCHLD = SIGCHLD;
2280 const SIGCLD = SIGCLD;
2282 const SIGCONT = SIGCONT;
2284 const SIGEMT = SIGEMT;
2286 const SIGFPE = SIGFPE;
2288 const SIGFREEZE = SIGFREEZE;
2290 const SIGHUP = SIGHUP;
2292 const SIGILL = SIGILL;
2294 const SIGINFO = SIGINFO;
2296 const SIGINT = SIGINT;
2298 const SIGIO = SIGIO;
2300 const SIGIOT = SIGIOT;
2302 const SIGJVM1 = SIGJVM1;
2304 const SIGJVM2 = SIGJVM2;
2306 const SIGKILL = SIGKILL;
2308 const SIGLOST = SIGLOST;
2310 const SIGLWP = SIGLWP;
2312 const SIGPIPE = SIGPIPE;
2314 const SIGPOLL = SIGPOLL;
2316 const SIGPROF = SIGPROF;
2318 const SIGPWR = SIGPWR;
2320 const SIGQUIT = SIGQUIT;
2322 const SIGSEGV = SIGSEGV;
2324 const SIGSTKFLT = SIGSTKFLT;
2326 const SIGSTOP = SIGSTOP;
2328 const SIGSYS = SIGSYS;
2330 const SIGTERM = SIGTERM;
2332 const SIGTHAW = SIGTHAW;
2334 const SIGTRAP = SIGTRAP;
2336 const SIGTSTP = SIGTSTP;
2338 const SIGTTIN = SIGTTIN;
2340 const SIGTTOU = SIGTTOU;
2342 const SIGURG = SIGURG;
2344 const SIGUSR1 = SIGUSR1;
2346 const SIGUSR2 = SIGUSR2;
2348 const SIGVTALRM = SIGVTALRM;
2350 const SIGWAITING = SIGWAITING;
2352 const SIGWINCH = SIGWINCH;
2354 const SIGXCPU = SIGXCPU;
2356 const SIGXFSZ = SIGXFSZ;
2358 const SIGXRES = SIGXRES;
2360 const SignalToName = (
2361 SIGABRT: "SIGABRT",
2362 SIGALRM: "SIGALRM",
2363 SIGBUS: "SIGBUS",
2364 SIGCANCEL: "SIGCANCEL",
2365 SIGCHLD: "SIGCHLD",
2366 SIGCONT: "SIGCONT",
2367 SIGEMT: "SIGEMT",
2368 SIGFPE: "SIGFPE",
2369 SIGFREEZE: "SIGFREEZE",
2370 SIGHUP: "SIGHUP",
2371 SIGILL: "SIGILL",
2372 SIGINFO: "SIGINFO",
2373 SIGINT: "SIGINT",
2374 SIGIO: "SIGIO",
2375 SIGIOT: "SIGIOT",
2376 SIGJVM1: "SIGJVM1",
2377 SIGJVM2: "SIGJVM2",
2378 SIGKILL: "SIGKILL",
2379 SIGLOST: "SIGLOST",
2380 SIGLWP: "SIGLWP",
2381 SIGPIPE: "SIGPIPE",
2382 SIGPOLL: "SIGPOLL",
2383 SIGPROF: "SIGPROF",
2384 SIGPWR: "SIGPWR",
2385 SIGQUIT: "SIGQUIT",
2386 SIGSEGV: "SIGSEGV",
2387 SIGSTKSZ: "SIGSTKSZ",
2388 SIGSTOP: "SIGSTOP",
2389 SIGSYS: "SIGSYS",
2390 SIGTERM: "SIGTERM",
2391 SIGTHAW: "SIGTHAW",
2392 SIGTRAP: "SIGTRAP",
2393 SIGTSTP: "SIGTSTP",
2394 SIGTTIN: "SIGTTIN",
2395 SIGTTOU: "SIGTTOU",
2396 SIGURG: "SIGURG",
2397 SIGUSR1: "SIGUSR1",
2398 SIGUSR2: "SIGUSR2",
2399 SIGVTALRM: "SIGVTALRM",
2400 SIGWAITING: "SIGWAITING",
2401 SIGWINCH: "SIGWINCH",
2402 SIGXCPU: "SIGXCPU",
2403 SIGXFSZ: "SIGXFSZ",
2404 SIGXRES: "SIGXRES",
2405 );
2407 }
Qore::SIGKILL
const SIGKILL
SIGKILL.
Definition: ql_misc.dox.h:2306
Qore::get_word_32_lsb
*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...
Qore::get_default_encoding
string get_default_encoding()
Returns the name of the default character encoding.
Qore::SIGSYS
const SIGSYS
SIGSYS.
Definition: ql_misc.dox.h:2328
Qore::CE_ALL
const CE_ALL
code for encoding everything
Definition: ql_misc.dox.h:2129
Qore::CE_XML
const CE_XML
code for encoding XML entities
Definition: ql_misc.dox.h:2162
Qore::get_module_hash
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...
Qore::SIGINFO
const SIGINFO
SIGINFO.
Definition: ql_misc.dox.h:2294
Qore::get_script_name
*string get_script_name()
Returns the filename of the current script if known or NOTHING if unknown (i.e. no parent script...
Qore::decode_url
string decode_url(string url)
Decodes percent numeric codes in a URL string and returns the decoded string in UTF-8 encoding...
Qore::get_global_vars
hash< auto > get_global_vars()
returns a hash of global variables
Qore::parseURL
*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...
Qore::parseHexString
binary parseHexString(string hexstr)
Parses a hex-encoded string and returns the binary object.
Qore::SIGURG
const SIGURG
SIGURG.
Definition: ql_misc.dox.h:2342
Qore::get_call_reference
code get_call_reference(string identifier)
resolve the string as a call reference
Qore::parse_base64_string_to_string
string parse_base64_string_to_string(string str, *string encoding)
Parses a base64 encoded string and returns a string of the decoded data.
Qore::set_signal_handler
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...
Qore::get_module_list
list< hash< auto > > get_module_list()
Returns a list of hashes describing the currently-loaded Qore modules.
Qore::UrlInfo::port
int port
the port number given in the URL string, if any
Definition: ql_misc.dox.h:15
Qore::SIGPROF
const SIGPROF
SIGPROF.
Definition: ql_misc.dox.h:2316
Qore::SIGSTKFLT
const SIGSTKFLT
SIGSTKFLT.
Definition: ql_misc.dox.h:2324
Qore::Program
Program objects allow Qore programs to support subprograms with the option to restrict capabilities...
Definition: QC_Program.dox.h:56
Qore::getFeatureList
list< string > getFeatureList()
Returns a list of strings of the builtin and module-supplied features of Qore.
Qore::SIGBUS
const SIGBUS
SIGBUS.
Definition: ql_misc.dox.h:2274
Qore::set_return_value
set_return_value(auto val)
sets the return value for a Program object when running with %exec-class
Qore::get_script_path
*string get_script_path()
Returns the path (directory and filename) of the current script or NOTHING if unknown (i...
Qore::SIGTTOU
const SIGTTOU
SIGTTOU.
Definition: ql_misc.dox.h:2340
Qore::make_base64_string
string make_base64_string(string str, softint maxlinelen=-1)
Returns a base64-encoded representation of a string.
Qore::SIGQUIT
const SIGQUIT
SIGQUIT.
Definition: ql_misc.dox.h:2320
Qore::get_word_32
*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...
Qore::function_type
*string function_type(string name)
Returns "builtin" (for a builtin function), "user" (for a user function), or NOTHING (if the function...
Qore::SIGWINCH
const SIGWINCH
SIGWINCH.
Definition: ql_misc.dox.h:2352
Qore::get_ex_pos
string get_ex_pos(hash< auto > ex)
returns a descriptive string for an exception location; the source and offset information will also b...
Qore::get_qore_option_list
list< hash< auto > > get_qore_option_list()
Returns a list of hashes giving information about Qore library options for the current build...
Qore::CD_XHTML
const CD_XHTML
code for decoding XHTML named character references to symbols
Definition: ql_misc.dox.h:2197
Qore::SIGPWR
const SIGPWR
SIGPWR.
Definition: ql_misc.dox.h:2318
Qore::True
const True
logical True
Definition: qc_qore.dox.h:98
Qore::call_builtin_function_args
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...
Qore::SIGIO
const SIGIO
SIGIO.
Definition: ql_misc.dox.h:2298
Qore::encode_uri_request
string encode_uri_request(string url)
Encodes URI requests by substituting special characters in the path with percent-encoded equivalents ...
Qore::CE_XHTML
const CE_XHTML
code for encoding XHTML entities
Definition: ql_misc.dox.h:2149
Qore::SIGCLD
const SIGCLD
SIGCLD.
Definition: ql_misc.dox.h:2280
Qore::SIGUSR2
const SIGUSR2
SIGUSR2.
Definition: ql_misc.dox.h:2346
Qore::get_byte
*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...
Qore::SIGVTALRM
const SIGVTALRM
SIGVTALRM.
Definition: ql_misc.dox.h:2348
Qore::call_function
auto call_function(string name,...)
Calls a function and returns the return value, passing the remaining arguments after the function nam...
Qore::binary
binary binary()
Always returns an empty binary object (of zero length)
Qore::SIGSTOP
const SIGSTOP
SIGSTOP.
Definition: ql_misc.dox.h:2326
Qore::SIGTERM
const SIGTERM
SIGTERM.
Definition: ql_misc.dox.h:2330
Qore::exists_function
bool exists_function(string name)
Returns True if the function exists in the current program&#39;s function name space. ...
Qore::SIGALRM
const SIGALRM
SIGALRM.
Definition: ql_misc.dox.h:2272
Qore::get_word_16
*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...
Qore::UrlInfo::protocol
string protocol
the scheme or protocol of the URL, if present
Definition: ql_misc.dox.h:17
Qore::parseBase64StringToString
string parseBase64StringToString(string str, *string encoding)
Parses a base64 encoded string and returns a string of the decoded data.
Qore::CD_HTML
const CD_HTML
code for decoding HTML 5 named character references to their native symbols
Definition: ql_misc.dox.h:2187
Qore::SIGTRAP
const SIGTRAP
SIGTRAP.
Definition: ql_misc.dox.h:2334
Qore::False
const False
logical False
Definition: qc_qore.dox.h:96
Qore::backquote
string backquote(string cmd, *reference< int > rc)
Executes a process and returns a string of the output (stdout only)
Qore::SIGCONT
const SIGCONT
SIGCONT.
Definition: ql_misc.dox.h:2282
Qore::CE_HTML
const CE_HTML
code for encoding HTML 5 symbols as named character references
Definition: ql_misc.dox.h:2137
Qore::set_global_var_value
nothing set_global_var_value(string name, auto value)
set the value of a global variable
Qore::SIGLWP
const SIGLWP
SIGLWP.
Definition: ql_misc.dox.h:2310
Qore::make_hex_string
string make_hex_string(string str)
Returns a hex-encoded representation of a string.
Qore::SIGTTIN
const SIGTTIN
SIGTTIN.
Definition: ql_misc.dox.h:2338
Qore::html_decode
string html_decode(string str)
Returns a string with any HTML escape codes translated to the original characters.
Qore::hextoint
int hextoint(string str)
Returns an integer for a hexadecimal string value; throws an exception if non-hex digits are found...
Qore::load_module_warn
*hash< ExceptionInfo > load_module_warn(string name, int warning_mask=WARN_MODULES)
Loads in a Qore module at run-time.
Qore::call_builtin_function
auto call_builtin_function(string name,...)
Calls a function and returns the return value, passing the remaining arguments after the function nam...
Qore::get_script_dir
*string get_script_dir()
Returns the name of the directory from which the current script was executed or NOTHING if unknown (i...
Qore::remove_signal_handler
nothing remove_signal_handler(softint signal)
Removes a signal handler and returns the signal handling state to the default.
Qore::get_local_vars
hash< auto > get_local_vars(int frame)
retrieves a hash of local variables for the given stack frame
Qore::get_feature_list
list< string > get_feature_list()
Returns a list of strings of the builtin and module-supplied features of Qore.
Qore::SIGJVM2
const SIGJVM2
SIGJVM2.
Definition: ql_misc.dox.h:2304
Qore::SIGCHLD
const SIGCHLD
SIGCHLD.
Definition: ql_misc.dox.h:2278
Qore::set_module_option
nothing set_module_option(string module, string option, auto value)
set the given module option
Qore::load_user_module_with_program
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 ...
Qore::getByte
*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...
Qore::SIGSEGV
const SIGSEGV
SIGSEGV.
Definition: ql_misc.dox.h:2322
Qore::call_function_args
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...
Qore::UrlInfo::password
string password
the password given in the URL, if any
Definition: ql_misc.dox.h:11
Qore::UrlInfo
a hash describing a parsed URL
Definition: ql_misc.dox.h:7
Qore::exists
bool exists(...)
A function performing the same role as the exists operator.
Qore::get_parse_options
int get_parse_options()
returns the current parse options for the current Program object
Qore::UrlInfo::host
string host
the hostname given in the URL string, if any
Definition: ql_misc.dox.h:9
Qore::SIGEMT
const SIGEMT
SIGEMT.
Definition: ql_misc.dox.h:2284
Qore::SIGABRT
const SIGABRT
SIGABRT.
Definition: ql_misc.dox.h:2270
Qore::CD_XML
const CD_XML
code for decoding XML entities
Definition: ql_misc.dox.h:2210
Qore::get_qore_library_info
hash< auto > get_qore_library_info()
Returns a hash of library build and version info.
Qore::splice
string splice(string str)
This function always returns an empty string "".
Qore::SignalToName
const SignalToName
maps signal numbers (as a string key) to the symbolic name for the signal
Definition: ql_misc.dox.h:2360
Qore::functionType
*string functionType(string name)
Returns "builtin" (for a builtin function), "user" (for a user function), or NOTHING (if the function...
Qore::parse_hex_string
binary parse_hex_string(string hexstr)
Parses a hex-encoded string and returns the binary object.
Qore::SIGFREEZE
const SIGFREEZE
SIGFREEZE.
Definition: ql_misc.dox.h:2288
Qore::getWord32
*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...
Qore::getClassName
string getClassName(object obj)
Returns the class name of the object passed.
Qore::has_key
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)...
Qore::SIGPOLL
const SIGPOLL
SIGPOLL.
Definition: ql_misc.dox.h:2314
Qore::SIGXCPU
const SIGXCPU
SIGXCPU.
Definition: ql_misc.dox.h:2354
Qore::html_encode
string html_encode(string str)
Returns a string with characters needing HTML escaping translated to HTML escape codes.
Qore::SIGHUP
const SIGHUP
SIGHUP.
Definition: ql_misc.dox.h:2290
Qore::SIGILL
const SIGILL
SIGILL.
Definition: ql_misc.dox.h:2292
Qore::makeHexString
string makeHexString(string str)
Returns a hex-encoded representation of a string.
Qore::parseBase64String
binary parseBase64String(string str)
Parses a base64 encoded string and returns a binary object of the decoded data.
Qore::parse
*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.
Qore::UrlInfo::username
string username
the username of the URL, if present
Definition: ql_misc.dox.h:19
Qore::parse_base64_string
binary parse_base64_string(string str)
Parses a base64 encoded string and returns a binary object of the decoded data.
Qore::SIGJVM1
const SIGJVM1
SIGJVM1.
Definition: ql_misc.dox.h:2302
Qore::UrlInfo::path
string path
the path given in the URL string, if present
Definition: ql_misc.dox.h:13
Qore::SIGTSTP
const SIGTSTP
SIGTSTP.
Definition: ql_misc.dox.h:2336
Qore::hash_values
list< auto > hash_values(hash< auto > h)
Returns a list of all the values in the hash argument passed.
Qore::SIGFPE
const SIGFPE
SIGFPE.
Definition: ql_misc.dox.h:2286
Qore::getModuleList
list< hash< auto > > getModuleList()
Returns a list of hashes describing the currently-loaded Qore modules.
Qore::get_word_64_lsb
*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...
Qore::SIGUSR1
const SIGUSR1
SIGUSR1.
Definition: ql_misc.dox.h:2344
Qore::reload_module
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...
Qore::set_local_var_value
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 ...
Qore::strtoint
int strtoint(string num, softint base=10)
parses a string representing a number in a configurable base and returns the integer ...
Qore::SIGWAITING
const SIGWAITING
SIGWAITING.
Definition: ql_misc.dox.h:2350
Qore::getModuleHash
hash< string, hash< auto > > getModuleHash()
Returns a hash of hashes describing the currently-loaded Qore modules; the top-level hash keys are th...
Qore::CD_NUM_REF
const CD_NUM_REF
code for decoding numeric character references to symbols
Definition: ql_misc.dox.h:2191
Qore::existsFunction
bool existsFunction(string name)
Returns True if the function exists in the current program&#39;s function name space. ...
Qore::get_class_name
string get_class_name(object obj)
Returns the class name of the object passed.
Qore::encode_url
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...
Qore::SIGINT
const SIGINT
SIGINT.
Definition: ql_misc.dox.h:2296
Qore::get_word_16_lsb
*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...
Qore::get_module_option
auto get_module_option(string module, string option)
returns the given global module option
Qore::CD_ALL
const CD_ALL
code for decoding everything
Definition: ql_misc.dox.h:2179
Qore::NameToSignal
const NameToSignal
maps signal names to signal values
Definition: ql_misc.dox.h:2222
Qore::decode_uri_request
string decode_uri_request(string uri)
Decodes percent-encoded codes in a URI path and converts "+" signs in the query component to spaces a...
Qore::SIGXFSZ
const SIGXFSZ
SIGXFSZ.
Definition: ql_misc.dox.h:2356
Qore::load_module
nothing load_module(string name, int warning_mask=WARN_MODULES)
Loads in a Qore module at run-time.
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
Qore::SIGIOT
const SIGIOT
SIGIOT.
Definition: ql_misc.dox.h:2300
Qore::makeBase64String
string makeBase64String(string str, softint maxlinelen=-1)
Returns a base64-encoded representation of a string.
Qore::get_word_64
*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...
Qore::WARN_MODULES
const WARN_MODULES
The default warning mask for user modules.
Definition: QC_Program.dox.h:2056
Qore::SIGPIPE
const SIGPIPE
SIGPIPE.
Definition: ql_misc.dox.h:2312
Qore::SIGCANCEL
const SIGCANCEL
SIGCANCEL.
Definition: ql_misc.dox.h:2276
Qore::parse_url
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...
Qore::CE_NONASCII
const CE_NONASCII
code for encoding all non-ASCII symbols as numeric character references
Definition: ql_misc.dox.h:2143
Qore::get_qore_option_hash
hash< string, hash< auto > > get_qore_option_hash()
Returns a hash of hashes giving information about Qore library options for the current build...
Qore::SIGXRES
const SIGXRES
SIGXRES.
Definition: ql_misc.dox.h:2358
Qore::SIGTHAW
const SIGTHAW
SIGTHAW.
Definition: ql_misc.dox.h:2332
Qore::SIGLOST
const SIGLOST
SIGLOST.
Definition: ql_misc.dox.h:2308