[Overview][Procedures and functions][Index] Reference for unit 'LazUTF16' (#lazutils)

Utf16StringReplace

Deprecated. Replaces a pattern in a Unicode string with another Unicode pattern.

Declaration

Source position: lazutf16.pas line 49

function Utf16StringReplace(

  const S: UnicodeString;

  const OldPattern: UnicodeString;

  const NewPattern: UnicodeString;

  Flags: TReplaceFlags

):UnicodeString;

function Utf16StringReplace(

  const S: UnicodeString;

  const OldPattern: UnicodeString;

  const NewPattern: UnicodeString;

  Flags: TReplaceFlags;

  out Count: Integer

):UnicodeString;

Arguments

S

  

Unicode string value examined in the routine.

OldPattern

  

Unicode string with the pattern to locate in S.

NewPattern

  

Unicode string with the pattern used to replace the old pattern in S.

Flags

  

Set of replacement flags applied in the routine.

Function result

Updated value for Unicode string after pattern replacement(s).

Arguments

S

  

Unicode string value examined in the routine.

OldPattern

  

Unicode string with the pattern to locate in S.

NewPattern

  

Unicode string with the pattern used to replace the old pattern in S.

Flags

  

Set of replacement flags applied in the routine.

Count

  

Number of replacements performed in the routine.

Description

Utf16StringReplace is the same as SysUtil.StringReplace but for WideStrings and UnicodeStrings. It has been deprecated in LazUtils; use StringReplace (sysutils) or UnicodeStringReplace (sysutils) instead.

Version info

Deprecated in LazUtils version 4.0; use StringReplace or UnicodeStringReplace from the SysUtils unit instead.

See also

StringReplace

UnicodeStringReplace

TReplaceFlags


Version 4.0 Generated 2025-05-03 Home