[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'sysutils' (#rtl)

WideStringReplace

Replace occurrences of one substring with another in a widestring.

Declaration

Source position: syswideh.inc line 37

function WideStringReplace(

  const S: WideString;

  const OldPattern: WideString;

  const NewPattern: WideString;

  Flags: TReplaceFlags

):WideString;

function WideStringReplace(

  const S: WideString;

  const OldPattern: WideString;

  const NewPattern: WideString;

  Flags: TReplaceFlags;

  out aCount: Integer

):WideString;

Description

WideStringReplace searches the string S for occurrences of the string OldPattern and, if it is found, replaces it with NewPattern. It returns the resulting string. The behaviour of StringReplace can be tuned with Flags, which is of type TReplaceFlags. Standard behaviour is to replace only the first occurrence of OldPattern, and to search case sensitively.

Errors

None.

See also

TReplaceFlags

  

Flags for StringReplace function

StringReplace

  

Replace occurrences of one substring with another in a string.


Documentation generated on: Jun 22 2020