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



EnsureLeadingChar


Unit: SDL_stringl
Class: none
Declaration: function EnsureTrailingChar (cc: char; instring: string): string;

The function EnsureLeadingChar ensures that the character defined by the parameter cc is the first character of the string instring. If instring does not start with cc, cc is inserted into instring at the first position. An empty instring remains empty (no character added).



Last Update: 2012-Oct-20