morrySnow commented on code in PR #1841: URL: https://github.com/apache/doris-website/pull/1841#discussion_r1919844655
########## i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/trim-in.md: ########## @@ -25,17 +25,19 @@ under the License. --> +## trim-in Review Comment: 删掉这行 ########## i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/trim-in.md: ########## @@ -25,17 +25,19 @@ under the License. --> +## trim-in ## 描述 - +删除输入字符串两端的多余空格 Review Comment: 描述有些问题,当存在第二个参数时,不是删除空格 ########## i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/url-decode.md: ########## @@ -24,31 +24,27 @@ specific language governing permissions and limitations under the License. --> -## url_decode +## url_encode ## 描述 -将URL转换为解码字符串。 +使用 UTF-8 编码完成所提供文本的 URL 编码。通常用于对作为 URL 的一部分传递的参数信息进行编码 ## 语法 ```sql -VARCHAR url_decode(VARCHAR url) +URL_ENCODE('VARCHAR STRING ') ``` -### Parameters +## 必选参数 -- url: 待解码的url。 +- VARCHAR STRING: 待编码的字符串。 -## 举例 +## 示例 +```sql +URL_ENCODE('Doris Q&A') ``` -mysql> mysql> select url_decode('https%3A%2F%2Fdoris.apache.org%2Fzh-CN%2Fdocs%2Fsql-manual%2Fsql-functions%2Fstring-functions'); -+------------------------------------------------+ -| url_decode('https%3A%2F%2Fdoris.apache.org%2Fzh-CN%2Fdocs%2Fsql-manual%2Fsql-functions%2Fstring-functions') | -+------------------------------------------------+ -| https://doris.apache.org/zh-CN/docs/sql-manual/sql-functions/string-functions | -+------------------------------------------------+ +## 返回值 Review Comment: 返回值章节不是写示例的返回值,而是写函数返回值的含义。应出现在示例上方 ########## i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/trim-in.md: ########## @@ -44,15 +46,4 @@ mysql> SELECT trim_in(' ab d ') str; +------+ | ab d | +------+ - -mysql> SELECT trim_in('ababccaab','ab') str; -+------+ -| str | -+------+ -| cc | Review Comment: 这个例子需要保留 ########## i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/trim-in.md: ########## @@ -25,17 +25,19 @@ under the License. --> +## trim-in ## 描述 - +删除输入字符串两端的多余空格 ## 语法 `VARCHAR trim_in(VARCHAR str[, VARCHAR rhs])` +## 注意事项 当没有 `rhs` 参数时,将参数 `str` 中右侧和左侧开始部分连续出现的空格去掉;当有 `rhs` 参数时,在字符串的两端查找并移除 `rhs` 字符集合中的任何字符(不考虑顺序) -## 举例 +## 示例 ```sql mysql> SELECT trim_in(' ab d ') str; Review Comment: 去掉prompt ```suggestion SELECT trim_in(' ab d ') str; ``` ########## i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/url-decode.md: ########## @@ -24,31 +24,27 @@ specific language governing permissions and limitations under the License. --> -## url_decode +## url_encode ## 描述 -将URL转换为解码字符串。 +使用 UTF-8 编码完成所提供文本的 URL 编码。通常用于对作为 URL 的一部分传递的参数信息进行编码 ## 语法 ```sql -VARCHAR url_decode(VARCHAR url) +URL_ENCODE('VARCHAR STRING ') ``` -### Parameters +## 必选参数 -- url: 待解码的url。 +- VARCHAR STRING: 待编码的字符串。 -## 举例 +## 示例 +```sql +URL_ENCODE('Doris Q&A') ``` -mysql> mysql> select url_decode('https%3A%2F%2Fdoris.apache.org%2Fzh-CN%2Fdocs%2Fsql-manual%2Fsql-functions%2Fstring-functions'); -+------------------------------------------------+ -| url_decode('https%3A%2F%2Fdoris.apache.org%2Fzh-CN%2Fdocs%2Fsql-manual%2Fsql-functions%2Fstring-functions') | -+------------------------------------------------+ -| https://doris.apache.org/zh-CN/docs/sql-manual/sql-functions/string-functions | -+------------------------------------------------+ +## 返回值 +```sql +Doris+Q%26A Review Comment: 返回值使用mysql结果的table形式呈现 ########## i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/trim-in.md: ########## @@ -25,17 +25,19 @@ under the License. --> +## trim-in ## 描述 - +删除输入字符串两端的多余空格 ## 语法 `VARCHAR trim_in(VARCHAR str[, VARCHAR rhs])` Review Comment: 语法中不要有类型,参数需要尖括号包裹。使用code block 而不是 inline code。函数名使用大写 ````suggestion ```sql TRIM_IN( <str> [, <rhs> ] ) ``` ```` ########## i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/trim-in.md: ########## @@ -25,17 +25,19 @@ under the License. --> +## trim-in ## 描述 - +删除输入字符串两端的多余空格 ## 语法 `VARCHAR trim_in(VARCHAR str[, VARCHAR rhs])` +## 注意事项 当没有 `rhs` 参数时,将参数 `str` 中右侧和左侧开始部分连续出现的空格去掉;当有 `rhs` 参数时,在字符串的两端查找并移除 `rhs` 字符集合中的任何字符(不考虑顺序) Review Comment: 这句话直接写到描述里面。去掉注意事项章节 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org