FastLED 3.10.8
Loading...
Searching...
No Matches

◆ isDigitInBase()

static bool fl::isDigitInBase ( char c,
int base )
static

Definition at line 94 of file cstdlib.cpp.hpp.

94 {
95 if (base <= 10) {
96 return c >= '0' && c < ('0' + base);
97 }
98 if (c >= '0' && c <= '9') {
99 return true;
100 }
101 if (c >= 'a' && c < ('a' + base - 10)) {
102 return true;
103 }
104 if (c >= 'A' && c < ('A' + base - 10)) {
105 return true;
106 }
107 return false;
108}

References FL_NO_EXCEPT.

Referenced by fl::libc_impl::strtol(), and fl::libc_impl::strtoul().

+ Here is the caller graph for this function: