FastLED 3.9.15
Loading...
Searching...
No Matches
fl::string_view Class Reference

Detailed Description

Definition at line 17 of file string_view.h.

#include <string_view.h>

Public Types

using const_iterator = const char*
 
using const_pointer = const char*
 
using const_reference = const char&
 
using const_reverse_iterator = const char*
 
using difference_type = fl::i32
 
using element_type = const char
 
using iterator = const char*
 
using pointer = const char*
 
using reference = const char&
 
using reverse_iterator = const char*
 
using size_type = fl::size
 
using value_type = char
 

Public Member Functions

constexpr string_view () FL_NOEXCEPT
 
 string_view (const basic_string &str) FL_NOEXCEPT
 
constexpr string_view (const char *str) FL_NOEXCEPT
 
constexpr string_view (const char *str, fl::size len) FL_NOEXCEPT
 
template<fl::size N>
constexpr string_view (const char(&arr)[N]) FL_NOEXCEPT
 
 string_view (const string_view &other) FL_NOEXCEPT=default
 
constexpr const char & at (fl::size index) const FL_NOEXCEPT
 
constexpr const char & back () const FL_NOEXCEPT
 
constexpr iterator begin () const FL_NOEXCEPT
 
constexpr const_iterator cbegin () const FL_NOEXCEPT
 
constexpr const_iterator cend () const FL_NOEXCEPT
 
int compare (const char *s) const FL_NOEXCEPT
 
int compare (fl::size pos1, fl::size count1, const char *s) const FL_NOEXCEPT
 
int compare (fl::size pos1, fl::size count1, const char *s, fl::size count2) const FL_NOEXCEPT
 
int compare (fl::size pos1, fl::size count1, string_view other) const FL_NOEXCEPT
 
int compare (fl::size pos1, fl::size count1, string_view other, fl::size pos2, fl::size count2) const FL_NOEXCEPT
 
int compare (string_view other) const FL_NOEXCEPT
 
bool contains (char ch) const FL_NOEXCEPT
 
bool contains (const char *s) const FL_NOEXCEPT
 
bool contains (string_view sv) const FL_NOEXCEPT
 
fl::size copy (char *dest, fl::size count, fl::size pos=0) const FL_NOEXCEPT
 
constexpr const_reverse_iterator crbegin () const FL_NOEXCEPT
 
constexpr const_reverse_iterator crend () const FL_NOEXCEPT
 
constexpr const char * data () const FL_NOEXCEPT
 
constexpr bool empty () const FL_NOEXCEPT
 
constexpr iterator end () const FL_NOEXCEPT
 
bool ends_with (char ch) const FL_NOEXCEPT
 
bool ends_with (const char *s) const FL_NOEXCEPT
 
bool ends_with (string_view sv) const FL_NOEXCEPT
 
fl::size find (char ch, fl::size pos=0) const FL_NOEXCEPT
 
fl::size find (const char *s, fl::size pos, fl::size count) const FL_NOEXCEPT
 
fl::size find (const char *s, fl::size pos=0) const FL_NOEXCEPT
 
fl::size find (string_view sv, fl::size pos=0) const FL_NOEXCEPT
 
fl::size find_first_not_of (char ch, fl::size pos=0) const FL_NOEXCEPT
 
fl::size find_first_not_of (const char *s, fl::size pos, fl::size count) const FL_NOEXCEPT
 
fl::size find_first_not_of (const char *s, fl::size pos=0) const FL_NOEXCEPT
 
fl::size find_first_not_of (string_view sv, fl::size pos=0) const FL_NOEXCEPT
 
fl::size find_first_of (char ch, fl::size pos=0) const FL_NOEXCEPT
 
fl::size find_first_of (const char *s, fl::size pos, fl::size count) const FL_NOEXCEPT
 
fl::size find_first_of (const char *s, fl::size pos=0) const FL_NOEXCEPT
 
fl::size find_first_of (string_view sv, fl::size pos=0) const FL_NOEXCEPT
 
fl::size find_last_not_of (char ch, fl::size pos=npos) const FL_NOEXCEPT
 
fl::size find_last_not_of (const char *s, fl::size pos, fl::size count) const FL_NOEXCEPT
 
fl::size find_last_not_of (const char *s, fl::size pos=npos) const FL_NOEXCEPT
 
fl::size find_last_not_of (string_view sv, fl::size pos=npos) const FL_NOEXCEPT
 
fl::size find_last_of (char ch, fl::size pos=npos) const FL_NOEXCEPT
 
fl::size find_last_of (const char *s, fl::size pos, fl::size count) const FL_NOEXCEPT
 
fl::size find_last_of (const char *s, fl::size pos=npos) const FL_NOEXCEPT
 
fl::size find_last_of (string_view sv, fl::size pos=npos) const FL_NOEXCEPT
 
constexpr const char & front () const FL_NOEXCEPT
 
constexpr fl::size length () const FL_NOEXCEPT
 
constexpr fl::size max_size () const FL_NOEXCEPT
 
string_viewoperator= (const string_view &other)=default
 
constexpr const char & operator[] (fl::size index) const FL_NOEXCEPT
 
constexpr reverse_iterator rbegin () const FL_NOEXCEPT
 
void remove_prefix (fl::size n) FL_NOEXCEPT
 
void remove_suffix (fl::size n) FL_NOEXCEPT
 
constexpr reverse_iterator rend () const FL_NOEXCEPT
 
fl::size rfind (char ch, fl::size pos=npos) const FL_NOEXCEPT
 
fl::size rfind (const char *s, fl::size pos, fl::size count) const FL_NOEXCEPT
 
fl::size rfind (const char *s, fl::size pos=npos) const FL_NOEXCEPT
 
fl::size rfind (string_view sv, fl::size pos=npos) const FL_NOEXCEPT
 
constexpr fl::size size () const FL_NOEXCEPT
 
bool starts_with (char ch) const FL_NOEXCEPT
 
bool starts_with (const char *s) const FL_NOEXCEPT
 
bool starts_with (string_view sv) const FL_NOEXCEPT
 
string_view substr (fl::size pos=0, fl::size count=npos) const FL_NOEXCEPT
 
void swap (string_view &other) FL_NOEXCEPT
 

Static Public Attributes

static constexpr fl::size npos = static_cast<fl::size>(-1)
 

Private Attributes

const char * mData
 
fl::size mSize
 

The documentation for this class was generated from the following files: