A simple 1-based string.
More...
#include <string1.hh>
List of all members.
Detailed Description
A simple 1-based string.
Features:
- based on c++ std::string class, but offers very limited interface
- conversion from and to std::string
- access via operator []
- support of various "string" methods
Constructor & Destructor Documentation
Construct from std::string.
- Parameters:
-
Copy constructor.
- Parameters:
-
Member Function Documentation
Provide length.
- Returns:
- length of string
Assignment operator.
- Parameters:
-
- Returns:
- *this
- Postcondition:
- *this equals s
const char& LocARNA::string1::operator[] |
( |
size_t |
i | ) |
const [inline] |
Read access.
- Parameters:
-
- Returns:
- ith character of string
- Note:
- 1-based
char& LocARNA::string1::operator[] |
( |
size_t |
i | ) |
[inline] |
Read/write access.
- Parameters:
-
- Returns:
- (reference to) ith character of string
- Note:
- 1-based
push back character
- Parameters:
-
Cast to std::string (const)
- Returns:
- string
Cast to std::string
- Returns:
- string
Substring.
- Parameters:
-
pos | start position of substring, 1-based |
len | length of substring |
- Returns:
- substring at pos of length len
The documentation for this class was generated from the following file: