FastLED 3.10.8
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 43 of file asset.h.

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

References clen(), and fl::FL_NO_EXCEPT.

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

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