RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
UnicodeString::swap Method

Swaps System::UnicodeString with another string.

Pascal
function swap(var other: UnicodeString): UnicodeString&;
C++

System::UnicodeString::swap swaps a System::UnicodeString with a given string. Swapping is not done by copying, but by swapping references. This is a very efficient operation, well suited to sorting strings, for example. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!