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

◆ string_compare()

static int fl::string_compare ( const string & a,
const string & b )
inlinestatic

Definition at line 211 of file string.cpp.hpp.

211 {
212 fl::size n = (a.size() < b.size()) ? a.size() : b.size();
213 int r = fl::memcmp(a.c_str(), b.c_str(), n);
214 if (r != 0) return r;
215 if (a.size() < b.size()) return -1;
216 if (a.size() > b.size()) return 1;
217 return 0;
218}
const char * c_str() const FL_NOEXCEPT
fl::size size() const FL_NOEXCEPT
int memcmp(const void *s1, const void *s2, size_t n) FL_NOEXCEPT

References FL_NOEXCEPT, and memcmp().

Referenced by fl::string::operator<(), fl::string::operator<=(), fl::string::operator>(), and fl::string::operator>=().

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