Loading...
Searching...
No Matches
ql_string.dox.h
namespace Qore {
int bindex(softstring str, softstring substr, softint pos = 0);
int bindex();
int brindex(softstring str, softstring substr, softint pos = -1);
int brindex();
int char_width(softstring str);
string chomp(string str);
*string chomp(reference<string> str);
nothing chomp();
string chr(softint val, *string encoding);
string chr(auto arg);
nothing chr();
string convert_encoding(string str, string encoding);
nothing convert_encoding();
string f_printf(string fmt, ...);
string f_printf();
string f_sprintf(string fmt, ...);
string f_sprintf();
string f_vprintf(string fmt, auto varg);
string f_vsprintf(string fmt, auto varg);
nothing flush();
string force_encoding(string str, string encoding);
nothing force_encoding();
string format_number(string fmt, softfloat num);
nothing format_number();
string get_encoding(string str);
nothing get_encoding();
int index(softstring str, softstring substr, softint pos = 0);
int index();
string join(string str, ...);
string join(string str, list<auto> l);
nothing join();
int length(softstring str);
int length(binary bin);
nothing length();
int length(auto arg);
string ltrim(string str, *string chars);
*string ltrim(reference<string> str, *string chars);
int ord(softstring str, softint offset = 0);
int ord();
bool parse_boolean(string str);
bool parse_boolean(any val);
float parse_float(string str, string fmt);
int parse_int(string str, string fmt);
number parse_number(string str, string fmt);
nothing print( ...);
string printf(string fmt, ...);
string printf();
bool regex(string str, string regex, int options = 0);
nothing regex();
*list<*string> regex_extract(string str, string regex, int options = 0);
nothing regex_extract();
string regex_subst(string str, string regex, string subst, int options = 0);
nothing regex_subst();
string replace(string str, string source, string target, int start = 0, int end = -1);
nothing replace();
string reverse(softstring str);
int rindex(softstring str, softstring substr, softint pos = -1);
int rindex();
string rtrim(string str, *string chars);
*string rtrim(reference<string> str, *string chars);
list<string> split(string sep, string str, bool with_separator = False);
list<string> split(string sep, string str, string quote, bool trim_unquoted = False);
list<binary> split(data sep, binary data);
list<string> split();
string sprintf(string fmt, ...);
string sprintf();
int strlen(softstring str);
nothing strlen();
int strlen(auto arg);
string strmul(softstring str, softint smul, *softint offset);
string substr(softstring str, softint start);
string substr(softstring str, softint start, softint len);
binary substr(binary b, softint start);
binary substr(binary b, softint start, softint len);
nothing substr();
string tolower(string str);
nothing tolower();
string toupper(string str);
nothing toupper();
string trim(string str, *string chars);
*string trim(reference<string> str, *string chars);
nothing trim();
string trunc_str(softstring str, softint len, *string encoding);
string vprintf(string fmt, auto varg);
string vprintf();
string vsprintf(string fmt, auto varg);
string vsprintf();
}
namespace Qore {
const RE_Caseless = PCRE_CASELESS;
const RE_DotAll = PCRE_DOTALL;
const RE_Extended = PCRE_EXTENDED;
const RE_Global = QRE_GLOBAL;
const RE_MultiLine = PCRE_MULTILINE;
const RE_Unicode = PCRE_UCP;
}
Qore::False
const False
logical False
Definition: qc_qore.dox.h:96
Qore::reverse
nothing reverse()
This function variant does nothing at all.
Qore::RE_DotAll
const RE_DotAll
makes a dot (.) match a newline character, equivalent to /s
Definition: ql_string.dox.h:1663
Qore::RE_Unicode
const RE_Unicode
extens Posix matches to the full Unicode character set
Definition: ql_string.dox.h:1673
Qore::RE_Extended
const RE_Extended
ignores whitespace characters and enables comments prefixed by #, equivalent to /x
Definition: ql_string.dox.h:1665
Qore::RE_Caseless
const RE_Caseless
Ignores case when matching regular expressions, equivalent to /i
Definition: ql_string.dox.h:1661
Qore::RE_MultiLine
const RE_MultiLine
makes start-of-line (^) or end-of-line ($) match after or before any newline in the subject string,...
Definition: ql_string.dox.h:1669
Qore::RE_Global
const RE_Global
replace all matches globally in the string or extract all occurrences of the pattern(s) in the string...
Definition: ql_string.dox.h:1667
Qore::parse_number
number parse_number(string str, string fmt)
returns a number corresponding to the string and the argument, giving the format
Qore::replace
nothing replace()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::f_vprintf
string f_vprintf(string fmt, auto varg)
Outputs the string passed to standard output, using the first argument as a format string and a secon...
Qore::rtrim
string rtrim(string str, *string chars)
Removes byte characters from the end of a string and returns the new string.
Qore::vprintf
string vprintf()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::chomp
nothing chomp()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::regex_extract
nothing regex_extract()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::rindex
int rindex()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::strlen
nothing strlen()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::char_width
int char_width(softstring str)
Returns the width of characters in the string; some unicode characters take up multiple spaces on out...
Qore::length
nothing length()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::trunc_str
string trunc_str(softstring str, softint len, *string encoding)
Returns a truncated string with no more than the given number of bytes and optionally converted to a ...
Qore::f_vsprintf
string f_vsprintf(string fmt, auto varg)
Returns a formatted string based on a format string and other arguments given as a list after the for...
Qore::f_sprintf
string f_sprintf()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::flush
nothing flush()
Flushes output to the console output with print(), printf(), etc.
Qore::chr
nothing chr()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::substr
nothing substr()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::f_printf
string f_printf()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::parse_boolean
bool parse_boolean(string str)
tries to parse a string value as a boolean
Qore::get_encoding
nothing get_encoding()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::toupper
nothing toupper()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::join
nothing join()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::print
nothing print(...)
Outputs a string to standard output with no formatting.
Qore::format_number
nothing format_number()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::brindex
int brindex()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::ltrim
string ltrim(string str, *string chars)
Removes byte characters from the start of a string and returns the new string.
Qore::strmul
string strmul(softstring str, softint smul, *softint offset)
Returns a new string with a repeated string element and optionally removing trailing characters.
Qore::sprintf
string sprintf()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::bindex
int bindex()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::force_encoding
nothing force_encoding()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::regex_subst
nothing regex_subst()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::convert_encoding
nothing convert_encoding()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::regex
nothing regex()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::index
int index()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::vsprintf
string vsprintf()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::ord
int ord()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::split
list< string > split()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::parse_int
int parse_int(string str, string fmt)
returns an integer corresponding to a string representing the number and an argument giving the forma...
Qore::parse_float
float parse_float(string str, string fmt)
returns a floating-point value corresponding to a string representing the number and an argument givi...
Qore::tolower
nothing tolower()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::printf
string printf()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::trim
nothing trim()
This function variant does nothing at all; it is only included for backwards-compatibility with qore ...
Qore::number
number number()
Always returns 0.0.
Qore::binary
binary binary()
Always returns an empty binary object (of zero length)
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3