casacore
|
SubString help class to be used in at, before,... More...
#include <String.h>
Public Member Functions | |
operator const string () const | |
Make a string. More... | |
SubString & | operator= (const SubString &str) |
Assignment. More... | |
SubString & | operator= (const String &str) |
SubString & | operator= (const Char *s) |
SubString & | operator= (const Char c) |
const Char * | chars () const |
Get as (const) C array. More... | |
string::size_type | length () const |
Obtain length. More... | |
Private Member Functions | |
SubString (const string &str, string::size_type pos, string::size_type len) | |
Constructor (there are no public constructors) More... | |
Private Attributes | |
const string & | ref_p |
Referenced string. More... | |
string::size_type | pos_p |
Start of sub-string. More... | |
string::size_type | len_p |
Length of sub-string. More... | |
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).
|
inlineprivate |
Constructor (there are no public constructors)
Definition at line 1014 of file String.h.
Referenced by casacore::String::_substr(), and length().
|
inline |
Get as (const) C array.
Definition at line 1021 of file String.h.
References String.
Referenced by operator const string().
|
inline |
Obtain length.
Definition at line 77 of file String.h.
References len_p, and SubString().
Referenced by casacore::String::index(), and casacore::String::lastchar().
|
inline |
Make a string.
Definition at line 66 of file String.h.
References casacore::C::c, chars(), len_p, operator=(), pos_p, and ref_p.
Assignment.
Referenced by operator const string().
|
friend |
Definition at line 64 of file String.h.
Referenced by casacore::String::at(), chars(), casacore::String::compare(), casacore::String_global_functions_comparitor::compare(), casacore::String::matches(), casacore::String_global_functions_comparitor::operator!=(), casacore::String_global_functions_comparitor::operator<(), casacore::String_global_functions_comparitor::operator<=(), casacore::String::operator=(), casacore::String_global_functions_comparitor::operator==(), casacore::String_global_functions_comparitor::operator>(), casacore::String_global_functions_comparitor::operator>=(), casacore::String::String(), and casacore::String::substr().
|
private |
Length of sub-string.
Definition at line 90 of file String.h.
Referenced by length(), and operator const string().
|
private |
|
private |