DLiteScript

strings.substring

Extracts a portion of a string between two indices.

Examples

1
2
var result string = strings.substring("hello world", 0, 5)
printf("%s\n", result) // hello