|
|
| PIString () |
| | Contructs an empty string.
|
| |
|
| PIString (const PIString &o) |
| | Contructs a copy of string.
|
| |
|
| PIString (PIString &&o) |
| | Move constructor.
|
| |
|
| PIString (const PIChar c) |
| | Contructs string with single character "c".
|
| |
|
| PIString (const char c) |
| | Contructs string with single character "c".
|
| |
| | PIString (const char *str) |
| | Contructs string from C-string "str" (system codepage). More...
|
| |
| | PIString (const wchar_t *str) |
| | Contructs string from wchar_t C-string "str". More...
|
| |
| | PIString (const char16_t *str) |
| | Contructs string from char16_t C-string "str". More...
|
| |
|
| PIString (const PIChar *str, const int len) |
| | Contructs string from "len" characters of buffer "str".
|
| |
| | PIString (const char *str, const int len) |
| | Contructs string from "len" characters of buffer "str" (system codepage). More...
|
| |
| | PIString (const int len, const char c) |
| | Contructs string as sequence of characters "c" of buffer with length "len". More...
|
| |
| | PIString (const int len, const PIChar c) |
| | Contructs string as sequence of characters "c" of buffer with length "len". More...
|
| |
|
PIString & | operator= (const PIString &o) |
| | Assign operator.
|
| |
|
PIString & | operator= (PIString &&o) |
| | Assign move operator.
|
| |
|
PIString & | operator= (const PIConstChars &o) |
| | Assign operator.
|
| |
|
PIString & | operator= (const char *o) |
| | Assign operator.
|
| |
|
PIString & | operator= (const char16_t *o) |
| | Assign operator.
|
| |
|
bool | operator== (const PIString &str) const |
| | Compare operator.
|
| |
|
bool | operator== (const PIChar c) const |
| | Compare operator.
|
| |
|
bool | operator== (const char *str) const |
| | Compare operator.
|
| |
|
bool | operator!= (const PIString &str) const |
| | Compare operator.
|
| |
|
bool | operator!= (const PIChar c) const |
| | Compare operator.
|
| |
|
bool | operator!= (const char *str) const |
| | Compare operator.
|
| |
|
bool | operator< (const PIString &str) const |
| | Compare operator.
|
| |
|
bool | operator< (const PIChar c) const |
| | Compare operator.
|
| |
|
bool | operator< (const char *str) const |
| | Compare operator.
|
| |
|
bool | operator> (const PIString &str) const |
| | Compare operator.
|
| |
|
bool | operator> (const PIChar c) const |
| | Compare operator.
|
| |
|
bool | operator> (const char *str) const |
| | Compare operator.
|
| |
|
bool | operator<= (const PIString &str) const |
| | Compare operator.
|
| |
|
bool | operator<= (const PIChar c) const |
| | Compare operator.
|
| |
|
bool | operator<= (const char *str) const |
| | Compare operator.
|
| |
|
bool | operator>= (const PIString &str) const |
| | Compare operator.
|
| |
|
bool | operator>= (const PIChar c) const |
| | Compare operator.
|
| |
|
bool | operator>= (const char *str) const |
| | Compare operator.
|
| |
| iterator | begin () |
| | Iterator to the first element. More...
|
| |
| iterator | end () |
| | Iterator to the element following the last element. More...
|
| |
| reverse_iterator | rbegin () |
| | Returns a reverse iterator to the first element of the reversed array. More...
|
| |
| reverse_iterator | rend () |
| | Returns a reverse iterator to the element. following the last element of the reversed array. More...
|
| |
| PIChar & | operator[] (size_t index) |
| | Full access to character by index. More...
|
| |
| const PIChar | at (size_t index) const |
| | Read only access to character by index. More...
|
| |
|
PIChar & | back () |
| | Returns the last character of the string.
|
| |
| PIString & | resize (size_t new_size, PIChar c=PIChar()) |
| | Sets size of the string, new characters are copied from c. More...
|
| |
|
PIString & | pop_back () |
| | Delete one character at the end of string.
|
| |
|
PIString & | pop_front () |
| | Delete one character at the benig of string.
|
| |
|
PIString & | remove (size_t index, size_t count=1) |
| | Removes count characters from the string, starting at index position.
|
| |
|
PIString & | fill (PIChar c=PIChar()) |
| | Assigns character 'c' to all string characters.
|
| |
|
PIString & | prepend (const char *str) |
| | Insert string "str" at the begin of string.
|
| |
|
PIString & | prepend (const PIString &str) |
| | Insert string "str" at the begin of string.
|
| |
|
PIString & | prepend (const PIChar c) |
| | Insert character c at the begin of string.
|
| |
|
PIString & | prepend (const char c) |
| | Insert character c at the begin of string.
|
| |
|
PIString & | push_front (const char *str) |
| | Insert string "str" at the begin of string.
|
| |
|
PIString & | push_front (const char16_t *str) |
| | Insert string "str" at the begin of string.
|
| |
|
PIString & | push_front (const PIString &str) |
| | Insert string "str" at the begin of string.
|
| |
|
PIString & | push_front (const PIChar c) |
| | Insert character c at the begin of string.
|
| |
|
PIString & | push_front (const char c) |
| | Insert character c at the begin of string.
|
| |
|
PIString & | append (const char *str) |
| | Insert string "str" at the end of string.
|
| |
|
PIString & | append (const char16_t *str) |
| | Insert string "str" at the end of string.
|
| |
|
PIString & | append (const PIString &str) |
| | Insert string "str" at the end of string.
|
| |
|
PIString & | append (const PIChar c) |
| | Insert character c at the end of string.
|
| |
|
PIString & | append (const char c) |
| | Insert character c at the end of string.
|
| |
|
PIString & | push_back (const char *str) |
| | Insert string "str" at the end of string.
|
| |
|
PIString & | push_back (const PIString &str) |
| | Insert string "str" at the end of string.
|
| |
|
PIString & | push_back (const PIChar c) |
| | Insert character c at the end of string.
|
| |
|
PIString & | push_back (const char c) |
| | Insert character c at the end of string.
|
| |
| PIString | mid (int start, int len=-1) const |
| | Returns part of string from character at index "start" and maximum length "len". More...
|
| |
|
PIString | subString (int start, int len=-1) const |
| | Synonym of mid().
|
| |
| PIString | left (int len) const |
| | Returns part of string from start and maximum length "len". More...
|
| |
| PIString | right (int len) const |
| | Returns part of string at end and maximum length "len". More...
|
| |
| PIString & | cutMid (int start, int len) |
| | Remove part of string from character as index "start" and maximum length "len" and return this string. More...
|
| |
| PIString & | cutLeft (int len) |
| | Remove part of string from start and maximum length "len" and return this string. More...
|
| |
| PIString & | cutRight (int len) |
| | Remove part of string at end and maximum length "len" and return this string. More...
|
| |
| PIString & | trim () |
| | Remove spaces at the start and at the end of string and return this string. More...
|
| |
| PIString | trimmed () const |
| | Returns copy of this string without spaces at the start and at the end. More...
|
| |
| PIString & | replace (const int from, const int count, const PIString &with) |
| | Replace part of string from index "from" and maximum length "len" with string "with" and return this string. More...
|
| |
| PIString | replaced (const int from, const int count, const PIString &with) const |
| | Replace part copy of this string from index "from" and maximum length "len" with string "with". More...
|
| |
| PIString & | replace (const PIString &what, const PIString &with, bool *ok=0) |
| | Replace first founded substring "what" with string "with" and return this string. More...
|
| |
| PIString | replaced (const PIString &what, const PIString &with, bool *ok=0) const |
| | Replace in string copy first founded substring "what" with string "with". More...
|
| |
| PIString & | replaceAll (const PIString &what, const PIString &with) |
| | Replace all founded substrings "what" with strings "with" and return this string. More...
|
| |
| PIString & | replaceAll (const PIString &what, const char with) |
| | Replace all founded substrings "what" with characters "with" and return this string. More...
|
| |
| PIString & | replaceAll (const char what, const char with) |
| | Replace all founded characters "what" with characters "with" and return this string. More...
|
| |
| PIString | replacedAll (const PIString &what, const PIString &with) const |
| | Replace all founded substrings "what" with strings "with" in string copy. More...
|
| |
| PIString | replacedAll (const PIString &what, const char with) const |
| | Replace all founded substrings "what" with characters "with" in string copy. More...
|
| |
| PIString | replacedAll (const char what, const char with) const |
| | Replace all founded characters "what" with characters "with" in string copy. More...
|
| |
|
PIString & | removeAll (const PIString &str) |
| | Remove all founded substrings "what" and return this string.
|
| |
|
PIString & | removeAll (char c) |
| | Remove all founded characters "what" and return this string.
|
| |
| PIString & | repeat (int times) |
| | Repeat content of string "times" times and return this string. More...
|
| |
| PIString | repeated (int times) const |
| | Returns repeated "times" times string. More...
|
| |
| PIString & | insert (const int index, const PIChar c) |
| | Insert character "c" after index "index" and return this string. More...
|
| |
| PIString & | insert (const int index, const char c) |
| | Insert character "c" after index "index" and return this string. More...
|
| |
| PIString & | insert (const int index, const PIString &str) |
| | Insert string "str" after index "index" and return this string. More...
|
| |
| PIString & | insert (const int index, const char *c) |
| | Insert string "str" after index "index" and return this string. More...
|
| |
| PIString & | insert (const int index, const char16_t *c) |
| | Insert string "str" after index "index" and return this string. More...
|
| |
| PIString & | expandRightTo (const int len, const PIChar c) |
| | Enlarge string to length "len" by addition characters "c" at the end, and return this string. More...
|
| |
| PIString & | expandLeftTo (const int len, const PIChar c) |
| | Enlarge string to length "len" by addition characters "c" at the begin, and return this string. More...
|
| |
| PIString | expandedRightTo (const int len, const PIChar c) const |
| | Enlarge copy of this string to length "len" by addition characters "c" at the end. More...
|
| |
| PIString | expandedLeftTo (const int len, const PIChar c) const |
| | Enlarge copy of this string to length "len" by addition characters "c" at the begin. More...
|
| |
| PIString & | quote (PIChar c=PIChar('"')) |
| | Add "c" characters at the beginning and end, and return this string. More...
|
| |
| PIString | quoted (PIChar c=PIChar('"')) |
| | Returns quoted copy of this string. More...
|
| |
| PIString & | reverse () |
| | Reverse string and return this string. More...
|
| |
| PIString | reversed () const |
| | Reverse copy of this string. More...
|
| |
| PIString & | elide (int size, float pos=ElideCenter) |
| | Fit string to maximum size "size" by inserting ".." at position "pos" and return this string. More...
|
| |
| PIString | elided (int size, float pos=ElideCenter) const |
| | Fit copy of this string to maximum size "size" by inserting ".." at position "pos". More...
|
| |
| PIString | takeMid (const int start, const int len=-1) |
| | Take a part of string from character at index "start" and maximum length "len" and return it. More...
|
| |
| PIString | takeLeft (const int len) |
| | Take a part from the begin of string with maximum length "len" and return it. More...
|
| |
| PIString | takeRight (const int len) |
| | Take a part from the end of string with maximum length "len" and return it. More...
|
| |
| PIString | takeSymbol () |
| | Take a character from the begin of this string and return it. More...
|
| |
| PIString | takeWord () |
| | Take a word from the begin of this string and return it. More...
|
| |
| PIString | takeCWord () |
| | Take a word with letters, numbers and '_' characters from the begin of this string and return it. More...
|
| |
| PIString | takeLine () |
| | Take a line from the begin of this string and return it. More...
|
| |
| PIString | takeNumber () |
| | Take a number with C-format from the begin of this string and return it. More...
|
| |
|
PIString | takeInteger () |
| | Take a digits from the begin of this string and return it.
|
| |
| PIString | takeRange (const PIChar start, const PIChar end, const PIChar shield='\\') |
| | Take a range between "start" and "end" characters from the begin of this string and return it. More...
|
| |
| PIString | inBrackets (const PIChar start, const PIChar end) const |
| | Returns string in brackets "start" and "end" characters from the beginning. More...
|
| |
| const char * | data () const |
| | Returns char * representation of this string in system codepage. More...
|
| |
| const char * | dataConsole () const |
| | Returns char * representation of this string in terminal codepage. More...
|
| |
| const char * | dataUTF8 () const |
| | Returns char * representation of this string in UTF-8. More...
|
| |
| const char * | dataAscii () const |
| | Returns char * representation of this string in ASCII. More...
|
| |
|
const size_t | lastDataSize () const |
| | Returns data size of last data*() call.
|
| |
|
uint | hash () const |
| | Returns hash of string.
|
| |
|
PIByteArray | toByteArray () const |
| | Same as toUTF8().
|
| |
|
PIByteArray | toAscii () const |
| | Returns PIByteArray contains dataAscii() of this string without terminating null-char.
|
| |
|
PIByteArray | toSystem () const |
| | Returns PIByteArray contains data() of this string without terminating null-char.
|
| |
|
PIByteArray | toUTF8 () const |
| | Returns PIByteArray contains dataUTF8() of this string without terminating null-char.
|
| |
|
PIByteArray | toCharset (const char *c) const |
| | Returns PIByteArray contains custom charset representation of this string without terminating null-char.
|
| |
|
PIString | simplified () const |
| | Returns PIString with non-ASCII symbols replaced with '?'.
|
| |
|
PIString & | mask (const PIString &symbols, const PIChar mc='\\') |
| | Insert before any symbol from "symbols" symbol "mc" and return this string.
|
| |
|
PIString & | unmask (const PIString &symbols, const PIChar mc='\\') |
| | Remove symbol "mc" before any symbol from "symbols" and return this string.
|
| |
| PIStringList | split (const PIString &delim) const |
| | Split string with delimiter "delim" to PIStringList. More...
|
| |
|
PIString | toUpperCase () const |
| | Convert each character in copied string to upper case.
|
| |
|
PIString | toLowerCase () const |
| | Convert each character in copied string to lower case.
|
| |
|
bool | contains (const char c) const |
| | Returns if string contains character "c".
|
| |
|
bool | contains (const PIChar c) const |
| | Returns if string contains character "c".
|
| |
|
bool | contains (const char *str) const |
| | Returns if string contains substring "str".
|
| |
|
bool | contains (const PIString &str) const |
| | Returns if string contains substring "str".
|
| |
|
bool | contains (const PIRegularExpression ®exp) const |
| | Returns if string match "regexp".
|
| |
| int | find (const char c, const int start=0) const |
| | Search character "c" from character at index "start" and return first occur position. More...
|
| |
|
int | find (PIChar c, const int start=0) const |
| | Search character "c" from character at index "start" and return first occur position.
|
| |
| int | find (const PIString &str, const int start=0) const |
| | Search substring "str" from character at index "start" and return first occur position. More...
|
| |
| int | find (const char *str, const int start=0) const |
| | Search substring "str" from character at index "start" and return first occur position. More...
|
| |
|
int | find (const PIRegularExpression ®exp, const int start=0) const |
| | Search match of "regexp" from character at index "start" and return first occur position.
|
| |
| int | findAny (const PIString &str, const int start=0) const |
| | Search any character of "str" from character at index "start" and return first occur position. More...
|
| |
| int | findAny (const char *str, const int start=0) const |
| | Search any character of "str" from character at index "start" and return first occur position. More...
|
| |
| int | findLast (const char c, const int start=0) const |
| | Search character "c" from character at index "start" and return last occur position. More...
|
| |
|
int | findLast (PIChar c, const int start=0) const |
| | Search character "c" from character at index "start" and return last occur position.
|
| |
| int | findLast (const PIString &str, const int start=0) const |
| | Search substring "str" from character at index "start" and return last occur position. More...
|
| |
| int | findLast (const char *str, const int start=0) const |
| | Search substring "str" from character at index "start" and return last occur position. More...
|
| |
|
int | findLast (const PIRegularExpression ®exp, const int start=0) const |
| | Search match of "regexp" from character at index "start" and return last occur position.
|
| |
| int | findAnyLast (const PIString &str, const int start=0) const |
| | Search any character of "str" from character at index "start" and return last occur position. More...
|
| |
| int | findAnyLast (const char *str, const int start=0) const |
| | Search any character of "str" from character at index "start" and return last occur position. More...
|
| |
| int | findWord (const PIString &word, const int start=0) const |
| | Search word "word" from character at index "start" and return first occur position. More...
|
| |
| int | findCWord (const PIString &word, const int start=0) const |
| | Search C-word "word" from character at index "start" and return first occur position. More...
|
| |
| int | findRange (const PIChar start, const PIChar end, const PIChar shield='\\', const int start_index=0, int *len=0) const |
| | Search range start between "start" and "end" characters at index "start_index" and return first occur position. More...
|
| |
| int | entries (const PIChar c) const |
| | Returns number of occurrences of character "c". More...
|
| |
| int | entries (const PIString &str) const |
| | Returns number of occurrences of string "str". More...
|
| |
|
int | lineNumber (int pos) const |
| | Returns line number of position "pos". Lines starts from 1.
|
| |
|
bool | startsWith (const char c) const |
| | Returns if string starts with "c".
|
| |
|
bool | startsWith (const PIChar c) const |
| | Returns if string starts with "c".
|
| |
|
bool | startsWith (const PIString &str) const |
| | Returns if string starts with "str".
|
| |
|
bool | endsWith (const char c) const |
| | Returns if string ends with "c".
|
| |
|
bool | endsWith (const PIChar c) const |
| | Returns if string ends with "c".
|
| |
|
bool | endsWith (const PIString &str) const |
| | Returns if string ends with "str".
|
| |
|
int | length () const |
| | Returns characters length of string.
|
| |
|
size_t | size () const |
| | Returns characters length of string.
|
| |
|
ssize_t | size_s () const |
| | Returns characters length of string.
|
| |
|
bool | isEmpty () const |
| | Returns true if string is empty, i.e. length = 0.
|
| |
|
bool | isNotEmpty () const |
| | Returns true if string is not empty, i.e. length > 0.
|
| |
| void | clear () |
| | Clear string, will be empty string. More...
|
| |
| bool | toBool () const |
| | Returns true if string equal "true", "yes", "on" or positive not null numeric value. More...
|
| |
|
char | toChar () const |
| | Returns char numeric value of string.
|
| |
| short | toShort (int base=-1, bool *ok=0) const |
| | Returns short numeric value of string in base "base". More...
|
| |
| ushort | toUShort (int base=-1, bool *ok=0) const |
| | Returns ushort numeric value of string in base "base". More...
|
| |
| int | toInt (int base=-1, bool *ok=0) const |
| | Returns int numeric value of string in base "base". More...
|
| |
| uint | toUInt (int base=-1, bool *ok=0) const |
| | Returns uint numeric value of string in base "base". More...
|
| |
| long | toLong (int base=-1, bool *ok=0) const |
| | Returns long numeric value of string in base "base". More...
|
| |
| ulong | toULong (int base=-1, bool *ok=0) const |
| | Returns ulong numeric value of string in base "base". More...
|
| |
| llong | toLLong (int base=-1, bool *ok=0) const |
| | Returns llong numeric value of string in base "base". More...
|
| |
| ullong | toULLong (int base=-1, bool *ok=0) const |
| | Returns ullong numeric value of string in base "base". More...
|
| |
| float | toFloat () const |
| | Returns float numeric value of string. More...
|
| |
| double | toDouble () const |
| | Returns double numeric value of string. More...
|
| |
| ldouble | toLDouble () const |
| | Returns ldouble numeric value of string. More...
|
| |
| PIString & | setNumber (const short value, int base=10, bool *ok=0) |
| | Set string content to text representation of "value" in base "base" and return this string. More...
|
| |
| PIString & | setNumber (const ushort value, int base=10, bool *ok=0) |
| | Set string content to text representation of "value" in base "base" and return this string. More...
|
| |
| PIString & | setNumber (const int value, int base=10, bool *ok=0) |
| | Set string content to text representation of "value" in base "base" and return this string. More...
|
| |
| PIString & | setNumber (const uint value, int base=10, bool *ok=0) |
| | Set string content to text representation of "value" in base "base" and return this string. More...
|
| |
| PIString & | setNumber (const long value, int base=10, bool *ok=0) |
| | Set string content to text representation of "value" in base "base" and return this string. More...
|
| |
| PIString & | setNumber (const ulong value, int base=10, bool *ok=0) |
| | Set string content to text representation of "value" in base "base" and return this string. More...
|
| |
| PIString & | setNumber (const llong &value, int base=10, bool *ok=0) |
| | Set string content to text representation of "value" in base "base" and return this string. More...
|
| |
| PIString & | setNumber (const ullong &value, int base=10, bool *ok=0) |
| | Set string content to text representation of "value" in base "base" and return this string. More...
|
| |
| PIString & | setNumber (const float value, char format='f', int precision=8) |
| | Set string content to text representation of "value" with format "format" and precision "precision" and return this string. More...
|
| |
| PIString & | setNumber (const double &value, char format='f', int precision=8) |
| | Set string content to text representation of "value" with format "format" and precision "precision" and return this string. More...
|
| |
| PIString & | setNumber (const ldouble &value, char format='f', int precision=8) |
| | Set string content to text representation of "value" with format "format" and precision "precision" and return this string. More...
|
| |
| PIString & | setReadableSize (llong bytes) |
| | Set string content to human readable size in B/KiB/MiB/GiB/TiB/PiB. More...
|
| |
|
PIString | toPercentageEncoding () const |
| | Returns percentage-encoded string.
|
| |
| PIString & | arg (const PIString &v) |
| | Replace all occurances like "%1", "%2", ... with lowest value to "v" and returns this string. More...
|
| |
|
PIString & | arg (short v, int base=10) |
| | Replace all occurances like "%1", "%2", ... with lowest value to "v" and returns this string.
|
| |
|
PIString & | arg (ushort v, int base=10) |
| | Replace all occurances like "%1", "%2", ... with lowest value to "v" and returns this string.
|
| |
| PIString & | arg (int v, int base=10) |
| | Replace all occurances like "%1", "%2", ... with lowest value to "v" and returns this string. More...
|
| |
|
PIString & | arg (uint v, int base=10) |
| | Replace all occurances like "%1", "%2", ... with lowest value to "v" and returns this string.
|
| |
|
PIString & | arg (long v, int base=10) |
| | Replace all occurances like "%1", "%2", ... with lowest value to "v" and returns this string.
|
| |
|
PIString & | arg (ulong v, int base=10) |
| | Replace all occurances like "%1", "%2", ... with lowest value to "v" and returns this string.
|
| |
|
PIString & | arg (llong v, int base=10) |
| | Replace all occurances like "%1", "%2", ... with lowest value to "v" and returns this string.
|
| |
|
PIString & | arg (ullong v, int base=10) |
| | Replace all occurances like "%1", "%2", ... with lowest value to "v" and returns this string.
|
| |
|
PIString & | arg (float v, char format='f', int precision=8) |
| | Replace all occurances like "%1", "%2", ... with lowest value to "v" and returns this string.
|
| |
| PIString & | arg (double v, char format='f', int precision=8) |
| | Replace all occurances like "%1", "%2", ... with lowest value to "v" and returns this string. More...
|
| |
|
PIString & | arg (ldouble v, char format='f', int precision=8) |
| | Replace all occurances like "%1", "%2", ... with lowest value to "v" and returns this string.
|
| |
| void | swap (PIString &str) |
| | Swaps string str other with this string. More...
|
| |