guides:programming:programmers_reference_manual:rti_stringbuilder

RTI_Stringbuilder function

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

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

The function has the following parameters:

ParameterDescription
handle
methodValue - Description
New - Creates a new string.
Append - Appends a value to the end of an existing string.
GetByteSize - Returns the size of the string in bytes.
ToString - Returns the entire string.
RemoveAt - Returns the string at a delimiter.
Destroy - Destroys the handle.
param1Method - Value: Description
New - numBtyes: The number of bytes to allocate for the string. If null, the function will allocate 64K.
Append -String: The data to be appended to the string.
GetByteSize - <null>: Not applicable
ToString - Result: The string is returned in the first parameter.
RemoveAt - Result: The string is returned in the first parameter.
Destroy - <null>: Not applicable
param2Method - Value: Description
New - <null>: Not applicable
Append - <null>: Not applicable
GetByteSize - <null>: Not applicable
ToString - Boolean value: When True, the function will trim trailing system delimiters. The default is False. The system delimiters that will be removed are: @RM, @FM, @SVM, @TM.
RemoveAt - Integer: The starting position of the next substring.
Destroy - <null>: Not applicable
param3Method - Value: Description
New - <null>: Not applicable
Append - <null>: Not applicable
GetByteSize - <null>: Not applicable
ToString - <null>: Not applicable
RemoveAt - Integer: The starting position of the next substring.
Destroy - <null>: Not applicable
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.
  • guides/programming/programmers_reference_manual/rti_stringbuilder.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1