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


Unit: SDL_stringl
Class: none
Declaration: function RemoveMultiChars (Instring: string; CharToRemove: char): string;

The function RemoveMultiChars reduces all neighboring duplicate characters specified by CharToRemove in the string Instring to single characters and returns the redused string as function result.

Example: The statement
astr := RemoveMultiChars (astr, #9);
removes all multiple tabs in the string astr and replaces them by single tabs.

Last Update: 2017-Jul-14