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....



StringContainsOtherThan


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

The function StringContainsOtherThan returns TRUE if the string Instring contains other characters than those 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 StringContainsOtherThan (mystring, '//dig.,') returns TRUE if the string 'mystring' contains other characters than digits, a dot or a comma.



Last Update: 2012-Oct-20