FastLED 3.9.15
Loading...
Searching...
No Matches

◆ substr()

string_view fl::string_view::substr ( fl::size pos = 0,
fl::size count = npos ) const
inline

Definition at line 142 of file string_view.h.

142 {
143 if (pos >= mSize) {
144 return string_view();
145 }
146 fl::size actual_count = count;
147 if (actual_count == npos || pos + actual_count > mSize) {
148 actual_count = mSize - pos;
149 }
150 return string_view(mData + pos, actual_count);
151 }
uint8_t pos
Definition Blur.ino:11
const char * mData
static constexpr fl::size npos
Definition string_view.h:35
constexpr string_view() FL_NOEXCEPT
Definition string_view.h:39

References string_view(), FL_NOEXCEPT, mData, mSize, npos, and pos.

Referenced by compare(), compare(), compare(), compare(), fl::url::parse(), fl::parse_lnk(), and fl::parse_lnk_with_metadata().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: