OpenMS
|
StringView provides a non-owning view on an existing string. More...
#include <OpenMS/DATASTRUCTURES/StringView.h>
Public Member Functions | |
StringView ()=default | |
StringView (const StringView &)=default | |
StringView & | operator= (const StringView &)=default |
StringView (const std::string &s) | |
bool | operator< (const StringView other) const |
less operator More... | |
bool | operator== (const StringView other) const |
StringView | substr (Size start, Size length) 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
|
default |
|
default |
|
inline |
|
inline |
less operator
References StringView::begin_, and StringView::size_.
|
default |
|
inline |
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<(), StringView::operator==(), and StringView::substr().
|
private |
Referenced by StringView::operator<(), StringView::operator==(), and StringView::substr().