Functions | |
PINLINE PString | operator+ (const char *cstr, const PString &str) |
PINLINE PString | operator+ (char c, const PString &str) |
PINLINE PString | operator & (const char *cstr, const PString &str) |
PINLINE PString | operator & (char c, const PString &str) |
PINLINE PString | pvsprintf (const PString &fmt, va_list args) |
Concatenate a PString to a single character to produce a third. The original string is not modified, an entirely new unique reference to a string is created. The c# parameter is typically a literal, eg: {verbatim} myStr = '!' & aStr; {verbatim}
This function differes from operator+# in that it assures there is at least one space between the strings. Exactly one space is added if there is not a space at the end of the first or beggining of the last string.
ch | Character to be concatenated to. |
str | String to concatenate. |
Concatenate a PString to a C string to produce a third. The original string is not modified, an entirely new unique reference to a string is created. The cstr# parameter is typically a literal string, eg: {verbatim} myStr = "fred" & aStr; {verbatim}
This function differes from operator+ in that it assures there is at least one space between the strings. Exactly one space is added if there is not a space at the end of the first or beggining of the last string.
cstr | C string to be concatenated to. |
str | String to concatenate. |
Concatenate a PString to a single character to produce a third. The original string is not modified, an entirely new unique reference to a string is created. The c# parameter is typically a literal, eg: {verbatim} myStr = '!' + aStr; {verbatim}
c | Character to be concatenated to. |
str | String to concatenate. |
Concatenate a PString to a C string to produce a third. The original string is not modified, an entirely new unique reference to a string is created. The cstr# parameter is typically a literal string, eg: {verbatim} myStr = "fred" + aStr; {verbatim}
cstr | C string to be concatenated to. |
str | String to concatenate. |
Produce formatted output as a string. This is identical to the standard C library vsprintf()# function, but sends its output to a PString#.
This function makes the assumption that there is less the 1000 characters of formatted output. The function will assert if this occurs.
Note that this function will break the current instance from multiple references to the string. A new string buffer is allocated and the data from the old string buffer copied to it.
fmt | String for output format. |
args | Extra parameters for sprintf()# call. |