29 Su = MKL(0) & CHR(1) ;
30 RepData (BYVAL_AS_CONST_gchar_PTR T);
31 FUNCTION_AS_LONG
Az ();
32 SUB
add (BYVAL_AS_CONST_ZSTRING_PTR, BYVAL_AS_CONST_ZSTRING_PTR);
33 FUNCTION_AS_CONST_ZSTRING_PTR
rep (BYVAL_AS_CONST_gchar_PTR T);
34 SUB
list (BYREF_AS_STRING Li);
86 SUB
RepData::add (BYVAL_AS_CONST_ZSTRING_PTR S, BYVAL_AS_CONST_ZSTRING_PTR E) {
106 FUNCTION_AS_CONST_ZSTRING_PTR
RepData::rep (BYVAL_AS_CONST_gchar_PTR T) {
124 SUB
add (BYVAL_AS_CONST_gchar_PTR);
125 FUNCTION_AS_STRING
nxt ();
126 FUNCTION_AS_INTEGER
find (BYVAL_AS_CONST_gchar_PTR T);
187 VAR n =
find_value(
"search", AttNams, AttVals) ;
191 VAR s =
find_value(
"search", AttNams, AttVals) ;
193 VAR r =
find_value(
"replace", AttNams, AttVals) ;
200 VAR s =
find_value(
"search", AttNams, AttVals) ;
202 VAR r =
find_value(
"replace", AttNams, AttVals) ;
209 VAR n =
find_value(
"name", AttNams, AttVals) ;
213 VAR n =
find_value(
"name", AttNams, AttVals) ;
217 VAR n =
find_value(
"name", AttNams, AttVals) ;
RepData FB_NAM
Replacements for symbols (names)
RepData(BYVAL_AS_CONST_gchar_PTR T)
the constructor stores the tag name
FUNCTION_AS_LONG Az()
provide number of entries in the buffer
STRING Su
buffer holding the entry counter, search texts and the start of their replacements ...
RepData FB_TYP
Replacements for type declarations.
Stack FIRST
FiFo stack for ordered elements (pass X))
STRING Dat
The buffer for entries, ; separated.
SUB list(BYREF_AS_STRING Li)
Generate a list of un-used symbols.
SUB add(BYVAL_AS_CONST_gchar_PTR)
Add entries to Stack data.
STRING Er
buffer holding replacement texts and match-entry-counters
FUNCTION_AS_INTEGER find(BYVAL_AS_CONST_gchar_PTR T)
Search the stack for a text.
A simple fifo stack list.
SUB_CDECL g2b_parser()
The GMarkupParser for the configuration file *.GirToBac.
SUB add(BYVAL_AS_CONST_ZSTRING_PTR, BYVAL_AS_CONST_ZSTRING_PTR)
Add entries to buffers.
FUNCTION_AS_CONST_gchar_PTR find_value(BYVAL_AS_CONST_gchar_PTR Nam, BYVAL_AS_CONST_gchar_PTR_PTR AttNams, BYVAL_AS_CONST_gchar_PTR_PTR AttVals)
Find an attribute by its name.
FUNCTION_AS_CONST_ZSTRING_PTR rep(BYVAL_AS_CONST_gchar_PTR T)
Get replacement for a text (if any))
Object to check texts (Su) and provide replacements (Er)
FUNCTION_AS_STRING nxt()
The text of the next entry.
INTEGER A
Start position of next entry (-1)
CONST_gchar_PTR Na
the name of the XML-tag