JCL Help:StrReplaceChar@AnsiString@AnsiChar@AnsiChar

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Replaces all occurrences of a character with another character


Pascal

 function StrReplaceChar(const S: string; const Source: Char; const Replace: Char): string;
function StrReplaceChar(const S: AnsiString; const Source: AnsiChar; const Replace: AnsiChar): AnsiString;


Parameters

Parameters Description
const S: string The source string.
const Replace: Char The character to use as a replacement of Search.
Search The character to replace.


Return Value

The string with all replacements performed.


Description

StrReplaceChar replaces all occurrences of the specified search character with the supplied replace character. Note that the replacement is case-sensitive.


About

Unit

JclAnsiStrings


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