| Qore Programming Language Reference Manual 1.8.1

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 query;
21 string username;
22 };
23 }
24
26 namespace Qore {
30
33
51 nothing remove_signal_handler(softint signal);
52
54
75 nothing set_signal_handler(softint signal, code f);
76
78 }
79
81 namespace Qore {
85
88
110 string backquote(string cmd, *reference<int> rc);
111
113
120 nothing backquote();
121
123
140 auto call_builtin_function(string name, ...);
141
143
160 auto call_builtin_function_args(string name, *softlist<auto> vargs);
161
163
185 auto call_function(string name, ...);
186
188
205 auto call_function(code f, ...);
206
208
230 auto call_function_args(string name, *softlist<auto> vargs);
231
233
250 auto call_function_args(code f, *softlist<auto> vargs);
251
253
282 string decode_uri_request(string uri);
283
285
304 string decode_url(string url);
305
307
311 nothing decode_url();
312
314
345 string encode_uri_request(string url);
346
348
368 string encode_url(string url, softbool encode_all = False);
369
371
383 bool exists( ...);
384
386
395 bool existsFunction(string name);
396
398
409 bool existsFunction(code c);
410
412
416 nothing existsFunction();
417
419
433 bool exists_function(string name);
434
436
447 bool exists_function(code c);
448
450
458 *string functionType(string name);
459
461
465 nothing functionType();
466
468
478 *string function_type(string name);
479
481
494 *int getByte(string str, softint offset = 0);
495
497
501 nothing getByte();
502
504
517 *int getByte(binary b, softint offset = 0);
518
520
528 string getClassName(object obj);
529
531
535 nothing getClassName();
536
538
547 list<string> getFeatureList();
548
550
570 hash<string,hash<auto>> getModuleHash();
571
573
593 list<hash<auto>> getModuleList();
594
596
610 *int getWord32(string str, softint offset = 0);
611
613
627 *int getWord32(binary b, softint offset = 0);
628
630
634 nothing getWord32();
635
637
653 *int get_byte(string str, softint offset = 0);
654
656
672 *int get_byte(binary b, softint offset = 0);
673
675
701 code get_call_reference(string identifier);
702
704
719 string get_class_name(object obj);
720
722
729 string get_default_encoding();
730
732
750 string get_ex_pos(hash<auto> ex);
751
753
764 list<string> get_feature_list();
765
767
781 hash<auto> get_global_vars();
782
784
805 hash<auto> get_local_vars(int frame);
806
808
828 hash<string,hash<auto>> get_module_hash();
829
831
853 list<hash<auto>> get_module_list();
854
856
876 auto get_module_option(string module, string option);
877
879
891 int get_parse_options();
892
894
916 hash<auto> get_qore_library_info();
917
919
937 hash<string,hash<auto>> get_qore_option_hash();
938
940
956 list<hash<auto>> get_qore_option_list();
957
959
966 *string get_script_dir();
967
969
976 *string get_script_name();
977
979
986 *string get_script_path();
987
989
1006 *int get_word_16(string str, softint offset = 0);
1007
1009
1026 *int get_word_16(binary b, softint offset = 0);
1027
1029
1046 *int get_word_16_lsb(string str, softint offset = 0);
1047
1049
1066 *int get_word_16_lsb(binary b, softint offset = 0);
1067
1069
1088 *int get_word_32(string str, softint offset = 0);
1089
1091
1110 *int get_word_32(binary b, softint offset = 0);
1111
1113
1132 *int get_word_32_lsb(string str, softint offset = 0);
1133
1135
1152 *int get_word_32_lsb(binary b, softint offset = 0);
1153
1155
1172 *int get_word_64(string str, softint offset = 0);
1173
1175
1192 *int get_word_64(binary b, softint offset = 0);
1193
1195
1212 *int get_word_64_lsb(string str, softint offset = 0);
1213
1215
1232 *int get_word_64_lsb(binary b, softint offset = 0);
1233
1235
1249 bool has_key(hash<auto> h, string key);
1250
1252
1261 bool has_key(object obj, string key);
1262
1264
1280 list<auto> hash_values(hash<auto> h);
1281
1283
1287 nothing hash_values();
1288
1290
1301 int hextoint(string str);
1302
1304
1308 nothing hextoint();
1309
1311
1327 string html_decode(string str);
1328
1330
1334 nothing html_decode();
1335
1337
1353 string html_encode(string str);
1354
1356
1360 nothing html_encode();
1361
1363
1388 nothing load_module(string name, int warning_mask = WARN_MODULES);
1389
1391
1398 nothing load_module();
1399
1401
1426 *hash<ExceptionInfo> load_module_warn(string name, int warning_mask = WARN_MODULES);
1427
1429
1446 nothing load_user_module_with_program(string name, Qore::Program pgm);
1447
1449
1467 string makeBase64String(string str, softint maxlinelen = -1);
1468
1470
1488 string makeBase64String(binary bin, softint maxlinelen = -1);
1489
1491
1495 nothing makeBase64String();
1496
1498
1512 string makeHexString(string str);
1513
1515
1529 string makeHexString(binary bin);
1530
1532
1536 nothing makeHexString();
1537
1539
1560 string make_base64_string(string str, softint maxlinelen = -1);
1561
1563
1584 string make_base64_string(binary bin, softint maxlinelen = -1);
1585
1587
1606 string make_hex_string(string str);
1607
1609
1628 string make_hex_string(binary bin);
1629
1631
1656 *hash<auto> parse(string code, string label, *softint warning_mask, *string source, *softint offset, softbool format_label = True);
1657
1659
1666 nothing parse();
1667
1669
1686 binary parseBase64String(string str);
1687
1689
1693 nothing parseBase64String();
1694
1696
1716 string parseBase64StringToString(string str, *string encoding);
1717
1719
1723 nothing parseBase64StringToString();
1724
1726
1741 binary parseHexString(string hexstr);
1742
1744
1748 nothing parseHexString();
1749
1751
1791 *hash<UrlInfo> parseURL(string url, bool keep_brackets = False);
1792
1794
1798 nothing parseURL();
1799
1801
1823 binary parse_base64_string(string str);
1824
1826
1851 string parse_base64_string_to_string(string str, *string encoding);
1852
1854
1874 binary parse_hex_string(string hexstr);
1875
1877
1917 hash<UrlInfo> parse_url(string url, bool keep_brackets);
1918
1920
1962 hash<UrlInfo> parse_url(string url, *int options);
1963
1965
1986 nothing reload_module(string name);
1987
1989
2005 nothing set_global_var_value(string name, auto value);
2006
2008
2028 nothing set_local_var_value(int frame, string var, auto value);
2029
2031
2047 nothing set_module_option(string module, string option, auto value);
2048
2050
2064 set_return_value(auto val);
2065
2067
2076 string splice(string str);
2077
2079
2093 string splice(string str, softint start);
2094
2096
2112 string splice(string str, softint start, softint len, *string nstr);
2113
2115
2127 list<auto> splice(list<auto> l, softint start);
2128
2130
2145 list<auto> splice(list<auto> l, softint start, softint len);
2146
2148
2164 list<auto> splice(list<auto> l, softint start, softint len, softlist<auto> nlist);
2165
2167
2171 nothing splice();
2172
2174
2186 int strtoint(string num, softint base = 10);
2187
2189
2193 nothing strtoint();
2194
2196 }
2197
2199 namespace Qore {
2204
2207 const QURL_DECODE = QURL_DECODE;
2209 const QURL_DECODE_PATH = QURL_DECODE_PATH;
2211
2214 const QURL_KEEP_BRACKETS = QURL_KEEP_BRACKETS;
2216 }
2217
2219 namespace Qore {
2226
2229
2231 const CE_ALL = CE_ALL;
2233
2239 const CE_HTML = CE_HTML;
2241
2245 const CE_NONASCII = CE_NONASCII;
2247
2251 const CE_XHTML = CE_XHTML;
2253
2264 const CE_XML = CE_XML;
2266 }
2267
2269 namespace Qore {
2276
2279
2281 const CD_ALL = CD_ALL;
2283
2289 const CD_HTML = CD_HTML;
2291
2293 const CD_NUM_REF = CD_NUM_REF;
2295
2299 const CD_XHTML = CD_XHTML;
2301
2312 const CD_XML = CD_XML;
2314 }
2315
2317 namespace Qore {
2321
2324 const NameToSignal = (
2325 "SIGABRT": SIGABRT,
2326 "SIGALRM": SIGALRM,
2327 "SIGBUS": SIGBUS,
2328 "SIGCANCEL": SIGCANCEL,
2329 "SIGCHLD": SIGCHLD,
2330 "SIGCLD": SIGCLD,
2331 "SIGCONT": SIGCONT,
2332 "SIGEMT": SIGEMT,
2333 "SIGFPE": SIGFPE,
2334 "SIGFREEZE": SIGFREEZE,
2335 "SIGHUP": SIGHUP,
2336 "SIGILL": SIGILL,
2337 "SIGINFO": SIGINFO,
2338 "SIGINT": SIGINT,
2339 "SIGIO": SIGIO,
2340 "SIGIOT": SIGIOT,
2341 "SIGJVM1": SIGJVM1,
2342 "SIGJVM2": SIGJVM2,
2343 "SIGKILL": SIGKILL,
2344 "SIGLOST": SIGLOST,
2345 "SIGLWP": SIGLWP,
2346 "SIGPIPE": SIGPIPE,
2347 "SIGPOLL": SIGPOLL,
2348 "SIGPROF": SIGPROF,
2349 "SIGPWR": SIGPWR,
2350 "SIGQUIT": SIGQUIT,
2351 "SIGSEGV": SIGSEGV,
2352 "SIGSTKFLT": SIGSTKFLT,
2353 "SIGSTOP": SIGSTOP,
2354 "SIGSYS": SIGSYS,
2355 "SIGTERM": SIGTERM,
2356 "SIGTHAW": SIGTHAW,
2357 "SIGTRAP": SIGTRAP,
2358 "SIGTSTP": SIGTSTP,
2359 "SIGTTIN": SIGTTIN,
2360 "SIGTTOU": SIGTTOU,
2361 "SIGURG": SIGURG,
2362 "SIGUSR1": SIGUSR1,
2363 "SIGUSR2": SIGUSR2,
2364 "SIGVTALRM": SIGVTALRM,
2365 "SIGWAITING": SIGWAITING,
2366 "SIGWINCH": SIGWINCH,
2367 "SIGXCPU": SIGXCPU,
2368 "SIGXFSZ": SIGXFSZ,
2369 "SIGXRES": SIGXRES,
2370 );
2372 const SIGABRT = SIGABRT;
2374 const SIGALRM = SIGALRM;
2376 const SIGBUS = SIGBUS;
2378 const SIGCANCEL = SIGCANCEL;
2380 const SIGCHLD = SIGCHLD;
2382 const SIGCLD = SIGCLD;
2384 const SIGCONT = SIGCONT;
2386 const SIGEMT = SIGEMT;
2388 const SIGFPE = SIGFPE;
2390 const SIGFREEZE = SIGFREEZE;
2392 const SIGHUP = SIGHUP;
2394 const SIGILL = SIGILL;
2396 const SIGINFO = SIGINFO;
2398 const SIGINT = SIGINT;
2400 const SIGIO = SIGIO;
2402 const SIGIOT = SIGIOT;
2404 const SIGJVM1 = SIGJVM1;
2406 const SIGJVM2 = SIGJVM2;
2408 const SIGKILL = SIGKILL;
2410 const SIGLOST = SIGLOST;
2412 const SIGLWP = SIGLWP;
2414 const SIGPIPE = SIGPIPE;
2416 const SIGPOLL = SIGPOLL;
2418 const SIGPROF = SIGPROF;
2420 const SIGPWR = SIGPWR;
2422 const SIGQUIT = SIGQUIT;
2424 const SIGSEGV = SIGSEGV;
2426 const SIGSTKFLT = SIGSTKFLT;
2428 const SIGSTOP = SIGSTOP;
2430 const SIGSYS = SIGSYS;
2432 const SIGTERM = SIGTERM;
2434 const SIGTHAW = SIGTHAW;
2436 const SIGTRAP = SIGTRAP;
2438 const SIGTSTP = SIGTSTP;
2440 const SIGTTIN = SIGTTIN;
2442 const SIGTTOU = SIGTTOU;
2444 const SIGURG = SIGURG;
2446 const SIGUSR1 = SIGUSR1;
2448 const SIGUSR2 = SIGUSR2;
2450 const SIGVTALRM = SIGVTALRM;
2452 const SIGWAITING = SIGWAITING;
2454 const SIGWINCH = SIGWINCH;
2456 const SIGXCPU = SIGXCPU;
2458 const SIGXFSZ = SIGXFSZ;
2460 const SIGXRES = SIGXRES;
2462 const SignalToName = (
2463 SIGABRT: "SIGABRT",
2464 SIGALRM: "SIGALRM",
2465 SIGBUS: "SIGBUS",
2466 SIGCANCEL: "SIGCANCEL",
2467 SIGCHLD: "SIGCHLD",
2468 SIGCONT: "SIGCONT",
2469 SIGEMT: "SIGEMT",
2470 SIGFPE: "SIGFPE",
2471 SIGFREEZE: "SIGFREEZE",
2472 SIGHUP: "SIGHUP",
2473 SIGILL: "SIGILL",
2474 SIGINFO: "SIGINFO",
2475 SIGINT: "SIGINT",
2476 SIGIO: "SIGIO",
2477 SIGIOT: "SIGIOT",
2478 SIGJVM1: "SIGJVM1",
2479 SIGJVM2: "SIGJVM2",
2480 SIGKILL: "SIGKILL",
2481 SIGLOST: "SIGLOST",
2482 SIGLWP: "SIGLWP",
2483 SIGPIPE: "SIGPIPE",
2484 SIGPOLL: "SIGPOLL",
2485 SIGPROF: "SIGPROF",
2486 SIGPWR: "SIGPWR",
2487 SIGQUIT: "SIGQUIT",
2488 SIGSEGV: "SIGSEGV",
2489 SIGSTKSZ: "SIGSTKSZ",
2490 SIGSTOP: "SIGSTOP",
2491 SIGSYS: "SIGSYS",
2492 SIGTERM: "SIGTERM",
2493 SIGTHAW: "SIGTHAW",
2494 SIGTRAP: "SIGTRAP",
2495 SIGTSTP: "SIGTSTP",
2496 SIGTTIN: "SIGTTIN",
2497 SIGTTOU: "SIGTTOU",
2498 SIGURG: "SIGURG",
2499 SIGUSR1: "SIGUSR1",
2500 SIGUSR2: "SIGUSR2",
2501 SIGVTALRM: "SIGVTALRM",
2502 SIGWAITING: "SIGWAITING",
2503 SIGWINCH: "SIGWINCH",
2504 SIGXCPU: "SIGXCPU",
2505 SIGXFSZ: "SIGXFSZ",
2506 SIGXRES: "SIGXRES",
2507 );
2509 }
Qore::Program
Program objects allow Qore programs to support subprograms with the option to restrict capabilities,...
Definition: QC_Program.dox.h:56
Qore::CD_XML
const CD_XML
code for decoding XML entities
Definition: ql_misc.dox.h:2312
Qore::CD_ALL
const CD_ALL
code for decoding everything
Definition: ql_misc.dox.h:2281
Qore::CD_XHTML
const CD_XHTML
code for decoding XHTML named character references to symbols
Definition: ql_misc.dox.h:2299
Qore::CD_NUM_REF
const CD_NUM_REF
code for decoding numeric character references to symbols
Definition: ql_misc.dox.h:2293
Qore::CD_HTML
const CD_HTML
code for decoding HTML 5 named character references to their native symbols
Definition: ql_misc.dox.h:2289
Qore::CE_ALL
const CE_ALL
code for encoding everything
Definition: ql_misc.dox.h:2231
Qore::CE_HTML
const CE_HTML
code for encoding HTML 5 symbols as named character references
Definition: ql_misc.dox.h:2239
Qore::CE_NONASCII
const CE_NONASCII
code for encoding all non-ASCII symbols as numeric character references
Definition: ql_misc.dox.h:2245
Qore::CE_XHTML
const CE_XHTML
code for encoding XHTML entities
Definition: ql_misc.dox.h:2251
Qore::CE_XML
const CE_XML
code for encoding XML entities
Definition: ql_misc.dox.h:2264
Qore::True
const True
logical True
Definition: qc_qore.dox.h:98
Qore::False
const False
logical False
Definition: qc_qore.dox.h:96
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::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's code, tagged with the given label.
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::get_module_list
list< hash< auto > > get_module_list()
Returns a list of hashes describing the currently-loaded Qore modules.
Qore::parseBase64String
binary parseBase64String(string str)
Parses a base64 encoded string and returns a binary object of the decoded data.
Qore::parseBase64StringToString
string parseBase64StringToString(string str, *string encoding)
Parses a base64 encoded string and returns a string of the decoded data.
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::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::function_type
*string function_type(string name)
Returns "builtin" (for a builtin function), "user" (for a user function), or NOTHING (if the function...
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::load_module_warn
*hash< ExceptionInfo > load_module_warn(string name, int warning_mask=WARN_MODULES)
Loads in a Qore module at run-time.
Qore::get_module_option
auto get_module_option(string module, string option)
returns the given global module option
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::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::makeBase64String
string makeBase64String(string str, softint maxlinelen=-1)
Returns a base64-encoded representation of a string.
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::parse_base64_string
binary parse_base64_string(string str)
Parses a base64 encoded string and returns a binary object of the decoded data.
Qore::get_global_vars
hash< auto > get_global_vars()
returns a hash of global variables
Qore::exists_function
bool exists_function(string name)
Returns True if the function exists in the current program's function name space.
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::splice
string splice(string str)
This function always returns an empty string "".
Qore::get_script_path
*string get_script_path()
Returns the path (directory and filename) of the current script or NOTHING if unknown (i....
Qore::getClassName
string getClassName(object obj)
Returns the class name of the object passed.
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::parse_url
hash< UrlInfo > parse_url(string url, bool keep_brackets)
Parses a URL string and returns a hash of the components.
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::set_return_value
set_return_value(auto val)
sets the return value for a Program object when running with %exec-class
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_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::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::functionType
*string functionType(string name)
Returns "builtin" (for a builtin function), "user" (for a user function), or NOTHING (if the function...
Qore::hextoint
int hextoint(string str)
Returns an integer for a hexadecimal string value; throws an exception if non-hex digits are found.
Qore::encode_url
string encode_url(string url, softbool encode_all=False)
Encodes URLs by substituting '%' characters with '%25', spaces (' ') with '%20', and non-ascii charac...
Qore::get_parse_options
int get_parse_options()
returns the current parse options for the current Program object
Qore::get_call_reference
code get_call_reference(string identifier)
resolve the string as a call reference
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::parseHexString
binary parseHexString(string hexstr)
Parses a hex-encoded string and returns the binary object.
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::getModuleList
list< hash< auto > > getModuleList()
Returns a list of hashes describing the currently-loaded Qore modules.
Qore::getFeatureList
list< string > getFeatureList()
Returns a list of strings of the builtin and module-supplied features of Qore.
Qore::existsFunction
bool existsFunction(string name)
Returns True if the function exists in the current program's function name space.
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's c...
Qore::strtoint
int strtoint(string num, softint base=10)
parses a string representing a number in a configurable base and returns the integer
Qore::get_feature_list
list< string > get_feature_list()
Returns a list of strings of the builtin and module-supplied features of Qore.
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::make_base64_string
string make_base64_string(string str, softint maxlinelen=-1)
Returns a base64-encoded representation of a string.
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::get_default_encoding
string get_default_encoding()
Returns the name of the default character encoding.
Qore::set_module_option
nothing set_module_option(string module, string option, auto value)
set the given module option
Qore::html_encode
string html_encode(string str)
Returns a string with characters needing HTML escaping translated to HTML escape codes.
Qore::get_qore_library_info
hash< auto > get_qore_library_info()
Returns a hash of library build and version info.
Qore::get_class_name
string get_class_name(object obj)
Returns the class name of the object passed.
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_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::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::get_local_vars
hash< auto > get_local_vars(int frame)
retrieves a hash of local variables for the given stack frame
Qore::html_decode
string html_decode(string str)
Returns a string with any HTML escape codes translated to the original characters.
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::exists
bool exists(...)
A function performing the same role as the exists operator.
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::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::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::makeHexString
string makeHexString(string str)
Returns a hex-encoded representation of a string.
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::make_hex_string
string make_hex_string(string str)
Returns a hex-encoded representation of a string.
Qore::set_global_var_value
nothing set_global_var_value(string name, auto value)
set the value of a global variable
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::parse_hex_string
binary parse_hex_string(string hexstr)
Parses a hex-encoded string and returns the binary object.
Qore::backquote
string backquote(string cmd, *reference< int > rc)
Executes a process and returns a string of the output (stdout only)
Qore::load_module
nothing load_module(string name, int warning_mask=WARN_MODULES)
Loads in a Qore module at run-time.
Qore::hash_values
list< auto > hash_values(hash< auto > h)
Returns a list of all the values in the hash argument passed.
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::QURL_KEEP_BRACKETS
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:2214
Qore::QURL_DECODE
const QURL_DECODE
Perform percent decoding on the "host", "username", and "password" fields.
Definition: ql_misc.dox.h:2207
Qore::QURL_DECODE_PATH
const QURL_DECODE_PATH
Decodes all fields like QURL_DECODE plus also performs percent decoding on "path" and "query" fields.
Definition: ql_misc.dox.h:2209
Qore::SIGUSR1
const SIGUSR1
SIGUSR1.
Definition: ql_misc.dox.h:2446
Qore::SIGXRES
const SIGXRES
SIGXRES.
Definition: ql_misc.dox.h:2460
Qore::SIGALRM
const SIGALRM
SIGALRM.
Definition: ql_misc.dox.h:2374
Qore::SIGHUP
const SIGHUP
SIGHUP.
Definition: ql_misc.dox.h:2392
Qore::SIGTTOU
const SIGTTOU
SIGTTOU.
Definition: ql_misc.dox.h:2442
Qore::SIGLWP
const SIGLWP
SIGLWP.
Definition: ql_misc.dox.h:2412
Qore::SIGCHLD
const SIGCHLD
SIGCHLD.
Definition: ql_misc.dox.h:2380
Qore::SIGSYS
const SIGSYS
SIGSYS.
Definition: ql_misc.dox.h:2430
Qore::SIGPOLL
const SIGPOLL
SIGPOLL.
Definition: ql_misc.dox.h:2416
Qore::SIGABRT
const SIGABRT
SIGABRT.
Definition: ql_misc.dox.h:2372
Qore::SIGWAITING
const SIGWAITING
SIGWAITING.
Definition: ql_misc.dox.h:2452
Qore::SIGVTALRM
const SIGVTALRM
SIGVTALRM.
Definition: ql_misc.dox.h:2450
Qore::SIGTSTP
const SIGTSTP
SIGTSTP.
Definition: ql_misc.dox.h:2438
Qore::SIGXFSZ
const SIGXFSZ
SIGXFSZ.
Definition: ql_misc.dox.h:2458
Qore::SIGBUS
const SIGBUS
SIGBUS.
Definition: ql_misc.dox.h:2376
Qore::SIGSTKFLT
const SIGSTKFLT
SIGSTKFLT.
Definition: ql_misc.dox.h:2426
Qore::SIGPIPE
const SIGPIPE
SIGPIPE.
Definition: ql_misc.dox.h:2414
Qore::SIGPROF
const SIGPROF
SIGPROF.
Definition: ql_misc.dox.h:2418
Qore::SIGILL
const SIGILL
SIGILL.
Definition: ql_misc.dox.h:2394
Qore::SIGCLD
const SIGCLD
SIGCLD.
Definition: ql_misc.dox.h:2382
Qore::SIGURG
const SIGURG
SIGURG.
Definition: ql_misc.dox.h:2444
Qore::SIGTRAP
const SIGTRAP
SIGTRAP.
Definition: ql_misc.dox.h:2436
Qore::SIGTHAW
const SIGTHAW
SIGTHAW.
Definition: ql_misc.dox.h:2434
Qore::SIGCANCEL
const SIGCANCEL
SIGCANCEL.
Definition: ql_misc.dox.h:2378
Qore::SIGSTOP
const SIGSTOP
SIGSTOP.
Definition: ql_misc.dox.h:2428
Qore::SIGWINCH
const SIGWINCH
SIGWINCH.
Definition: ql_misc.dox.h:2454
Qore::SIGEMT
const SIGEMT
SIGEMT.
Definition: ql_misc.dox.h:2386
Qore::SIGINFO
const SIGINFO
SIGINFO.
Definition: ql_misc.dox.h:2396
Qore::SIGFPE
const SIGFPE
SIGFPE.
Definition: ql_misc.dox.h:2388
Qore::SIGLOST
const SIGLOST
SIGLOST.
Definition: ql_misc.dox.h:2410
Qore::NameToSignal
const NameToSignal
maps signal names to signal values
Definition: ql_misc.dox.h:2324
Qore::SIGKILL
const SIGKILL
SIGKILL.
Definition: ql_misc.dox.h:2408
Qore::SignalToName
const SignalToName
maps signal numbers (as a string key) to the symbolic name for the signal
Definition: ql_misc.dox.h:2462
Qore::SIGQUIT
const SIGQUIT
SIGQUIT.
Definition: ql_misc.dox.h:2422
Qore::SIGIOT
const SIGIOT
SIGIOT.
Definition: ql_misc.dox.h:2402
Qore::SIGTERM
const SIGTERM
SIGTERM.
Definition: ql_misc.dox.h:2432
Qore::SIGTTIN
const SIGTTIN
SIGTTIN.
Definition: ql_misc.dox.h:2440
Qore::SIGUSR2
const SIGUSR2
SIGUSR2.
Definition: ql_misc.dox.h:2448
Qore::SIGCONT
const SIGCONT
SIGCONT.
Definition: ql_misc.dox.h:2384
Qore::SIGIO
const SIGIO
SIGIO.
Definition: ql_misc.dox.h:2400
Qore::SIGXCPU
const SIGXCPU
SIGXCPU.
Definition: ql_misc.dox.h:2456
Qore::SIGSEGV
const SIGSEGV
SIGSEGV.
Definition: ql_misc.dox.h:2424
Qore::SIGJVM1
const SIGJVM1
SIGJVM1.
Definition: ql_misc.dox.h:2404
Qore::SIGFREEZE
const SIGFREEZE
SIGFREEZE.
Definition: ql_misc.dox.h:2390
Qore::SIGINT
const SIGINT
SIGINT.
Definition: ql_misc.dox.h:2398
Qore::SIGJVM2
const SIGJVM2
SIGJVM2.
Definition: ql_misc.dox.h:2406
Qore::SIGPWR
const SIGPWR
SIGPWR.
Definition: ql_misc.dox.h:2420
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::remove_signal_handler
nothing remove_signal_handler(softint signal)
Removes a signal handler and returns the signal handling state to the default.
Qore::binary
binary binary()
Always returns an empty binary object (of zero length)
Qore::WARN_MODULES
const WARN_MODULES
The default warning mask for user modules.
Definition: QC_Program.dox.h:2056
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
Qore::UrlInfo
a hash describing a parsed URL
Definition: ql_misc.dox.h:7
Qore::UrlInfo::host
string host
the hostname given in the URL string, if any
Definition: ql_misc.dox.h:9
Qore::UrlInfo::path
string path
the path given in the URL string, if present
Definition: ql_misc.dox.h:13
Qore::UrlInfo::username
string username
the username of the URL, if present
Definition: ql_misc.dox.h:21
Qore::UrlInfo::password
string password
the password given in the URL, if any
Definition: ql_misc.dox.h:11
Qore::UrlInfo::query
string query
the query part of the URL (i.e. text after any '?' char), if present
Definition: ql_misc.dox.h:19
Qore::UrlInfo::port
int port
the port number given in the URL string, if any
Definition: ql_misc.dox.h:15
Qore::UrlInfo::protocol
string protocol
the scheme or protocol of the URL, if present
Definition: ql_misc.dox.h:17