|
3 | 3 | "type": "function",
|
4 | 4 | "description": "Returns a part of a string.",
|
5 | 5 | "arguments": [ {"arg":"string","description":"the full input string"},
|
6 |
| - {"arg":"start","description":"integer representing start position to extract from; if start is negative, the return string will begin at the end of the string minus the start value"}, |
| 6 | + {"arg":"start","description":"integer representing start position to extract beginning with 1; if start is negative, the return string will begin at the end of the string minus the start value"}, |
7 | 7 | {"arg":"length","optional":true,"description":"integer representing length of string to extract; if length is negative, the return string will omit the given length of characters from the end of the string"}
|
8 | 8 | ],
|
9 | 9 | "examples": [ { "expression":"substr('HELLO WORLD',3,5)", "returns":"'LLO W'"},
|
10 |
| - { "expression":"substr('HELLO WORLD',6)", "returns":"'WORLD'"}, |
| 10 | + { "expression":"substr('HELLO WORLD',6)", "returns":"' WORLD'"}, |
11 | 11 | { "expression":"substr('HELLO WORLD',-5)","returns":"'WORLD'"},
|
12 | 12 | { "expression":"substr('HELLO',3,-1)", "returns":"'LL'"},
|
13 | 13 | { "expression":"substr('HELLO WORLD',-5,2)","returns":"'WO'"},
|
|
0 commit comments