Files
playbook/docs/tsl/reference/catalog/base.md
T
csh 540b3c0a1b 📝 docs(tsl): restructure agent-facing reference
Rework TSL syntax, catalog, modules, and routing docs around deterministic agent lookup and generation.

Split large catalog pages into focused function fact pages, remove obsolete pending/verified/unavailable paths, and update consistency tests for the new structure.
2026-06-09 17:24:30 +08:00

55 lines
5.2 KiB
Markdown

# 基础函数
文档类型:函数事实路由页
是否可直接用于生成代码:是;进入分类详情页后按函数事实条目生成调用
遇到不确定时:回到 [../index.md](../index.md)、[../../syntax/index.md](../../syntax/index.md)
这一页是基础函数的轻量入口,不直接承载全部函数事实。生成函数调用时,先按分类目录进入详情页,再只读取命中的函数条目和参数表。
## 模块范围
- 说明:字符串、数组、日期时间、类型转换与常用基础能力
- 函数事实数:369
## 智能体检索规则
1. 用户只描述能力时,先按“分类目录”选择候选详情页。
2. 用户给出函数名时,优先在 `base/` 子目录中搜索三级函数标题。
3. 只读取命中的函数条目、相邻分类标题和必要参数表;不要把同页其它函数混进当前调用。
4. 没有命中函数事实条目时,不要发明函数名;回到 [../index.md](../index.md) 或项目实际代码确认。
## 分类目录
| 分类 | 详情页 | 函数事实数 |
| ---------------------------- | ------------------------------------------------------------------------------ | ---------: |
| 常用日期时间函数 | [base/01_common_datetime.md](base/01_common_datetime.md) | 32 |
| 简单转换函数 | [base/02_simple_conversion.md](base/02_simple_conversion.md) | 2 |
| 普通日期函数 | [base/03_date_basic.md](base/03_date_basic.md) | 19 |
| 分解函数 | [base/04_datetime_parts.md](base/04_datetime_parts.md) | 9 |
| 起始结束函数 | [base/05_datetime_boundaries.md](base/05_datetime_boundaries.md) | 16 |
| 关系函数 | [base/06_datetime_relations.md](base/06_datetime_relations.md) | 28 |
| 范围判定函数 | [base/07_range_predicates.md](base/07_range_predicates.md) | 8 |
| 范围获得函数 | [base/08_range_getters.md](base/08_range_getters.md) | 8 |
| 范围生成函数 | [base/09_range_span.md](base/09_range_span.md) | 8 |
| 时间推移函数 | [base/10_time_shift.md](base/10_time_shift.md) | 8 |
| 组合、分解日期函数 | [base/11_compose_decompose_datetime.md](base/11_compose_decompose_datetime.md) | 11 |
| 日期重组函数 | [base/12_datetime_recode.md](base/12_datetime_recode.md) | 21 |
| 日期格式的转换 | [base/13_datetime_format_conversion.md](base/13_datetime_format_conversion.md) | 10 |
| 宽字节日期格式转换函数 | [base/14_wide_datetime_conversion.md](base/14_wide_datetime_conversion.md) | 6 |
| 常用字符串函数 | [base/15_string_common.md](base/15_string_common.md) | 69 |
| 判定函数 | [base/16_string_predicates.md](base/16_string_predicates.md) | 8 |
| 替换以及处理函数 | [base/17_string_replace_process.md](base/17_string_replace_process.md) | 8 |
| 字符串数组相关函数 | [base/18_string_array.md](base/18_string_array.md) | 2 |
| 重复函数 | [base/19_repeat.md](base/19_repeat.md) | 1 |
| 多字节语言支持函数 | [base/20_multibyte_language.md](base/20_multibyte_language.md) | 2 |
| 字节函数 | [base/21_byte.md](base/21_byte.md) | 8 |
| 发音相关函数 | [base/22_phonetic.md](base/22_phonetic.md) | 10 |
| 正则表达式函数 | [base/23_regex.md](base/23_regex.md) | 3 |
| 多语言支持函数 | [base/24_multilanguage.md](base/24_multilanguage.md) | 33 |
| 文件名以及目录名相关处理函数 | [base/25_path_filename.md](base/25_path_filename.md) | 18 |
| 基本 | [base/26_array_basic.md](base/26_array_basic.md) | 4 |
| 数组下标以及长度相关函数 | [base/27_array_index_length.md](base/27_array_index_length.md) | 7 |
| 排序函数 | [base/28_array_sort.md](base/28_array_sort.md) | 2 |
| 增删改查 | [base/29_array_crud.md](base/29_array_crud.md) | 6 |
| 重构函数 | [base/30_array_restructure.md](base/30_array_restructure.md) | 2 |