SYSmatch |
Top Previous Next |
Compares a text to a regular expression. With SYSmatch the inside related procedure is available to the user for evaluating of regular expressions. With this routine the command lines are worked on inside. The routine delivers TRUE if the sign chain text can be derived from the regular expression reg_ex. The following special characters for the comparison are implemented: * for any number of any signs ? for exact any sign [SET] exactly one of the signs beschiebenen in SET [! SET] or [^SET] exactly one of the signs not specified in SET [Set *] beleibig many of the signs specified in SET SET is defined by enumeration (without separator) or areas of letter (case sensitively) or pay with syntax a-z. One! or ^gilt for the whole SET. Around the special characters [] *?! to treat ^ - \as letters, must be predone these in each case \. Parametre reg_ex (char *) [IN] To this regular expression it is compared text. He must correspond to the abovementioned syntax. text (char *) [IN] This is the text which is compared to the regular expression. Capitalisation and use of small letters is considered. Result (BOOLEAN) [OUT] The procedure delivers TRUE if the sign chain text can be derived from the regular expression reg_ex, but FALSE. Declaration #include "system.h"
BOOLEAN DLLENTRY SYSmatch ( char * reg_ex, char * text );
|