diff options
Diffstat (limited to 'docs/content/en/functions/strings/Substr.md')
-rw-r--r-- | docs/content/en/functions/strings/Substr.md | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/docs/content/en/functions/strings/Substr.md b/docs/content/en/functions/strings/Substr.md index 19a029e28..a4c779f7d 100644 --- a/docs/content/en/functions/strings/Substr.md +++ b/docs/content/en/functions/strings/Substr.md @@ -3,16 +3,15 @@ title: strings.Substr description: Returns a substring of the given string, beginning with the start position and ending after the given length. categories: [] keywords: [] -action: - aliases: [substr] - related: - - functions/strings/SliceString - returnType: string - signatures: ['strings.Substr STRING [START] [LENGTH]'] +params: + functions_and_methods: + aliases: [substr] + returnType: string + signatures: ['strings.Substr STRING [START] [LENGTH]'] aliases: [/functions/substr] --- -The start position is zero-based, where `0` represents the first character of the string. If START is not specified, the substring will begin at position `0`. Specify a negative START position to extract characters from the end of the string. +The start position is zero-based, where `0` represents the first character of the string. If START is not specified, the substring will begin at position `0`. Specify a negative START position to extract characters from the end of the string. If LENGTH is not specified, the substring will include all characters from the START position to the end of the string. If negative, that number of characters will be omitted from the end of string. |