Exchange string with another variable

Syntax

s.swap(s2)

 

Parameters

s - str variable.

s2 - another str variable.

 

Remarks

Exchanges strings of two str variables s and s2 without copying.

 

Exchanges str member variables lpstr, len, nc, but not flags.

 

Added in: QM 2.4.1.