Name
lsubstring — Extracts a substring in UTF-8 encoded string
Synopsis
string
lsubstring
( |
string
STRING
, |
|
integer
OFFSET
, |
|
integer
LENGTH
) ; |
Parameters
-
string
STRING
-
integer
OFFSET
-
integer
LENGTH
Description
Extracts a substring of the string STRING
, starting at OFFSET
after the first one with length of at most LENGTH
. OFFSET
starts with 0. This method uses UTF-8 encoding.
Usage
substring ("some text", 5) -> "text"
substring ("some text", 42) -> ""