All Classes Namespaces Functions Variables Groups Pages
ql_misc.dox.h
namespace Qore {
nothing remove_signal_handler(softint signal);
nothing set_signal_handler(softint signal, code f);
};
namespace Qore {
string backquote(string cmd, *reference rc);
nothing backquote();
any call_builtin_function(string name, ...);
any call_builtin_function_args(string name, *softlist vargs);
any call_function(string name, ...);
any call_function(code f, ...);
any call_function_args(string name, *softlist vargs);
any call_function_args(code f, *softlist vargs);
string decode_url(string url);
nothing decode_url();
string encode_url(string url, softbool encode_all = False);
bool exists( ...);
bool existsFunction(string name);
bool existsFunction(code c);
nothing existsFunction();
*string functionType(string name);
nothing functionType();
*int getByte(string str, softint offset = 0);
nothing getByte();
*int getByte(binary b, softint offset = 0);
string getClassName(object obj);
nothing getClassName();
list getFeatureList();
hash getModuleHash();
list getModuleList();
*int getWord32(string str, softint offset = 0);
*int getWord32(binary b, softint offset = 0);
nothing getWord32();
*int get_byte(string str, softint offset = 0);
*int get_byte(binary b, softint offset = 0);
string get_default_encoding();
string get_ex_pos(hash ex);
int get_parse_options();
hash get_qore_library_info();
hash get_qore_option_hash();
list get_qore_option_list();
*string get_script_dir();
*string get_script_name();
*string get_script_path();
*int get_word_16(string str, softint offset = 0);
*int get_word_16(binary b, softint offset = 0);
*int get_word_16_lsb(string str, softint offset = 0);
*int get_word_16_lsb(binary b, softint offset = 0);
*int get_word_32(string str, softint offset = 0);
*int get_word_32(binary b, softint offset = 0);
*int get_word_32_lsb(string str, softint offset = 0);
*int get_word_32_lsb(binary b, softint offset = 0);
*int get_word_64(string str, softint offset = 0);
*int get_word_64(binary b, softint offset = 0);
*int get_word_64_lsb(string str, softint offset = 0);
*int get_word_64_lsb(binary b, softint offset = 0);
bool has_key(hash h, string key);
bool has_key(object obj, string key);
list hash_values(hash h);
nothing hash_values();
int hextoint(string str);
nothing hextoint();
string html_decode(string str);
nothing html_decode();
string html_encode(string str);
nothing html_encode();
nothing load_module(string name);
nothing load_module();
string makeBase64String(string str, softint maxlinelen = -1);
string makeBase64String(binary bin, softint maxlinelen = -1);
nothing makeBase64String();
string makeHexString(string str);
string makeHexString(binary bin);
nothing makeHexString();
*hash parse(string code, string label, *softint warning_mask, *string source, *softint offset, softbool format_label = True);
nothing parse();
binary parseBase64String(string str);
nothing parseBase64String();
string parseBase64StringToString(string str, *string encoding);
nothing parseBase64StringToString();
binary parseHexString(string hexstr);
nothing parseHexString();
*hash parseURL(string url, bool keep_brackets = False);
nothing parseURL();
hash parse_url(string url, bool keep_brackets = False);
string splice(string str);
string splice(string str, softint start);
string splice(string str, softint start, softint len, *string nstr);
list splice(list l, softint start);
list splice(list l, softint start, softint len, *softlist nlist);
nothing splice();
int strtoint(string num, softint base = 10);
nothing strtoint();
};
namespace Qore {
const NameToSignal = (
"SIGABRT": SIGABRT,
"SIGALRM": SIGALRM,
"SIGBUS": SIGBUS,
"SIGCANCEL": SIGCANCEL,
"SIGCHLD": SIGCHLD,
"SIGCLD": SIGCLD,
"SIGCONT": SIGCONT,
"SIGEMT": SIGEMT,
"SIGFPE": SIGFPE,
"SIGFREEZE": SIGFREEZE,
"SIGHUP": SIGHUP,
"SIGILL": SIGILL,
"SIGINFO": SIGINFO,
"SIGINT": SIGINT,
"SIGIO": SIGIO,
"SIGIOT": SIGIOT,
"SIGJVM1": SIGJVM1,
"SIGJVM2": SIGJVM2,
"SIGKILL": SIGKILL,
"SIGLOST": SIGLOST,
"SIGLWP": SIGLWP,
"SIGPIPE": SIGPIPE,
"SIGPOLL": SIGPOLL,
"SIGPROF": SIGPROF,
"SIGPWR": SIGPWR,
"SIGQUIT": SIGQUIT,
"SIGSEGV": SIGSEGV,
"SIGSTKFLT": SIGSTKFLT,
"SIGSTOP": SIGSTOP,
"SIGSYS": SIGSYS,
"SIGTERM": SIGTERM,
"SIGTHAW": SIGTHAW,
"SIGTRAP": SIGTRAP,
"SIGTSTP": SIGTSTP,
"SIGTTIN": SIGTTIN,
"SIGTTOU": SIGTTOU,
"SIGURG": SIGURG,
"SIGUSR1": SIGUSR1,
"SIGUSR2": SIGUSR2,
"SIGVTALRM": SIGVTALRM,
"SIGWAITING": SIGWAITING,
"SIGWINCH": SIGWINCH,
"SIGXCPU": SIGXCPU,
"SIGXFSZ": SIGXFSZ,
"SIGXRES": SIGXRES,
);
const SIGABRT = SIGABRT;
const SIGALRM = SIGALRM;
const SIGBUS = SIGBUS;
const SIGCANCEL = SIGCANCEL;
const SIGCHLD = SIGCHLD;
const SIGCLD = SIGCLD;
const SIGCONT = SIGCONT;
const SIGEMT = SIGEMT;
const SIGFPE = SIGFPE;
const SIGFREEZE = SIGFREEZE;
const SIGHUP = SIGHUP;
const SIGILL = SIGILL;
const SIGINFO = SIGINFO;
const SIGINT = SIGINT;
const SIGIO = SIGIO;
const SIGIOT = SIGIOT;
const SIGJVM1 = SIGJVM1;
const SIGJVM2 = SIGJVM2;
const SIGKILL = SIGKILL;
const SIGLOST = SIGLOST;
const SIGLWP = SIGLWP;
const SIGPIPE = SIGPIPE;
const SIGPOLL = SIGPOLL;
const SIGPROF = SIGPROF;
const SIGPWR = SIGPWR;
const SIGQUIT = SIGQUIT;
const SIGSEGV = SIGSEGV;
const SIGSTKFLT = SIGSTKFLT;
const SIGSTOP = SIGSTOP;
const SIGSYS = SIGSYS;
const SIGTERM = SIGTERM;
const SIGTHAW = SIGTHAW;
const SIGTRAP = SIGTRAP;
const SIGTSTP = SIGTSTP;
const SIGTTIN = SIGTTIN;
const SIGTTOU = SIGTTOU;
const SIGURG = SIGURG;
const SIGUSR1 = SIGUSR1;
const SIGUSR2 = SIGUSR2;
const SIGVTALRM = SIGVTALRM;
const SIGWAITING = SIGWAITING;
const SIGWINCH = SIGWINCH;
const SIGXCPU = SIGXCPU;
const SIGXFSZ = SIGXFSZ;
const SIGXRES = SIGXRES;
const SignalToName = (
SIGABRT: "SIGABRT",
SIGALRM: "SIGALRM",
SIGBUS: "SIGBUS",
SIGCANCEL: "SIGCANCEL",
SIGCHLD: "SIGCHLD",
SIGCONT: "SIGCONT",
SIGEMT: "SIGEMT",
SIGFPE: "SIGFPE",
SIGFREEZE: "SIGFREEZE",
SIGHUP: "SIGHUP",
SIGILL: "SIGILL",
SIGINFO: "SIGINFO",
SIGINT: "SIGINT",
SIGIO: "SIGIO",
SIGIOT: "SIGIOT",
SIGJVM1: "SIGJVM1",
SIGJVM2: "SIGJVM2",
SIGKILL: "SIGKILL",
SIGLOST: "SIGLOST",
SIGLWP: "SIGLWP",
SIGPIPE: "SIGPIPE",
SIGPOLL: "SIGPOLL",
SIGPROF: "SIGPROF",
SIGPWR: "SIGPWR",
SIGQUIT: "SIGQUIT",
SIGSEGV: "SIGSEGV",
SIGSTKSZ: "SIGSTKSZ",
SIGSTOP: "SIGSTOP",
SIGSYS: "SIGSYS",
SIGTERM: "SIGTERM",
SIGTHAW: "SIGTHAW",
SIGTRAP: "SIGTRAP",
SIGTSTP: "SIGTSTP",
SIGTTIN: "SIGTTIN",
SIGTTOU: "SIGTTOU",
SIGURG: "SIGURG",
SIGUSR1: "SIGUSR1",
SIGUSR2: "SIGUSR2",
SIGVTALRM: "SIGVTALRM",
SIGWAITING: "SIGWAITING",
SIGWINCH: "SIGWINCH",
SIGXCPU: "SIGXCPU",
SIGXFSZ: "SIGXFSZ",
SIGXRES: "SIGXRES",
);
};
Qore::SIGKILL
const SIGKILL
SIGKILL.
Definition: ql_misc.dox.h:1541
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:1563
Qore::SIGINFO
const SIGINFO
SIGINFO.
Definition: ql_misc.dox.h:1529
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::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:1577
Qore::get_qore_option_hash
hash get_qore_option_hash()
Returns a hash of hashes giving information about Qore library options for the current build...
Qore::call_function
any call_function(string name,...)
Calls a function and returns the return value, passing the remaining arguments after the function nam...
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::SIGPROF
const SIGPROF
SIGPROF.
Definition: ql_misc.dox.h:1551
Qore::SIGSTKFLT
const SIGSTKFLT
SIGSTKFLT.
Definition: ql_misc.dox.h:1559
Qore::parse
*hash 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::SIGBUS
const SIGBUS
SIGBUS.
Definition: ql_misc.dox.h:1509
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:1575
Qore::SIGQUIT
const SIGQUIT
SIGQUIT.
Definition: ql_misc.dox.h:1555
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::SIGWINCH
const SIGWINCH
SIGWINCH.
Definition: ql_misc.dox.h:1587
Qore::SIGPWR
const SIGPWR
SIGPWR.
Definition: ql_misc.dox.h:1553
Qore::True
const True
logical True
Definition: qc_qore.dox.h:94
Qore::SIGIO
const SIGIO
SIGIO.
Definition: ql_misc.dox.h:1533
Qore::SIGCLD
const SIGCLD
SIGCLD.
Definition: ql_misc.dox.h:1515
Qore::SIGUSR2
const SIGUSR2
SIGUSR2.
Definition: ql_misc.dox.h:1581
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:1583
Qore::parseURL
*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...
Qore::call_builtin_function
any call_builtin_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:1561
Qore::SIGTERM
const SIGTERM
SIGTERM.
Definition: ql_misc.dox.h:1565
Qore::SIGALRM
const SIGALRM
SIGALRM.
Definition: ql_misc.dox.h:1507
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::parseBase64StringToString
string parseBase64StringToString(string str, *string encoding)
Parses a base64 encoded string and returns a string of the decoded data.
Qore::SIGTRAP
const SIGTRAP
SIGTRAP.
Definition: ql_misc.dox.h:1569
Qore::False
const False
logical False
Definition: qc_qore.dox.h:92
Qore::SIGCONT
const SIGCONT
SIGCONT.
Definition: ql_misc.dox.h:1517
Qore::list
list list(...)
Returns a list of the arguments passed at the top level.
Qore::load_module
nothing load_module(string name)
Loads in a Qore module at run-time.
Qore::SIGLWP
const SIGLWP
SIGLWP.
Definition: ql_misc.dox.h:1545
Qore::SIGTTIN
const SIGTTIN
SIGTTIN.
Definition: ql_misc.dox.h:1573
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::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::SIGJVM2
const SIGJVM2
SIGJVM2.
Definition: ql_misc.dox.h:1539
Qore::SIGCHLD
const SIGCHLD
SIGCHLD.
Definition: ql_misc.dox.h:1513
Qore::hash_values
list hash_values(hash h)
Returns a list of all the values in the hash argument passed.
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:1557
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::SIGEMT
const SIGEMT
SIGEMT.
Definition: ql_misc.dox.h:1519
Qore::getFeatureList
list getFeatureList()
Returns a list of strings of the builtin and module-supplied features of Qore.
Qore::SIGABRT
const SIGABRT
SIGABRT.
Definition: ql_misc.dox.h:1505
Qore::splice
string splice(string str)
This function always returns an empty string &quot;&quot;.
Qore::SignalToName
const SignalToName
maps signal numbers (as a string key) to the symbolic name for the signal
Definition: ql_misc.dox.h:1595
Qore::functionType
*string functionType(string name)
Returns &quot;builtin&quot; (for a builtin function), &quot;user&quot; (for a user function), or NOTHING (if the function...
Qore::SIGFREEZE
const SIGFREEZE
SIGFREEZE.
Definition: ql_misc.dox.h:1523
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::SIGPOLL
const SIGPOLL
SIGPOLL.
Definition: ql_misc.dox.h:1549
Qore::SIGXCPU
const SIGXCPU
SIGXCPU.
Definition: ql_misc.dox.h:1589
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:1525
Qore::SIGILL
const SIGILL
SIGILL.
Definition: ql_misc.dox.h:1527
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_url
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...
Qore::SIGJVM1
const SIGJVM1
SIGJVM1.
Definition: ql_misc.dox.h:1537
Qore::SIGTSTP
const SIGTSTP
SIGTSTP.
Definition: ql_misc.dox.h:1571
Qore::call_builtin_function_args
any call_builtin_function_args(string name, *softlist vargs)
Calls a function and returns the return value, using the optional second argument as a list of argume...
Qore::SIGFPE
const SIGFPE
SIGFPE.
Definition: ql_misc.dox.h:1521
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:1579
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:1585
Qore::call_function_args
any call_function_args(string name, *softlist vargs)
Calls a function and returns the return value, using the optional second argument as a list of argume...
Qore::existsFunction
bool existsFunction(string name)
Returns True if the function exists in the current program&#39;s function name space. ...
Qore::backquote
string backquote(string cmd, *reference rc)
Executes a process and returns a string of the output (stdout only)
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 charact...
Qore::SIGINT
const SIGINT
SIGINT.
Definition: ql_misc.dox.h:1531
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_qore_option_list
list get_qore_option_list()
Returns a list of hashes giving information about Qore library options for the current build...
Qore::NameToSignal
const NameToSignal
maps signal names to signal values
Definition: ql_misc.dox.h:1457
Qore::SIGXFSZ
const SIGXFSZ
SIGXFSZ.
Definition: ql_misc.dox.h:1591
Qore::get_ex_pos
string get_ex_pos(hash ex)
returns a descriptive string for an exception location; the source and offset information will also b...
Qore::getModuleList
list getModuleList()
Returns a list of hashes describing the currently-loaded Qore modules.
Qore::hash
hash hash(object obj)
Returns a hash of an object&#39;s members.
Qore::SIGIOT
const SIGIOT
SIGIOT.
Definition: ql_misc.dox.h:1535
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::has_key
bool has_key(hash h, string key)
Returns True if the given key exists in the hash (does not necessarily have to have a value assigned)...
Qore::SIGPIPE
const SIGPIPE
SIGPIPE.
Definition: ql_misc.dox.h:1547
Qore::SIGCANCEL
const SIGCANCEL
SIGCANCEL.
Definition: ql_misc.dox.h:1511
Qore::getModuleHash
hash getModuleHash()
Returns a hash of hashes describing the currently-loaded Qore modules; the top-level hash keys are th...
Qore::get_qore_library_info
hash get_qore_library_info()
Returns a hash of library build and version info.
Qore::SIGXRES
const SIGXRES
SIGXRES.
Definition: ql_misc.dox.h:1593
Qore::SIGTHAW
const SIGTHAW
SIGTHAW.
Definition: ql_misc.dox.h:1567
Qore::SIGLOST
const SIGLOST
SIGLOST.
Definition: ql_misc.dox.h:1543