| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Exchanges adjacent characters in a string.
CharSwap( <cString> ) --> cResult
The function exchanges characters at odd positions with characters at even positions and returns the resulting string.
| See also: | CharSort(), WordSwap() |
| Category: | CT:String manipulation , Character functions |
| Source: | ct\charswap.c |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
http://www.xHarbour.com