Capy-Bearer Documentation

substr

lib call

Capy

function substr(value : string, start : s32) string
function substr(value : string, start : s64) string
function substr(value : string, start : s32, length : s32) string
function substr(value : string, start : s64, length : s64) string

Description

Use substr to get part of a string. A negative start or length counts from the end.

Return Values

Extracted text.

Example

Capy

print(substr("documentation", 0, 3), "\n")