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

◆ compare() [6/6]

int fl::string_view::compare ( string_view other) const
inline

Definition at line 154 of file string_view.h.

154 {
155 fl::size min_len = (mSize < other.mSize) ? mSize : other.mSize;
156 for (fl::size i = 0; i < min_len; ++i) {
157 if (mData[i] < other.mData[i]) return -1;
158 if (mData[i] > other.mData[i]) return 1;
159 }
160 if (mSize < other.mSize) return -1;
161 if (mSize > other.mSize) return 1;
162 return 0;
163 }
const char * mData

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

Referenced by compare(), compare(), compare(), compare(), and compare().

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