Rockbox mail archive
Subject: Re: Source to state machine for parsing input
Re: Source to state machine for parsing input
It works for showing EXTINF names rather than file names in the
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: <firstname.lastname@example.org>
> To: "Rockbox development" <email@example.com>
> 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.
Received on Fri Mar 17 12:45:02 2006
Page was last modified "Jan 10 2012" The Rockbox Crew