![]() |
MOS Source Code
|
#include <string_view.hpp>
Public Member Functions | |
basic_string_view (std::nullptr_t)=delete | |
constexpr | basic_string_view () |
constexpr | basic_string_view (const CharT *cs) |
constexpr | basic_string_view (const CharT *s, size_t length) |
constexpr | basic_string_view (const CharT *begin, const CharT *end) |
const CharT * | data () const |
const CharT & | operator[] (size_t index) const |
size_t | size () const |
bool | begins_with (CharT c) const |
bool | begins_with (basic_string_view str) const |
bool | ends_with (CharT c) const |
bool | ends_with (basic_string_view str) const |
constexpr bool | empty () const |
bool | operator== (basic_string_view other) const |
constexpr basic_string_view | substr (size_t start, size_t end=-1) const |
constexpr size_t | find (CharT c, size_t start=0) const |
constexpr size_t | find (basic_string_view str) const |
constexpr bool | starts_with (basic_string_view str) const |
Static Public Attributes | |
static constexpr auto | npos = size_t(-1) |
Private Attributes | |
const CharT * | _pointer |
size_t | _length |
Definition at line 47 of file string_view.hpp.
|
delete |
|
inlineconstexpr |
Definition at line 52 of file string_view.hpp.
Referenced by basic_string_view< char >::substr().
|
inlineconstexpr |
Definition at line 53 of file string_view.hpp.
|
inlineconstexpr |
Definition at line 59 of file string_view.hpp.
|
inlineconstexpr |
Definition at line 65 of file string_view.hpp.
|
inline |
Definition at line 71 of file string_view.hpp.
Referenced by basic_string< char >::begins_with(), elf_create_process(), elf_setup_main_thread(), basic_string< char >::ends_with(), mos_test_engine_setup_skip_prefix_list(), basic_string< char >::operator+=(), SyslogStreamWriter::operator<<(), and basic_string< char >::operator=().
|
inline |
Definition at line 76 of file string_view.hpp.
|
inline |
Definition at line 81 of file string_view.hpp.
Referenced by basic_string< char >::begins_with(), elf_setup_main_thread(), basic_string< char >::ends_with(), basic_string< char >::operator+=(), SyslogStreamWriter::operator<<(), and basic_string< char >::operator=().
|
inline |
Definition at line 86 of file string_view.hpp.
|
inline |
Definition at line 91 of file string_view.hpp.
|
inline |
Definition at line 99 of file string_view.hpp.
Referenced by dentry_resolve_to_parent().
|
inline |
Definition at line 104 of file string_view.hpp.
|
inlineconstexpr |
Definition at line 112 of file string_view.hpp.
Referenced by cmdline_string_truthiness(), Process::Process(), and split_string().
|
inline |
Definition at line 117 of file string_view.hpp.
|
inlineconstexpr |
Definition at line 125 of file string_view.hpp.
Referenced by split_string().
Definition at line 131 of file string_view.hpp.
Referenced by split_string().
|
inlineconstexpr |
Definition at line 144 of file string_view.hpp.
|
inlineconstexpr |
Definition at line 154 of file string_view.hpp.
|
staticconstexpr |
Definition at line 50 of file string_view.hpp.
|
private |
Definition at line 160 of file string_view.hpp.
Referenced by basic_string_view< char >::begins_with(), basic_string_view< char >::ends_with(), basic_string_view< char >::find(), basic_string_view< char >::operator==(), and basic_string_view< char >::starts_with().
|
private |
Definition at line 161 of file string_view.hpp.
Referenced by basic_string_view< char >::begins_with(), basic_string_view< char >::ends_with(), basic_string_view< char >::find(), basic_string_view< char >::operator==(), and basic_string_view< char >::starts_with().