|  | OpenMS
    2.6.0
    | 
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... | |
| 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
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
less operator
References StringView::begin_, and StringView::size_.
| 
 | 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().
 1.8.16
 1.8.16