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

◆ clen()

fl::size fl::asset_detail::clen ( const char * s,
fl::size n = 0 )
constexpr

Compile-time length of a null-terminated C string.

Recursive constexpr form — compatible with C++11-only constexpr (no loops / locals).

Definition at line 41 of file asset.h.

41 {
42 return s[n] == '\0' ? n : clen(s, n + 1);
43}
constexpr fl::size clen(const char *s, fl::size n=0) FL_NOEXCEPT
Compile-time length of a null-terminated C string.
Definition asset.h:41

References clen(), and FL_NOEXCEPT.

Referenced by fl::asset(), and clen().

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