|
FastLED 3.9.15
|
|
inline |
Parse the contents of a .lnk file into a fl::url.
Format: one URL per line. Leading/trailing whitespace on each line is ignored. Blank lines and lines whose first non-whitespace character is # are treated as comments and skipped. The first non-comment, non-blank line is returned as a fl::url.
Future-compat: additional lines (metadata like sha256=..., fallback=...) are ignored by this v1 parser so older binaries keep working when future .lnk files grow richer.
See also parse_lnk_with_metadata() which returns the URL alongside the (currently unenforced) metadata fields for forward-compat callers.
Definition at line 274 of file url.h.
References fl::string_view::empty(), FL_NOEXCEPT, fl::string_view::npos, pos, fl::string_view::size(), and fl::string_view::substr().
Here is the call graph for this function: