From 20b22df20e83dd028184f7720807a1ee2ded3a3a Mon Sep 17 00:00:00 2001 From: Jove Zhong Date: Sun, 12 Jan 2025 20:34:24 -0800 Subject: [PATCH] Add doc for substring/start_with/end_with --- docs/functions_for_text.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/functions_for_text.md b/docs/functions_for_text.md index 0512ac808..52f718205 100644 --- a/docs/functions_for_text.md +++ b/docs/functions_for_text.md @@ -28,6 +28,16 @@ For example, `format('{} {}', 'Hello', 'World')`gets `Hello World` `substr(str,index [,length])` Returns the substring of `str` from `index` (starting from 1). `length` is optional. +### substring + +`substring(str,index [,length])` Alias of [substr](#substr). + +### start_with +`start_with(str,prefix)` Determines whether a string starts with a specified prefix. + +### end_with +`end_with(str,suffix)` Determines whether a string ends with a specified suffix. + ### trim `trim(string)`