StringView provides a non-owning view on an existing string. More...
#include <OpenMS/DATASTRUCTURES/String.h>
Public Member Functions | |
StringView () | |
StringView (const std::string &s) | |
StringView (const StringView &s) | |
bool | operator< (const StringView other) const |
less operator More... | |
StringView | substr (Size start_index, Size end_index) const |
create view that references a substring of the original string More... | |
Size | size () const |
size of view More... | |
String | getString () const |
create String object from view More... | |
Private Attributes | |
const char * | begin_ |
Size | size_ |
StringView provides a non-owning view on an existing string.
Minimal replacement for boost::string_ref or std::experimental::string_view until we increase our min boost version
|
inline |
|
inline |
|
inline |
|
inline |
create String object from view
References String::String().
|
inline |
less operator
References StringView::begin_, and StringView::size_.
|
inline |
size of view
|
inline |
create view that references a substring of the original string
References StringView::begin_, and StringView::size_.
|
private |
Referenced by StringView::operator<(), and StringView::substr().
|
private |
Referenced by StringView::operator<(), and StringView::substr().
OpenMS / TOPP release 2.3.0 | Documentation generated on Tue Jan 9 2018 18:22:13 using doxygen 1.8.13 |