Qore Programming Language Reference Manual  0.8.7
 All Classes Namespaces Functions Variables Groups Pages
ql_string.dox.h
1 
3 namespace Qore {
149 
151 
178 int bindex(softstring str, softstring substr, softint pos = 0);
179 
181 
185 int bindex();
186 
188 
215 int brindex(softstring str, softstring substr, softint pos = -1);
216 
218 
222 int brindex();
223 
225 
241 string chomp(string str);
242 
244 
255 *string chomp(reference str);
256 
258 
262 nothing chomp();
263 
265 
280 string chr(softint val, *string encoding);
281 
283 
288 string chr(any arg);
289 
291 
295 nothing chr();
296 
298 
313 string convert_encoding(string str, string encoding);
314 
316 
320 nothing convert_encoding();
321 
323 
342 string f_printf(string fmt, ...);
343 
345 
349 string f_printf();
350 
352 
371 string f_sprintf(string fmt, ...);
372 
374 
378 string f_sprintf();
379 
381 
402 string f_vprintf(string fmt, any varg);
403 
405 
426 string f_vsprintf(string fmt, any varg);
427 
429 
437 nothing flush();
438 
440 
455 string force_encoding(string str, string encoding);
456 
458 
462 nothing force_encoding();
463 
465 
484 string format_number(string fmt, softfloat num);
485 
487 
491 nothing format_number();
492 
494 
508 string get_encoding(string str);
509 
511 
515 nothing get_encoding();
516 
518 
547 int index(softstring str, softstring substr, softint pos = 0);
548 
550 
554 int index();
555 
557 
572 string join(string str, ...);
573 
575 
592 string join(string str, list l);
593 
595 
599 nothing join();
600 
602 
625 int length(softstring str);
626 
628 
642 int length(binary bin);
643 
645 
649 nothing length();
650 
652 
656 int length(any arg);
657 
659 
674 int ord(softstring str, softint offset = 0);
675 
677 
681 int ord();
682 
684 
696 bool parse_boolean(string str);
697 
699 
709 bool parse_boolean( ...);
710 
712 
724 nothing print( ...);
725 
727 
746 string printf(string fmt, ...);
747 
749 
756 string printf();
757 
759 
783 bool regex(string str, string regex, int options = 0);
784 
786 
790 nothing regex();
791 
793 
817 *list regex_extract(string str, string regex, int options = 0);
818 
820 
824 nothing regex_extract();
825 
827 
852 string regex_subst(string str, string regex, string subst, int options = 0);
853 
855 
859 nothing regex_subst();
860 
862 
882 string replace(string str, string source, string target);
883 
885 
889 nothing replace();
890 
892 
908 string reverse(softstring str);
909 
911 
940 int rindex(softstring str, softstring substr, softint pos = -1);
941 
943 
947 int rindex();
948 
950 
968 list split(string sep, string str, bool with_separator = False);
969 
971 
995 list split(string sep, string str, string quote, bool trim_unquoted = False);
996 
998 
1013 list split(binary sep, binary data);
1014 
1016 
1020 list split();
1021 
1023 
1042 string sprintf(string fmt, ...);
1043 
1045 
1049 string sprintf();
1050 
1052 
1072 int strlen(softstring str);
1073 
1075 
1079 nothing strlen();
1080 
1082 
1086 int strlen(any arg);
1087 
1089 
1103 string strmul(softstring str, softint smul, *softint offset);
1104 
1106 
1126 string substr(softstring str, softint start);
1127 
1129 
1150 string substr(softstring str, softint start, softint len);
1151 
1153 
1157 nothing substr();
1158 
1160 
1181 string tolower(string str);
1182 
1184 
1188 nothing tolower();
1189 
1191 
1212 string toupper(string str);
1213 
1215 
1219 nothing toupper();
1220 
1222 
1239 string trim(string str, *string chars);
1240 
1242 
1258 *string trim(reference str, *string chars);
1259 
1261 
1265 nothing trim();
1266 
1268 
1284 string trunc_str(softstring str, softint len, *string encoding);
1285 
1287 
1306 string vprintf(string fmt, ...);
1307 
1309 
1313 string vprintf();
1314 
1316 
1335 string vsprintf(string fmt, any varg);
1336 
1338 
1342 string vsprintf();
1343 
1345 };
1346 
1348 namespace Qore {
1354 
1356  const RE_Caseless = PCRE_CASELESS;
1358  const RE_DotAll = PCRE_DOTALL;
1360  const RE_Extended = PCRE_EXTENDED;
1362  const RE_Global = QRE_GLOBAL;
1364  const RE_MultiLine = PCRE_MULTILINE;
1366 };