Files
playbook/docs/tsl/reference/catalog/base/18_byte.md
T
cshandClaude Opus 4.6 8b93311cae 📝 docs(tsl): clarify syntax constraints and enhance test infrastructure
- Add TSF file naming constraint to syntax/02_core_model.md
- Clarify semicolon rules: syntax facts vs style preferences
- Separate control flow end semicolon rules (syntax allows both)
- Add function body semicolon requirements to syntax/05_functions_and_calls.md
- Move style preferences to code_style.md (control flow end semicolons)
- Remove cross-references from syntax docs to maintain independence
- Enhance Gitea workflow emoji for better CI output readability
- Fix CI test path from tests/ to test/
- Organize agent test results under test/agent/result/ directory
- Add complete Chinese translation of test cases (test_cases_zh.md)
- Clean up .gitignore to use unified test/agent/result/ directory
- Remove obsolete agent test artifacts (REPORTS_LOCATION.md, old results)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-06-21 17:04:50 +08:00

3.5 KiB

基础函数 - 字节函数

文档类型:函数事实页 是否可直接用于生成代码:是;本页函数条目均包含参数表 遇到不确定时:回到 ../base.md../../index.md

字节函数

containsText(a, b)

用途:字符串相关函数。

参数个数:2 返回值:字符串

参数位置 参数名 必填 接收类型 说明
1 a 任意值 按源文档示例顺序传入
2 b 任意值 按源文档示例顺序传入

startsText(arg1, text)

用途:字符串相关函数。

参数个数:2 返回值:字符串

参数位置 参数名 必填 接收类型 说明
1 arg1 字符串 按源文档示例顺序传入
2 text 字符串 按源文档示例顺序传入

endsText(arg1, text)

用途:字符串相关函数。

参数个数:2 返回值:字符串

参数位置 参数名 必填 接收类型 说明
1 arg1 字符串 按源文档示例顺序传入
2 text 字符串 按源文档示例顺序传入

containsStr(a, b)

用途:字符串相关函数。

参数个数:2 返回值:字符串

参数位置 参数名 必填 接收类型 说明
1 a 字符串 按源文档示例顺序传入
2 b 字符串 按源文档示例顺序传入

startsStr(value, atext)

用途:字符串相关函数。

参数个数:2 返回值:字符串

参数位置 参数名 必填 接收类型 说明
1 value 字符串 按源文档示例顺序传入
2 atext 字符串 按源文档示例顺序传入

endsStr(value, text)

用途:字符串相关函数。

参数个数:2 返回值:字符串

参数位置 参数名 必填 接收类型 说明
1 value 字符串 按源文档示例顺序传入
2 text 字符串 按源文档示例顺序传入

stuffbString(atext, arg2, arg3, asub_text)

用途:字符串相关函数。

参数个数:4 返回值:字符串

参数位置 参数名 必填 接收类型 说明
1 atext 字符串 按源文档示例顺序传入
2 arg2 整数 按源文档示例顺序传入
3 arg3 整数 按源文档示例顺序传入
4 asub_text 字符串 按源文档示例顺序传入

reversebString(a)

用途:字符串相关函数。

参数个数:1 返回值:字符串

参数位置 参数名 必填 接收类型 说明
1 a 任意值 按源文档示例顺序传入