Description

This function provides a utility to build and extract data from a string.

Syntax

retval = RTI_Stringbuilder( handle, method, param1, param2, param3)

Parameters

The function has the following parameters:

ParameterDescription
handle 
method
ValueDescription
NewCreates a new string.
AppendAppends a value to the end of an existing string.
GetByteSizeReturns the size of the string in bytes.
ToStringReturns the entire string.
RemoveAtReturns the string at a delimiter.
DestroyDestroys the handle.
param1
MethodValueDescription
NewnumBtyesThe number of bytes to allocate for the string. If null, the function will allocate 64K.
AppendStringThe data to be appended to the string.
GetByteSize<null>Not applicable
ToStringResultThe string is returned in the first parameter.
RemoveAtResultThe string is returned in the first parameter.
Destroy<null>Not applicable
param2
MethodValueDescription
New<null>Not applicable
Append<null>Not applicable
GetByteSize<null>Not applicable
ToStringBoolean valueWhen True, the function will trim trailing system delimiters. The default is False. The system delimiters that will be removed are: @RM, @FM, @SVM, @TM.
RemoveAtIntegerThe starting position of the next substring.
Destroy<null>Not applicable
param3
MethodValueDescription
New<null>Not applicable
Append<null>Not applicable
GetByteSize<null>Not applicable
ToString<null>Not applicable
RemoveAtIntegerThe starting position of the next substring.
Destroy<null>Not applicable

Returns

MethodReturn Value
NewNot applicable
AppendThe end position of the string.
GetByteSizeReturns the size of the string in bytes.
ToStringReturns the entire string.
RemoveAtReturns the string at a delimiter.
DestroyNot applicable.
  • No labels