Skip to content

Wonkey types string slice

wonkey:wonkey.types.String.Slice

Method Slice:String( from:Int )#
Method Slice:String( from:Int,tail:Int )#

Extracts a substring from the string.

Returns a string consisting of all characters from from until (but not including) tail, or until the end of the string if tail is not specified.

If either from or tail is negative, it represents an offset from the end of the string.

Parameters
from from The starting index.
tail tail The ending index.