summaryrefslogtreecommitdiff
path: root/src/replace-table.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/replace-table.h')
-rw-r--r--src/replace-table.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/replace-table.h b/src/replace-table.h
index 5c2b35e..8146f25 100644
--- a/src/replace-table.h
+++ b/src/replace-table.h
@@ -56,3 +56,14 @@ void replace_table_process (gchar **buffer, ReplaceTable *table);
void adjust_tags_normal (char **str);
void adjust_tags_parameter (char **str);
+
+
+/*
+ * get_next_token: retrieves first token (<!-- $(TOKEN) --> or $(TOKEN)) in the string
+ * - returns newly allocated token name, caller is responsible for freeing
+ * - start and end are positions of token in the source string 's'
+ * - tag_parameter indicates where the token stands - as a tag itself ( <!-- $(TOKEN) --> )
+ * or as a parameter value of some tag ( $(TOKEN) )
+ *
+ */
+char * get_next_token (const char *s, char **start, char **end, gboolean *tag_parameter);