JCL Help:StrReplaceChars@AnsiString@TSysCharSet@AnsiChar
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: StrReplaceChars Function
[+] JclAnsiStrings.pas Functions
Search in JCL Help
Search in all projects
Summary
Replaces all occurrences of one or more characters with another character.
Pascal
function StrReplaceChars(const S: string; const Chars: TCharValidator; Replace: Char): string; overload;
function StrReplaceChars(const S: string; const Chars: array of Char; Replace: Char): string; overload;
function StrReplaceChars(const S: AnsiString; const Chars: TSysCharSet; Replace: AnsiChar): AnsiString;
Parameters
Parameters | Description |
const S: string | The string in which to replace characters. |
const Chars: TCharValidator | The character(s) to replace. |
Replace: Char | The character to use as a replacement of the characters definied in Chars. |
Return Value
The string with all replacements performed.
Description
StrReplaceChars replaces all occurrences of the specified search character(s) with the supplied replace character. Note that the replacement is case-sensitive.
About
Unit
Donator
Anonymous
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page