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



StripTrailingChars


Unit:SDL_stringl
Class:none
Declaration:function StripTrailingChars (cc: char; Instring: string): string;

The function StripTrailingChars returns the string Instring after removing any trailing characters specified by the parameter cc.

Example: The statement "astr := StripTrailingChars ('.', '... to be or not to be.....'); " returns the string "... to be or not to be " to the variable astr.


Last Update: 2023-Feb-06