|
casacore
|
#include <String.h>
Public Member Functions | |
| operator const std::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. | |
| std::string::size_type | length () const |
| Obtain length. | |
Private Member Functions | |
| SubString (const std::string &str, std::string::size_type pos, std::string::size_type len) | |
| Constructor (there are no public constructors). | |
Private Attributes | |
| const std::string & | ref_p |
| Referenced string. | |
| std::string::size_type | pos_p |
| Start of sub-string. | |
| std::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 |
Get as (const) C array.
Definition at line 930 of file String.h.
References String.
Referenced by operator=().
|
inline |
|
inline |
| SubString & casacore::SubString::operator= | ( | const char * | s | ) |
References DEPRECATED, and SubString().
| SubString & casacore::SubString::operator= | ( | const char | c | ) |
References chars(), DEPRECATED, and SubString().
References DEPRECATED, String, and SubString().
Assignment.
References DEPRECATED, and SubString().
|
friend |
|
private |
Length of sub-string.
Definition at line 222 of file String.h.
Referenced by length(), operator const std::string(), and SubString().
|
private |
Start of sub-string.
Definition at line 220 of file String.h.
Referenced by operator const std::string(), and SubString().
|
private |
Referenced string.
Definition at line 218 of file String.h.
Referenced by operator const std::string(), and SubString().