📝 docs(tsl): rebuild canonical syntax and routing manual

This commit is contained in:
csh
2026-04-22 16:59:20 +08:00
parent 3ed5052e61
commit 96b705b00b
83 changed files with 46446 additions and 323 deletions
@@ -0,0 +1,83 @@
# TSL函数
> 本文档从 [archive/tsl/syntax_book/function/index.md](../../archive/tsl/syntax_book/function/index.md) 拆分而来
TSL函数包含数学、系统、基础、图形等通用函数,适用于各种TSL脚本开发场景。
## 目录
### 数学与计算
- **[数学函数](./math.md)** (14,396行)
- 数值计算、常用数学函数、位运算函数
- 三角函数、角度量转换、双曲线函数
- 指数对数函数、随机数、统计函数
### 系统与平台
- **[系统相关函数](./system.md)** (1,647行)
- 系统信息、环境变量、进程控制
- 内存管理、性能监控
- **[平台函数](./platform.md)** (553行)
- 平台特定功能、系统调用
- **[客户端函数](./client.md)** (409行)
- 客户端交互、界面控制
### 基础功能
- **[基础函数](./base.md)** (10,660行)
- 字符串处理、数组操作、日期时间
- 类型转换、条件判断、数据结构
- 文件操作、流程控制
- **[图形函数](./graphics.md)** (698行)
- 绘图、图表、可视化
### 资源与交互
- **[资源访问函数](./resource.md)** (4,897行)
- 文件读写、数据库访问、网络通信
- 配置文件、资源管理
- **[第三方交互函数](./third_party.md)** (610行)
- 第三方库调用、外部程序交互
### 工具函数
- **[压缩和解压函数](./compression.md)** (108行)
- 数据压缩、解压缩、归档
- **[信息摘要及编码](./digest_encoding.md)** (172行)
- 哈希算法、加密、编码转换
## 快速索引
### 常用函数分类
| 功能类别 | 文件 | 典型函数示例 |
| ---------- | ---------------------------- | --------------------------------------- |
| 数学计算 | [math.md](./math.md) | Abs, Sqrt, Sin, Cos, Log, Exp, Round... |
| 字符串处理 | [base.md](./base.md) | Len, Mid, Left, Right, Trim, Replace... |
| 日期时间 | [base.md](./base.md) | Now, Date, Time, DateAdd, DateDiff... |
| 文件操作 | [resource.md](./resource.md) | FileExists, ReadFile, WriteFile... |
| 数组操作 | [base.md](./base.md) | Array, UBound, LBound, Sort... |
| 类型转换 | [base.md](./base.md) | CStr, CInt, CFloat, CBool... |
## 使用提示
1. **数学函数**`math.md` 包含了所有数学计算相关的函数,是数值处理的基础
2. **基础函数**`base.md`
最为常用,包含了字符串、数组、日期时间等日常开发必需的函数
3. **资源访问**`resource.md` 涉及文件、数据库、网络等外部资源的访问
4. **搜索建议**:在当前目录(`data/tsl_reference_catalog_source/`)使用全局搜索查找特定函数
---
**返回**: [archive/tsl/syntax_book/function/index.md](../../archive/tsl/syntax_book/function/index.md)