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

◆ path_has_parent_segment_at()

bool fl::asset_detail::path_has_parent_segment_at ( const char * p,
fl::size i )
constexpr

Recursive constexpr walk looking for any ".." segment.

Definition at line 58 of file asset.h.

58 {
59 return p[i] == '\0'
60 ? false
61 : (is_parent_at(p, i) ? true : path_has_parent_segment_at(p, i + 1));
62}
constexpr bool path_has_parent_segment_at(const char *p, fl::size i) FL_NOEXCEPT
Recursive constexpr walk looking for any ".." segment.
Definition asset.h:58
constexpr bool is_parent_at(const char *p, fl::size i) FL_NOEXCEPT
Compile-time check: does position i in p start a ".." segment?
Definition asset.h:50

References FL_NOEXCEPT, is_parent_at(), and path_has_parent_segment_at().

Referenced by path_has_parent_segment(), and path_has_parent_segment_at().

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