String :: mid - Get Substring
The function returns a sub string from the current string beginning at position iPosition (units). The encoding type of the string returned is taken from the current string.
When the iPosition exceeds the length of the current string length, the function returns an empty string. When iPosition is less than zero the function throws an exception.
Implementation overview
- Get substring with limited size
String :: mid ( iPosition, iCount ) - Get remaining part of string
String :: mid ( iPosition )
Implementation details
-
Get substring with limited size
odaba::String String  :: mid ( int32 iPosition, int32 iCount )
The function returns a sub string from the current string beginning at position iPosition (units). When there are less than iCount units available in the string, or if iCount is -1 (default), the function returns all units that are available starting from the specified position. Passing 0 in iCount returns an empty string.
- iPosition
- Position in collection
The position of an element in a collection is beginning with 0 for the first element.
- iCount
- Number of items
The value contains the number of items to be processed or stored in a collection.
to list
- iPosition
- Position in collection
-
Get remaining part of string
odaba::String String  :: mid ( int32 iPosition )
The function returns the remaining part of the current string beginning at iPosition (units).
- iPosition
- Position in collection
The position of an element in a collection is beginning with 0 for the first element.
to list
- iPosition
- Position in collection