|
casacore
|
#include <String.h>
Public Member Functions | |
| operator const string () const | |
| Make a string. | |
| SubString (const SubString &)=default | |
| Default copy constructor. | |
| SubString & | operator= (const SubString &str) |
| Assignment. | |
| SubString & | operator= (const String &str) |
| SubString & | operator= (const Char *s) |
| SubString & | operator= (const Char c) |
| const Char * | chars () const |
| Get as (const) C array. | |
| string::size_type | length () const |
| Obtain length. | |
Private Member Functions | |
| SubString (const string &str, string::size_type pos, string::size_type len) | |
| Constructor (there are no public constructors). | |
Private Attributes | |
| const string & | ref_p |
| Referenced string. | |
| string::size_type | pos_p |
| Start of sub-string. | |
| string::size_type | len_p |
| Length of sub-string. | |
Friends | |
| class | String |
SubString help class to be used in at, before,...
The SubString class can only be used by the String class to be able to operate the Casacore defined replacement operators at, before, after, through, from. The class is used transparently in operations like:
If the SubString starts at a position outside the length of the original string (like e.g. in after(1000000)), a zero length string is created (not an exception thrown like in standard string operations).
|
default |
Default copy constructor.
References SubString().
Referenced by operator=(), operator=(), operator=(), operator=(), and SubString().
|
inlineprivate |
|
inline |
|
inline |
|
inline |
References SubString().
References SubString().
References String, and SubString().
Assignment.
References SubString().
|
friend |
|
private |
Length of sub-string.
Definition at line 90 of file String.h.
Referenced by length(), operator const string(), and SubString().
|
private |
Start of sub-string.
Definition at line 88 of file String.h.
Referenced by operator const string(), and SubString().
|
private |
Referenced string.
Definition at line 86 of file String.h.
Referenced by operator const string(), and SubString().