summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/wps_internals.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-09-11 01:50:06 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-09-11 01:50:06 +0000
commit3b9ffd28da4d2af023e6a77ab1d6ee683f90ef6b (patch)
treed779dd815acee6218e59e96329916114dcdf9ecd /apps/gui/skin_engine/wps_internals.h
parent86c543216f13c1171eefd6dd8116855a7fa9c4bd (diff)
downloadrockbox-3b9ffd28da4d2af023e6a77ab1d6ee683f90ef6b.tar.gz
rockbox-3b9ffd28da4d2af023e6a77ab1d6ee683f90ef6b.zip
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
Diffstat (limited to 'apps/gui/skin_engine/wps_internals.h')
-rw-r--r--apps/gui/skin_engine/wps_internals.h6
1 files changed, 6 insertions, 0 deletions
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 {
288 int num_options; 288 int num_options;
289}; 289};
290 290
291struct substring {
292 int start;
293 int length;
294 struct wps_token *token;
295};
296
291#ifdef HAVE_SKIN_VARIABLES 297#ifdef HAVE_SKIN_VARIABLES
292struct skin_var { 298struct skin_var {
293 const char *label; 299 const char *label;