The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



StringContains


Unit: SDL_stringl
Class: none
Declaration: function StringContains (Instring: string; CharList: string): boolean;

The function StringContains returns TRUE if the string Instring contains one or more of the characters defined in the parameter CharList. The parameter CharList is a string consisting of all the characters to be tested. In addition, the CharList parameter may contain the following abbreviations (abbreviations are indicated by leading double slashes):

Abbreviation  Characters represented Remarks
//dig 0123456789 all digits
//lc abcdefghijklmnopqrstuvwxyz all lowercase characters
//uc ABCDEFGHIJKLMNOPQRSTUVWXYZ all uppercase characters
//31dwn ASCII code 0 to 31 all unprintable control characters
//128up ASCII code 128 to 255 these are mostly "special" character such as umlauts, diphthongs etc

Example: The call to StringContains (mystring, '$//uc[]') returns TRUE if the string 'mystring' contains either a dollar sign, opening or closing square brackets, or upper case characters (A-Z).



Last Update: 2023-Feb-06