SourceForge.net Logo                  

 

РУССКИЙ ENGLISH
Вернуться к оглавлению Back to Contents
Русская версия (скоро)
Basic functions :
Other functions are implemented but not listed because they're rare used.
All functions accept 3 parameters:
  1. String to be parsed or file name of the file to be parsed
  2. Namespace (by default is empty)
  3. Name of the global variable, keeping all parsing settings.
parseStr()
Replace all variable nicks in given string.
parseFile()
Replace all file nicks in the file (specified by given file name) by contents of the corresponding files.
parseTag()
Replace all callback tags in given string.
parseStrTag()
Functions parseTag and parseStr are applied to given string consecutively, parseTag is the first and parseStr is the last.
parseFileTag()
Functions parseTag and parseFile are applied to given string consecutively, first parseTag is applied, and its result is considered as file name, which is passed as the first parameter to parseFile.
parseTagStr()
Functions parseStr and parseTag are applied to given string consecutively, parseStr is the first and parseTag is the last.
parseTagFile()
Function parseFile is applied to given file name, and its result is passed as the first parameter to parseTag.
parseStrFile()
Function parseFile is applied to given file name, and its result is passed as the first parameter to parseStr.
parseStrTagFile()
Function parseFile is applied to given file name, and functions parseTag and parseStr are applied to its result consequently, parseTag is the first and parseStr is the last.
parseTagStrFile()
Function parseFile is applied to given file name, and functions parseStr and parseTag are applied to its result consequently, parseStr is the first and parseTag is the last.