Sign in Join
FPDoc Onlineexperiment

MergeWithDelimiter function

In unit LazStringUtils

Combines two string values using the specified delimiter character.

Declaration

pascal
function MergeWithDelimiter(const a: string; const b: string; 
 Delimiter: char): string

Arguments

a

First value merged in the result.

b

Second value merged after the delimiter.

Delimiter

Delimiter used to separate values.

Function result

Combined values using the specified delimiter.

Description

The value in Delimiter is omitted from the return value if either A or B is an empty string ('').

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.