Qore Programming Language Reference Manual  0.8.7
 All Classes Namespaces Functions Variables Groups Pages
ql_misc.dox.h
1 
3 namespace Qore {
8 
10 
27 nothing remove_signal_handler(softint signal);
28 
30 
50 nothing set_signal_handler(softint signal, code f);
51 
53 };
54 
56 namespace Qore {
61 
63 
77 string backquote(string cmd);
78 
80 
87 nothing backquote();
88 
90 
107 any call_builtin_function(string name, ...);
108 
110 
127 any call_builtin_function_args(string name, *softlist vargs);
128 
130 
145 any call_function(string name, ...);
146 
148 
158 any call_function(code f, ...);
159 
161 
176 any call_function_args(string name, *softlist vargs);
177 
179 
189 any call_function_args(code f, *softlist vargs);
190 
192 
204 string decode_url(string url);
205 
207 
211 nothing decode_url();
212 
214 
226 bool exists( ...);
227 
229 
241 bool existsFunction(string name);
242 
244 
253 bool existsFunction(code c);
254 
256 
260 nothing existsFunction();
261 
263 
271 *string functionType(string name);
272 
274 
278 nothing functionType();
279 
281 
299 *int getByte(string str, softint offset = 0);
300 
302 
306 nothing getByte();
307 
309 
327 *int getByte(binary b, softint offset = 0);
328 
330 
338 string getClassName(object obj);
339 
341 
345 nothing getClassName();
346 
348 
359 
361 
382 
384 
405 
407 
426 *int getWord32(string str, softint offset = 0);
427 
429 
448 *int getWord32(binary b, softint offset = 0);
449 
451 
455 nothing getWord32();
456 
458 
474 *int get_byte(string str, softint offset = 0);
475 
477 
493 *int get_byte(binary b, softint offset = 0);
494 
496 
503 string get_default_encoding();
504 
506 
525 string get_ex_pos(hash ex);
526 
528 
540 int get_parse_options();
541 
543 
566 
568 
587 
589 
606 
608 
615 *string get_script_dir();
616 
618 
625 *string get_script_name();
626 
628 
635 *string get_script_path();
636 
638 
655 *int get_word_16(string str, softint offset = 0);
656 
658 
675 *int get_word_16(binary b, softint offset = 0);
676 
678 
695 *int get_word_16_lsb(string str, softint offset = 0);
696 
698 
715 *int get_word_16_lsb(binary b, softint offset = 0);
716 
718 
737 *int get_word_32(string str, softint offset = 0);
738 
740 
759 *int get_word_32(binary b, softint offset = 0);
760 
762 
781 *int get_word_32_lsb(string str, softint offset = 0);
782 
784 
801 *int get_word_32_lsb(binary b, softint offset = 0);
802 
804 
821 *int get_word_64(string str, softint offset = 0);
822 
824 
841 *int get_word_64(binary b, softint offset = 0);
842 
844 
861 *int get_word_64_lsb(string str, softint offset = 0);
862 
864 
881 *int get_word_64_lsb(binary b, softint offset = 0);
882 
884 
896 bool has_key(hash h, string key);
897 
899 
908 bool has_key(object obj, string key);
909 
911 
928 
930 
934 nothing hash_values();
935 
937 
948 int hextoint(string str);
949 
951 
955 nothing hextoint();
956 
958 
970 string html_decode(string str);
971 
973 
977 nothing html_decode();
978 
980 
992 string html_encode(string str);
993 
995 
999 nothing html_encode();
1000 
1002 
1022 nothing load_module(string name);
1023 
1025 
1032 nothing load_module();
1033 
1035 
1054 string makeBase64String(string str, softint maxlinelen = -1);
1055 
1057 
1074 string makeBase64String(binary bin, softint maxlinelen = -1);
1075 
1077 
1081 nothing makeBase64String();
1082 
1084 
1098 string makeHexString(string str);
1099 
1101 
1112 string makeHexString(binary bin);
1113 
1115 
1119 nothing makeHexString();
1120 
1122 
1147 *hash parse(string code, string label, *softint warning_mask, *string source, *softint offset, softbool format_label = True);
1148 
1150 
1157 nothing parse();
1158 
1160 
1175 binary parseBase64String(string str);
1176 
1178 
1182 nothing parseBase64String();
1183 
1185 
1203 string parseBase64StringToString(string str, *string encoding);
1204 
1206 
1210 nothing parseBase64StringToString();
1211 
1213 
1226 binary parseHexString(string hexstr);
1227 
1229 
1233 nothing parseHexString();
1234 
1236 
1254 *hash parseURL(string url, bool keep_brackets = False);
1255 
1257 
1261 nothing parseURL();
1262 
1264 
1284 hash parse_url(string url, bool keep_brackets = False);
1285 
1287 
1296 string splice(string str);
1297 
1299 
1313 string splice(string str, softint start);
1314 
1316 
1332 string splice(string str, softint start, softint len, *string nstr);
1333 
1335 
1347 list splice(list l, softint start);
1348 
1350 
1366 list splice(list l, softint start, softint len, *softlist nlist);
1367 
1369 
1373 nothing splice();
1374 
1376 
1388 int strtoint(string num, softint base = 10);
1389 
1391 
1395 nothing strtoint();
1396 
1398 };
1399 
1401 namespace Qore {
1406 
1408  const NameToSignal = (
1409  "SIGABRT": SIGABRT,
1410  "SIGALRM": SIGALRM,
1411  "SIGBUS": SIGBUS,
1412  "SIGCANCEL": SIGCANCEL,
1413  "SIGCHLD": SIGCHLD,
1414  "SIGCLD": SIGCLD,
1415  "SIGCONT": SIGCONT,
1416  "SIGEMT": SIGEMT,
1417  "SIGFPE": SIGFPE,
1418  "SIGFREEZE": SIGFREEZE,
1419  "SIGHUP": SIGHUP,
1420  "SIGILL": SIGILL,
1421  "SIGINFO": SIGINFO,
1422  "SIGINT": SIGINT,
1423  "SIGIO": SIGIO,
1424  "SIGIOT": SIGIOT,
1425  "SIGJVM1": SIGJVM1,
1426  "SIGJVM2": SIGJVM2,
1427  "SIGKILL": SIGKILL,
1428  "SIGLOST": SIGLOST,
1429  "SIGLWP": SIGLWP,
1430  "SIGPIPE": SIGPIPE,
1431  "SIGPOLL": SIGPOLL,
1432  "SIGPROF": SIGPROF,
1433  "SIGPWR": SIGPWR,
1434  "SIGQUIT": SIGQUIT,
1435  "SIGSEGV": SIGSEGV,
1436  "SIGSTKFLT": SIGSTKFLT,
1437  "SIGSTOP": SIGSTOP,
1438  "SIGSYS": SIGSYS,
1439  "SIGTERM": SIGTERM,
1440  "SIGTHAW": SIGTHAW,
1441  "SIGTRAP": SIGTRAP,
1442  "SIGTSTP": SIGTSTP,
1443  "SIGTTIN": SIGTTIN,
1444  "SIGTTOU": SIGTTOU,
1445  "SIGURG": SIGURG,
1446  "SIGUSR1": SIGUSR1,
1447  "SIGUSR2": SIGUSR2,
1448  "SIGVTALRM": SIGVTALRM,
1449  "SIGWAITING": SIGWAITING,
1450  "SIGWINCH": SIGWINCH,
1451  "SIGXCPU": SIGXCPU,
1452  "SIGXFSZ": SIGXFSZ,
1453  "SIGXRES": SIGXRES,
1454  );
1456  const SIGABRT = SIGABRT;
1458  const SIGALRM = SIGALRM;
1460  const SIGBUS = SIGBUS;
1464  const SIGCHLD = SIGCHLD;
1466  const SIGCLD = SIGCLD;
1468  const SIGCONT = SIGCONT;
1470  const SIGEMT = SIGEMT;
1472  const SIGFPE = SIGFPE;
1476  const SIGHUP = SIGHUP;
1478  const SIGILL = SIGILL;
1480  const SIGINFO = SIGINFO;
1482  const SIGINT = SIGINT;
1484  const SIGIO = SIGIO;
1486  const SIGIOT = SIGIOT;
1488  const SIGJVM1 = SIGJVM1;
1490  const SIGJVM2 = SIGJVM2;
1492  const SIGKILL = SIGKILL;
1494  const SIGLOST = SIGLOST;
1496  const SIGLWP = SIGLWP;
1498  const SIGPIPE = SIGPIPE;
1500  const SIGPOLL = SIGPOLL;
1502  const SIGPROF = SIGPROF;
1504  const SIGPWR = SIGPWR;
1506  const SIGQUIT = SIGQUIT;
1508  const SIGSEGV = SIGSEGV;
1512  const SIGSTOP = SIGSTOP;
1514  const SIGSYS = SIGSYS;
1516  const SIGTERM = SIGTERM;
1518  const SIGTHAW = SIGTHAW;
1520  const SIGTRAP = SIGTRAP;
1522  const SIGTSTP = SIGTSTP;
1524  const SIGTTIN = SIGTTIN;
1526  const SIGTTOU = SIGTTOU;
1528  const SIGURG = SIGURG;
1530  const SIGUSR1 = SIGUSR1;
1532  const SIGUSR2 = SIGUSR2;
1540  const SIGXCPU = SIGXCPU;
1542  const SIGXFSZ = SIGXFSZ;
1544  const SIGXRES = SIGXRES;
1546  const SignalToName = (
1547  SIGABRT: "SIGABRT",
1548  SIGALRM: "SIGALRM",
1549  SIGBUS: "SIGBUS",
1550  SIGCANCEL: "SIGCANCEL",
1551  SIGCHLD: "SIGCHLD",
1552  SIGCONT: "SIGCONT",
1553  SIGEMT: "SIGEMT",
1554  SIGFPE: "SIGFPE",
1555  SIGFREEZE: "SIGFREEZE",
1556  SIGHUP: "SIGHUP",
1557  SIGILL: "SIGILL",
1558  SIGINFO: "SIGINFO",
1559  SIGINT: "SIGINT",
1560  SIGIO: "SIGIO",
1561  SIGIOT: "SIGIOT",
1562  SIGJVM1: "SIGJVM1",
1563  SIGJVM2: "SIGJVM2",
1564  SIGKILL: "SIGKILL",
1565  SIGLOST: "SIGLOST",
1566  SIGLWP: "SIGLWP",
1567  SIGPIPE: "SIGPIPE",
1568  SIGPOLL: "SIGPOLL",
1569  SIGPROF: "SIGPROF",
1570  SIGPWR: "SIGPWR",
1571  SIGQUIT: "SIGQUIT",
1572  SIGSEGV: "SIGSEGV",
1573  SIGSTKSZ: "SIGSTKSZ",
1574  SIGSTOP: "SIGSTOP",
1575  SIGSYS: "SIGSYS",
1576  SIGTERM: "SIGTERM",
1577  SIGTHAW: "SIGTHAW",
1578  SIGTRAP: "SIGTRAP",
1579  SIGTSTP: "SIGTSTP",
1580  SIGTTIN: "SIGTTIN",
1581  SIGTTOU: "SIGTTOU",
1582  SIGURG: "SIGURG",
1583  SIGUSR1: "SIGUSR1",
1584  SIGUSR2: "SIGUSR2",
1585  SIGVTALRM: "SIGVTALRM",
1586  SIGWAITING: "SIGWAITING",
1587  SIGWINCH: "SIGWINCH",
1588  SIGXCPU: "SIGXCPU",
1589  SIGXFSZ: "SIGXFSZ",
1590  SIGXRES: "SIGXRES",
1591  );
1593 };