dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: Source to state machine for parsing input

Re: Source to state machine for parsing input

From: <>
Date: Fri, 17 Mar 2006 06:42:25 -0500

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: <>
> To: "Rockbox development" <>
> 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 template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy