Go to the documentation of this file.
87 static const Index npos =
static_cast<Index>(std::basic_string<charT>::npos);
108 template<
class charT>
110 std::basic_string<charT>(n,c)
130 template<
class charT>
142 assert(
static_cast<typename std::basic_string<charT>::size_type
>(pos)<A.size());
147 (
static_cast<typename std::basic_string<charT>::size_type
>(npos)<=(A.size()-pos))
159 std::basic_string<charT>::operator=(std::basic_string<charT>(A,pos,npos));
164 template<
class charT>
176 template<
class charT>
179 std::basic_string<charT>::operator=(A);
184 template<
class charT>
187 size_t s = this->size();
189 return static_cast<INDEX
>(s);
235 template<
class charT>
240 return std::basic_string<charT>::operator[](n);
245 template<
class charT>
250 return std::basic_string<charT>::operator[](n);
char operator[](Index n) const
Constant index operator.
my_basic_string()
Default constructor.
my_basic_string(Index n, char c=' ')
Constructor setting size.
This can be used to make arrays out of anything.
my_basic_string & operator=(const my_basic_string< charT > &A)
Assignment from another my_basic_string.
The implementation for String, the ARTS string class.
Array< String > ArrayOfString
An array of Strings.
my_basic_string(const char A[])
Constructor from a C-style char array.
Index nelem() const
Number of elements.
INDEX Index
The type to use for all integer numbers and indices.
my_basic_string< char > String
The String type for ARTS.
char & operator[](Index n)
Non-constant index operator.
my_basic_string(const basic_string< charT > &A, Index pos=0, Index npos=my_basic_string< charT >::npos)
Construnctor from another my_basic_string.
static const Index npos
Define npos:
The global header file for ARTS.