#include <pstring.h>
Inheritance diagram for PCaselessString:
Public Member Functions | |
PCaselessString () | |
PCaselessString (const char *cstr) | |
PCaselessString (const PString &str) | |
PCaselessString & | operator= (const PString &str) |
PCaselessString & | operator= (const char *cstr) |
PCaselessString & | operator= (char ch) |
virtual PObject * | Clone () const |
Protected Member Functions | |
virtual Comparison | InternalCompare (PINDEX offset, char c) const |
virtual Comparison | InternalCompare (PINDEX offset, PINDEX length, const char *cstr) const |
PCaselessString (int dummy, const PCaselessString *str) |
The characters in the string still maintain their case. Only the comparison operations are affected. So printing etc will still display the string as entered.
|
Create a new, empty, caseless string. |
|
Create a new caseless string, initialising it to the characters in the C string provided.
|
|
Create a caseless string, with a reference to the characters in the normal PString# provided. A PCaselessString may also be provided to this constructor.
|
|
|
|
Make a complete duplicate of the string. Note that the data in the array of characters is duplicated as well and the new object is a unique reference to that data. Reimplemented from PString. |
|
Reimplemented from PString. |
|
Reimplemented from PString. |
|
Assign the character to the current object. The current instance then becomes a unique reference to a copy of the character parameter. eg: {verbatim} myStr = 'A'; {verbatim}
Reimplemented from PString. |
|
Assign the C string to the current object. The current instance then becomes a unique reference to a copy of the cstr# parameter. The cstr# parameter is typically a literal string, eg: {verbatim} myStr = "fred"; {verbatim}
Reimplemented from PString. |
|
Assign the string to the current object. The current instance then becomes another reference to the same string in the str# parameter.
Reimplemented from PString. |