From 3b9ffd28da4d2af023e6a77ab1d6ee683f90ef6b Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 11 Sep 2011 01:50:06 +0000 Subject: New tag %ss() which lets you get a substring of another tag. %ss(start, length, tag) - i.e %ss(0,1,%TL) will get the first letter of the current lines text. use - for the length to get the rest of the tag (e.g %ss(1,-,%TL) will get everything after the first letter). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30500 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/wps_internals.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/gui/skin_engine/wps_internals.h') diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h index e996c96613..7d7afe95b1 100644 --- a/apps/gui/skin_engine/wps_internals.h +++ b/apps/gui/skin_engine/wps_internals.h @@ -288,6 +288,12 @@ struct logical_if { int num_options; }; +struct substring { + int start; + int length; + struct wps_token *token; +}; + #ifdef HAVE_SKIN_VARIABLES struct skin_var { const char *label; -- cgit v1.2.3