Rockbox mail archiveSubject: Re: Source to state machine for parsing input
Re: Source to state machine for parsing input
Date: Fri, 17 Mar 2006 06:42:25 -0500
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: <postmaster_at_diffenbach.org>
> To: "Rockbox development" <rockbox-dev_at_cool.haxx.se>
> 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 2006-03-17
Page was last modified "Sat May 23 08:12:40 2020" The Rockbox Crew