Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ISafeString::reverseString ( P6CHAR pBuffer,
P6SIZE  cStart,
P6SIZE  cEnd 
)
pure virtual

Reverse a string in place given starting and ending offests, allowing any portion, or the entire string to be reversed.

Given the string "1234567890" calling reverseString() with a cStart of 0 and a cEnd of 9 would reverse the entire string resulting in "0987654321$quot;. Calling reverseString() with a cStart of 4 and a cEnd of 8 would result in this output "1234876590".

Parameters
pBuffer[ in ] The address of the string to reverse
cStart[ in ] The start offset (in characters) in the buffer pointed to by pBuffer at which to begin revering the string.
cEnd[ in ] The ending offset (in characters) in pBuffer to stop reversing the string.
Returns