Skip to content

Wonkey types string mid

wonkey:wonkey.types.String.Mid

Method Mid:String( from:Int,count:Int )#

Gets a substring from the middle of the string.

Returns a string consisting of count characters starting from index from.

If count is less than or equal to 0, an empty string is returned.

If from+count is greater than the length of the string, the returned string is truncated.

Parameters
from from The index of the first character to return.
count count The number of characters to return.