It works for showing EXTINF names rather than file names in the
Playlist Viewer.
However, it doesn't integrate well, as there's no decent heuristic to
distinguish a name from a file name; without the heuristic, you'd have
to not only save the offset of the EXTINF name, but also shuffle it
when playlist file name offsets are shuffled, and the separate offset
for the name would require an additional allocation of MAX_PLAYLIST *
sizeof( int ), or about 40Kb.
So ultimately, I'm not going to propose using it.
That said, there may be other places people would like to do
semi-elaborate text parsing; this provides a way to do it with a
pretty small footprint, without requiring a full regex package.
Dave Hooper wrote:
Hmm.. what's this for?
----- Original Message ----- From: <[EMAIL PROTECTED]>
To: "Rockbox development" <[email protected]>
Sent: Friday, March 10, 2006 9:19 PM
Subject: Source to state machine for parsing input
Enclosed please find source code to a simple state machine designed to
parse input. Your comments are requested.
[...]