tsplitbuffer.md 2.8 KB


id: tsplitbuffer title: TSplitBuffer

sidebar_label: TSplitBuffer

An array of split text from a TStringBuilder.

Note that the TSplitBuffer is only valid while its parent TStringBuilder is unchanged. Once you modify the TSplitBuffer you should call Split() again.

Methods

Method Length:Int()

The number of split elements.


Method Text:String(index:Int)

Returns the text for the given index in the split buffer.


Method ToArray:String[]()

Creates a new string array of all the split elements.


Method ToInt:Int(index:Int)

Returns the split element at the specified index as an Int.

If the element is not a valid Int, 0 is returned.


Method ToFloat:Float(index:Int)

Returns the split element at the specified index as a Float.

If the element is not a valid Float, 0.0 is returned.


Method ToDouble:Double(index:Int)

Returns the split element at the specified index as a Double.

If the element is not a valid Double, 0.0 is returned.


Method ToLong:Long(index:Int)

Returns the split element at the specified index as a Long.

If the element is not a valid Long, 0 is returned.


Method ToULong:ULong(index:Int)

Returns the split element at the specified index as a ULong.

If the element is not a valid ULong, 0 is returned.


Method ToUInt:UInt(index:Int)

Returns the split element at the specified index as a UInt.

If the element is not a valid UInt, 0 is returned.


Method ToShort:Short(index:Int)

Returns the split element at the specified index as a Short.

If the element is not a valid Short, 0 is returned.


Method ToByte:Byte(index:Int)

Returns the split element at the specified index as a Byte.

If the element is not a valid Byte, 0 is returned.


Method ToSizeT:Size_T(index:Int)

Returns the split element at the specified index as a Size_T.

If the element is not a valid Size_T, 0 is returned.


Method Split:TSplitBuffer(index:Int, separator:String)

Creates a new split buffer of the split element at the specified index.