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



ReplaceStringInString


Unit:SDL_stringl
Class:none
Declaration:function ReplaceStringInString (Instring, OldStr, NewStr: string; IgnoreCase: boolean): string;

The function ReplaceStringInString replaces all occurrences of the substring OldStr in the string Instring by the new substring NewStr. The resulting string is returned as the function result. The search for  OldStr is not case sensitive if IgnoreCase is set to a TRUE value. 

Note that short strings lose all characters beyond the 255th place if the resulting string grows beyond this limit. In order to avoid this situation long strings should be used (compiler directive {$H+}).

 


Last Update: 2012-Oct-20