#include <String.h>
\..
The SubString class can only be used by the String class to be able to operate the aips++ defined replacement operators at, before, after, through, from. The class is used transparently in operations like:
string.at(2,3) = "five";
Definition at line 61 of file String.h.
Public Member Functions | |
| operator const string () const | |
| Make a string. | |
| const Char * | chars () const |
| Get as (const) C array. | |
| string::size_type | length () const |
| Obtain length. | |
| SubString & | operator= (const SubString &str) |
| Assignment. | |
| SubString & | operator= (const String &str) |
| SubString & | operator= (const Char *s) |
| SubString & | operator= (const Char c) |
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 |
| casa::SubString::SubString | ( | const string & | str, | |
| string::size_type | pos, | |||
| string::size_type | len | |||
| ) | [inline, private] |
| casa::SubString::operator const string | ( | ) | const [inline] |
| const Char * casa::SubString::chars | ( | ) | const [inline] |
| string::size_type casa::SubString::length | ( | ) | const [inline] |
const string& casa::SubString::ref_p [private] |
string::size_type casa::SubString::pos_p [private] |
string::size_type casa::SubString::len_p [private] |
Length of sub-string.
Definition at line 90 of file String.h.
Referenced by length(), and operator const string().
1.5.1