📝 docs(tsl): sync api skill with corrected codegen

Mirror docs/tsl/codegen into the bundled tsl-api-reference skill and rebuild the function index.

Remove invalid duplicate API entries for cb_delistedbydate, createhttpsession, exportJsonString, and Anova_Bartlett so exact lookup returns the canonical entries.
This commit is contained in:
csh
2026-07-07 16:47:03 +08:00
parent bbf6977f57
commit c0bf0358e0
278 changed files with 45212 additions and 35782 deletions
@@ -120,18 +120,6 @@ return EncodeGraphGroup(array(g1,g2),array());
返回:string
## `exportJsonString(data, n, return_value)`
将TSL结构数据转换为json串。对于非ASCII编码的文字转换为转义字符。 天软中的nan,inf,-inf会相应地转换为NaN,Infinity,-Infinity,该处理是为了便捷与python处理的兼容,在交互中,将天软的数据结果转化为json串再传递到python中,可以解决编码不一导致转码效率低下的问题。但同时该类特殊数值的处理无法保障在其他语言中也能转换正常。
| 参数 | 类型 | 说明 |
| -------------- | ------- | ----------------------------------------------------------------------------- |
| `data` | anytype | 天软数据,任意数据类型。 |
| `n` | int | 可选参数,要保留的小数位数。为0时保留1位小数,大于16或小于0时保留全部小数位数 |
| `return_value` | string | 字符串,json串 |
返回:string
## `getMsgDigest(arg)`
信息摘要函数相关函数。
@@ -21,16 +21,6 @@
返回:any
## `createhttpsession(return_value)`
创建一个http Session对象,并返回会话ID,即Session id。仅新一代TSL语言支持该函数。
| 参数 | 类型 | 说明 |
| -------------- | ---- | -------------- |
| `return_value` | int | 返回session ID |
返回:intptr
## `destroyHttpSession(session, return_value)`
销毁一个Http Session对象,并返回销毁结果,销毁成功返回True。 仅新一代TSL语言支持该函数。