JCL Help:CharReplace@AnsiString@AnsiChar@AnsiChar
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: CharReplace Function
[+] JclAnsiStrings.pas Functions
Search in JCL Help
Search in all projects
Summary
Replaces all occurrences of a character in a string.
Pascal
function CharReplace(var S: string; const Search: Char; const Replace: Char): SizeInt;
function CharReplace(var S: AnsiString; const Search: AnsiChar; const Replace: AnsiChar): SizeInt;
Parameters
Parameters | Description |
var S: string | The string in which to replace characters. |
const Search: Char | The character to replace. |
const Replace: Char | The character to use as a replacement of Search. |
Return Value
CharReplace returns the number of replacements performed.
Description
CharReplace replaces all occurrences of the specified search character with the supplied replace character. It returns the number of replacements performed. Note that the replacement is case-sensitive.
About
Unit
Donator
Azret Botash
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