Compile-time check: returns true if the string contains a ".." segment. Rejects all of the following: - "foo/../bar" - "../foo" - "foo/.." - ".." Does NOT reject single dots (".") or dots inside filename segments ("foo..bar", "file.ext", "hidden.dotfile").
| 71 | /// Does NOT reject single dots (".") or dots inside filename segments |
| 72 | /// ("foo..bar", "file.ext", "hidden.dotfile"). |
| 73 | constexpr bool path_has_parent_segment(const char* p) FL_NOEXCEPT { |
| 74 | return (p == nullptr) ? false : path_has_parent_segment_at(p, 0); |
| 75 | } |
| 76 | |
| 77 | } // namespace asset_detail |
| 78 |
no test coverage detected