This module supports template handling Originally for TitanSIM R2 needs it for substituting substrings in a charstring template.
-
-
Zsolt Szalai (EZSOSZA)
-
Intruduction of ? regexp like behavior like \(x)? in our own pattern couses many troubles, like with the current templatefunc signature it can be impossible to determine the parameters(using 2 ? pattern) and lookup may need much more and complicated additions or rewrite that we may want at that time;
| TCCTemplate_Functions | This module supports template handling Originally for TitanSIM R2 needs it for substituting substrings in a charstring template. |
| Functions | |
| f_Template_substitutetemplate | Makes the substitutions according to the dictonary given |
| f_Template_subsfiletemplate | Makes the substitutions in the content of the given file, according to the dictonary |
function f_Template_substitutetemplate( in TCCSubstitutionList pl_dict, in charstring pl_string ) return charstring
Makes the substitutions according to the dictonary given
| pl_dict | in TCCSubstitutionList - dictionary |
| pl_string | in charstring - string to substitute in |
| charstring | substituted string |
-
-
function f_Template_subsfiletemplate( in TCCSubstitutionList pl_dict, in charstring pl_file ) return charstring
Makes the substitutions in the content of the given file, according to the dictonary
| pl_dict | in TCCSubstitutionList - dictionary |
| pl_file | in charstring - name of the file containing the template |
| charstring | substituted string |
| From FIO | in this case “” returns |
-
Makes the substitutions according to the dictonary given
function f_Template_substitutetemplate( in TCCSubstitutionList pl_dict, in charstring pl_string ) return charstring
Makes the substitutions in the content of the given file, according to the dictonary
function f_Template_subsfiletemplate( in TCCSubstitutionList pl_dict, in charstring pl_file ) return charstring