SYSsetReplaceExpression

Top  Previous  Next

If a new compensation rule puts in.

With this procedure a compensation expression is added to the list of the compensations. This contains, on the one hand, a regular expression which describes on which inputs this rule fits. On the other hand a string with which the input is substituted. Besides, this string can contain the parametres with which parts of the input are taken over in the compensation.

Parametre

muster (char *) [IN]

This is a regular expression to which every input line is compared. If an input on this expression fits, the input is changed by the string ersetzung. Besides, the string is expanded.

ersetzung (char *) [IN]

This string is taken over as a new input line if the regular expression muster on an input line fitted. Besides, the following signs of the string ersetzung of a special treatment are submitted.

'\n' or %N is interpreted as a beginning of a new input line.

%0 is substituted with the original command name.

%u0 is substituted with the command name converted to capital letter.

%l0 is substituted with the command name converted to small letter.

%1... %9 parametre is substituted with the N ten.

%u1. %u9 is substituted with the N ten for parametre, however, in capital letters,

%l1. %l9 is substituted with the N ten for parametre, however, in small letters,

Result

---

Declaration

#include "system.h"

void DLLENTRY SYSsetReplaceExpression (

char * muster,

char * ersetzung

);