📝 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:
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
# 运行时 / 数据库事务
|
||||
|
||||
### `sqlBeginTrans(db_alias)`
|
||||
## `sqlBeginTrans(db_alias)`
|
||||
|
||||
开始一个数据库事务。
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `sqlInTrans(db_alias)`
|
||||
## `sqlInTrans(db_alias)`
|
||||
|
||||
检查是否在一个数据库事务中。
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `sqlRollback(db_alias)`
|
||||
## `sqlRollback(db_alias)`
|
||||
|
||||
回滚事务。
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# 运行时 / 编码与压缩
|
||||
|
||||
### `convertDataToBuf(data, convert_type)`
|
||||
## `convertDataToBuf(data, convert_type)`
|
||||
|
||||
将一个数据转换成内存存贮的BUFFER。
|
||||
|
||||
@@ -11,21 +11,21 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `decodeGraph(grap, _type, name, data, prop)`
|
||||
## `decodeGraph(grap, _type, name, data, prop)`
|
||||
|
||||
分解图形,将Graph分解成为类型、名称、数据和属性两个数组,属性数组的下标为属性名,值为属性值。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------ | ------ | -------------------------------------------- |
|
||||
| `grap` | any | 图形,输入; |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | ------ | -------------------------------------------- |
|
||||
| `grap` | any | 图形,输入; |
|
||||
| `_type` | any | 整数,图形类型,参见图形类型函数,输出值; |
|
||||
| `name` | string | 字符串,图形类型名称,与返回值对应,输出值; |
|
||||
| `data` | array | 二维数组,图形数据,输出值; |
|
||||
| `prop` | array | 二维数组,图形属性组合,输出值; |
|
||||
| `name` | string | 字符串,图形类型名称,与返回值对应,输出值; |
|
||||
| `data` | array | 二维数组,图形数据,输出值; |
|
||||
| `prop` | array | 二维数组,图形属性组合,输出值; |
|
||||
|
||||
返回:array
|
||||
|
||||
### `decodeGraphGroup(graph_group, graph_array, graph_group_prop)`
|
||||
## `decodeGraphGroup(graph_group, graph_array, graph_group_prop)`
|
||||
|
||||
分解图形组合,将GraphGroup分解成为TGraph数组以及属性数组,属性数组的下标为属性名,值为属性值。
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `decoderadixstr(s, presufflen, radix)`
|
||||
## `decoderadixstr(s, presufflen, radix)`
|
||||
|
||||
对指定进制格式的源码字符串进行解码。与Encoderadixstr的功能相反。
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `decoderadixwstr(s, presufflen, radix)`
|
||||
## `decoderadixwstr(s, presufflen, radix)`
|
||||
|
||||
对指定进制指定格式的宽字节源码串进行解码。与Encoderadixwstr的功能相反。
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `encodeGraphGroup(graph_array, graph_group_prop)`
|
||||
## `encodeGraphGroup(graph_array, graph_group_prop)`
|
||||
|
||||
返回根据指定的TGraph数组和属性数组组合成的图形组合。
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
|
||||
返回:TgraphGroup
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),'SZ000002');
|
||||
@@ -96,7 +96,7 @@ g2:=graph(gtline(),'MA10',t2);
|
||||
return EncodeGraphGroup(array(g1,g2),array());
|
||||
```
|
||||
|
||||
### `encoderadixstr(s, presuff, radix)`
|
||||
## `encoderadixstr(s, presuff, radix)`
|
||||
|
||||
将字符串转换为指定进制格式的源码。
|
||||
|
||||
@@ -108,7 +108,7 @@ return EncodeGraphGroup(array(g1,g2),array());
|
||||
|
||||
返回:string
|
||||
|
||||
### `encoderadixwstr(s, presuff, radix)`
|
||||
## `encoderadixwstr(s, presuff, radix)`
|
||||
|
||||
将字符串按宽字节码转换成指定进制格式的源码。而Encoderadixstr是按多字节字码进行转换。
|
||||
|
||||
@@ -120,19 +120,7 @@ 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)`
|
||||
## `getMsgDigest(arg)`
|
||||
|
||||
信息摘要函数相关函数。
|
||||
|
||||
@@ -148,7 +136,7 @@ return EncodeGraphGroup(array(g1,g2),array());
|
||||
|
||||
## 信息摘要及编码 / 进制编码函数
|
||||
|
||||
### `makeLcid(language_id, sort_id)`
|
||||
## `makeLcid(language_id, sort_id)`
|
||||
|
||||
LCID编码函数。
|
||||
|
||||
@@ -159,13 +147,13 @@ LCID编码函数。
|
||||
|
||||
返回:int
|
||||
|
||||
### `unicodeEsc2()`
|
||||
## `unicodeEsc2()`
|
||||
|
||||
多语言支持函数相关函数。
|
||||
|
||||
返回:string
|
||||
|
||||
### `unicodetoUtf8(s)`
|
||||
## `unicodetoUtf8(s)`
|
||||
|
||||
Unicode串转为UTF8串。天软字符串前加L表示宽字节字符串,即Unicode串。
|
||||
|
||||
@@ -175,26 +163,26 @@ Unicode串转为UTF8串。天软字符串前加L表示宽字节字符串,即Un
|
||||
|
||||
返回:string
|
||||
|
||||
### `unicompress(_type, data, compresslevel, return_value)`
|
||||
## `unicompress(_type, data, compresslevel, return_value)`
|
||||
|
||||
统一压缩函数,对字符串或二进制进行压缩。 type目前支持zstd,zlib,lz4三种类型,压缩级别在zstd和zlib模式下生效。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ------ | ------------------------------------------------ |
|
||||
| `_type` | string | 压缩类型,目前支持zstd,zlib,lz4三种类型 |
|
||||
| `_type` | string | 压缩类型,目前支持zstd,zlib,lz4三种类型 |
|
||||
| `data` | string | 字符串或二进制类型, |
|
||||
| `compresslevel` | int | 可选参数,压缩级别,目前仅在zstd和zlib模式下生效 |
|
||||
| `return_value` | string | 压缩后的串 |
|
||||
|
||||
返回:string
|
||||
|
||||
### `uniuncompress(_type, data, srclen, return_value)`
|
||||
## `uniuncompress(_type, data, srclen, return_value)`
|
||||
|
||||
统一解压函数。 type目前支持zstd,zlib,lz4三种类型,srclen的设置是解压的大小,不设定会自动识别,设定后会比较大小是否相符,如果知道原大小,则应该设定该参数。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| -------------- | ------ | ---------------------------------------------------------------------------------------- |
|
||||
| `_type` | string | 解压类型 |
|
||||
| `_type` | string | 解压类型 |
|
||||
| `data` | string | 字符串或二进制类型,被解压的串 |
|
||||
| `srclen` | int | 解压的大小,不设定会自动识别,设定后会比较大小是否相符,如果知道原大小,则应该设定该参数 |
|
||||
| `return_value` | int | 解压后的串 |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# 运行时 / 文件与目录
|
||||
|
||||
### `createDir(alias, dir_name)`
|
||||
## `createDir(alias, dir_name)`
|
||||
|
||||
创建目录。如果本地不存在该目录,可创建目录;如果该目录已存在,则创建失败,返回0。
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `exportFile(filename, arg2, arg3, data)`
|
||||
## `exportFile(filename, arg2, arg3, data)`
|
||||
|
||||
文件访问函数相关函数。
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `fileAge(alias, file_name)`
|
||||
## `fileAge(alias, file_name)`
|
||||
|
||||
取得文件的时间。
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `fileAttr(alias, file_name)`
|
||||
## `fileAttr(alias, file_name)`
|
||||
|
||||
取得文件的属性。该值是各种属性的和,可以参考WINDOWS API。 值 说明 32(0x20) 备份文件 2048(0x800) 压缩文件 64(0x40) 系统保留属性 16(0x10) 目录 16384 (0x4000) 加密文件或目录 2 (0x2) 隐藏的文件或目录 32768 (0x8000) 文件完整性 128 (0x80) 常规文件 8192 (0x2000) 非索引文件 131072 (0x20000) 不扫描的数据文件 4096 (0x1000) 离线文件,主要是共享文件可在脱机状态下使用 1 (0x1) 只读文件 1024 (0x400) 符号链接文件 512 (0x200) 稀疏文件,文件中出现大量的0数据 4 (0x4) 操作系统文件 256 (0x100) 临时文件 65536 (0x10000) 虚拟属性,系统保留属性
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `fileCopy(src_alias, src_name, dest_alias, dest_name, fail_if_exists)`
|
||||
## `fileCopy(src_alias, src_name, dest_alias, dest_name, fail_if_exists)`
|
||||
|
||||
文件拷贝。注:目标文件名的路径必须存在,否则会复制不成功。
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `fileDateToDateTime(filename)`
|
||||
## `fileDateToDateTime(filename)`
|
||||
|
||||
日期时间处理函数。
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
|
||||
返回:datetime
|
||||
|
||||
### `fileDelete(alias, file_name)`
|
||||
## `fileDelete(alias, file_name)`
|
||||
|
||||
删除文件。
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `fileExists(alias, file_name)`
|
||||
## `fileExists(alias, file_name)`
|
||||
|
||||
判定文件是否存在。
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `fileInfo(alias, name)`
|
||||
## `fileInfo(alias, name)`
|
||||
|
||||
获取指定文件基本信息。
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `fileList(alias, file_name)`
|
||||
## `fileList(alias, file_name)`
|
||||
|
||||
列出目录。
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `fileMode(alias, file_name)`
|
||||
## `fileMode(alias, file_name)`
|
||||
|
||||
获取文件模式数值。此函数在Windows上与FileAttr表现一致,具体可以参考FileAttr中的相关说明。在Linux上采用Linux的原始定义。仅NG客户端中支持。
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `fileMove(src_alias, srcname, dest_alias, destname, flag, return_value)`
|
||||
## `fileMove(src_alias, srcname, dest_alias, destname, flag, return_value)`
|
||||
|
||||
文件移动,指定的目标路径必须已存在(路径不存在时,移动失败),移动成功后,原文件不再存在,只在目标路径中保存。 相比filerename而言支持跨卷移动。
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `fileRename(alias, file_name, new_name)`
|
||||
## `fileRename(alias, file_name, new_name)`
|
||||
|
||||
文件更名,也可用于文件的移动(大多数情况下不支持跨卷移动)。
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `fileSize(alias, file_name)`
|
||||
## `fileSize(alias, file_name)`
|
||||
|
||||
取得文件大小。
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `fileTime(alias, file_name)`
|
||||
## `fileTime(alias, file_name)`
|
||||
|
||||
取得文件的最后更新时间。
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
|
||||
返回:datetime
|
||||
|
||||
### `getDeviceFree(alias, name)`
|
||||
## `getDeviceFree(alias, name)`
|
||||
|
||||
获取指定路径所在设备的剩余存储空间信息。
|
||||
|
||||
@@ -185,7 +185,7 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `getdeviceinfo(alias, name)`
|
||||
## `getdeviceinfo(alias, name)`
|
||||
|
||||
获取指定路径所在设备的存储空间等信息。
|
||||
|
||||
@@ -196,7 +196,7 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `importFile(filename, arg2, arg3, data2)`
|
||||
## `importFile(filename, arg2, arg3, data2)`
|
||||
|
||||
文件访问函数相关函数。
|
||||
|
||||
@@ -209,7 +209,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `readFile(filename, arg2, arg3, arg4, size, data)`
|
||||
## `readFile(filename, arg2, arg3, arg4, size, data)`
|
||||
|
||||
文件访问函数相关函数。
|
||||
|
||||
@@ -224,7 +224,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `removeDir(alias, dir_name)`
|
||||
## `removeDir(alias, dir_name)`
|
||||
|
||||
删除目录。只能删除空目录;如果要删除的目录下有文件,删除失败。
|
||||
|
||||
@@ -235,7 +235,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `setFileAge(alias, file_name, age)`
|
||||
## `setFileAge(alias, file_name, age)`
|
||||
|
||||
设置文件的时间。
|
||||
|
||||
@@ -247,7 +247,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `setFileAttr(alias, file_name, attr)`
|
||||
## `setFileAttr(alias, file_name, attr)`
|
||||
|
||||
设置文件的属性。
|
||||
|
||||
@@ -259,7 +259,7 @@
|
||||
|
||||
返回:any
|
||||
|
||||
### `setFileMode(alias, file_name, mode)`
|
||||
## `setFileMode(alias, file_name, mode)`
|
||||
|
||||
设置文件的模式。仅NG客户端中支持。
|
||||
|
||||
@@ -271,7 +271,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `setFileTime(alias, file_name, time)`
|
||||
## `setFileTime(alias, file_name, time)`
|
||||
|
||||
设置文件的时间。
|
||||
|
||||
@@ -283,7 +283,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `tsModuleInfo(n)`
|
||||
## `TS_ModuleInfo(n)`
|
||||
|
||||
返回进程以及TSLInterp.dll的时间以及大小信息。如果有系统权限信息,用TS_ModuleInfo(1)返回所有模块的文件名和时间。
|
||||
|
||||
@@ -295,7 +295,7 @@
|
||||
|
||||
## 用户和函数相关函数
|
||||
|
||||
### `writeToLog(dir, sub_dir, value)`
|
||||
## `writeToLog(dir, sub_dir, value)`
|
||||
|
||||
向虚拟目录写日志。其中Dir为虚拟目录名,SubDir为文件名,成功写入日志后,会生成命名为’SubDir’+写入日期+’.log’的TXT文件,文件内容为写入时间->Value。用户使用其应当申请好服务器权限。 20250512升级:优化多个线程同时写入时存在丢失情况: 1、增加重试次数,重试20次间隔0.5秒。 2、增加返回内容。 注意:在极端情况下(超多多线程下同时写入)可能还会存在写入失败情况,此时可通过返回结果继续处理
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# 运行时 / 通用
|
||||
|
||||
### `call(func_name, p1, pn)`
|
||||
## `call(func_name, p1, pn)`
|
||||
|
||||
根据名称或者函数指针调用指定的函数,后面带的参数将自动送入该函数。
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
返回:any
|
||||
|
||||
### `checkGlobalCacheExpired(value)`
|
||||
## `checkGlobalCacheExpired(value)`
|
||||
|
||||
判断全局缓存引用是否已经过期。
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `dbglocalcancel(id, return_value)`
|
||||
## `dbglocalcancel(id, return_value)`
|
||||
|
||||
注销任务。该功能可以用来终止运行的WEB任务。 其任务ID为dbglocalrunning中返回信息中的id字段以十六进制模式转换为64位整数。
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `divMod(dividend, divisor, remainder)`
|
||||
## `divMod(dividend, divisor, remainder)`
|
||||
|
||||
计算整数除法的整数商和余数。也就是用参数Dividend除以参数Divisor,得到的整数商存到参数Result中,把余数存到参数Remainder中
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
返回:float
|
||||
|
||||
### `eastrq(b, c, q)`
|
||||
## `eastrq(b, c, q)`
|
||||
|
||||
Eastrq 相关函数。
|
||||
|
||||
@@ -57,7 +57,7 @@ Eastrq 相关函数。
|
||||
|
||||
返回:int
|
||||
|
||||
### `ensureRange(amin, amax)`
|
||||
## `ensureRange(amin, amax)`
|
||||
|
||||
这个函数可以保证返回某个区间之内的数,参数Amin和参数Amax是这个区间的上限和下限。 如果参数Avalue大于等于参数Amin并且小于等于参数Amax,则返回Avalue 如果参数Avalue大于参数Amax,则返回Amax的值 如果参数Avalue小于参数Amin,则返回Amin的值
|
||||
|
||||
@@ -68,7 +68,7 @@ Eastrq 相关函数。
|
||||
|
||||
返回:float
|
||||
|
||||
### `exportJsonStringMbcs(data, n, return_value)`
|
||||
## `exportJsonStringMbcs(data, n, return_value)`
|
||||
|
||||
将TSL结构数据转换为json串。和ExportJSONString不同的是,该函数不会对中文进行转码处理,保留中文原码。
|
||||
|
||||
@@ -80,18 +80,18 @@ Eastrq 相关函数。
|
||||
|
||||
返回:string
|
||||
|
||||
### `frameconcat(arrdic, _type)`
|
||||
## `frameconcat(arrdic, _type)`
|
||||
|
||||
数据表-拼接
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| -------- | --------- | --------------------------------------------------------------- |
|
||||
| `arrdic` | array | Array of number,数组的数组,需要拼接的数组集合 |
|
||||
| `_type` | Usrdefine | Usrdefine,数组拼接方式,默认为0行并=0;列并=1;非完全矩阵列并=2 |
|
||||
| `_type` | Usrdefine | Usrdefine,数组拼接方式,默认为0行并=0;列并=1;非完全矩阵列并=2 |
|
||||
|
||||
返回:array
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
a := ones(3,3);
|
||||
@@ -99,7 +99,7 @@ b := ones(2,3);
|
||||
frameconcat(array(a,b));
|
||||
```
|
||||
|
||||
### `getEigenValue(a, eigen_value)`
|
||||
## `getEigenValue(a, eigen_value)`
|
||||
|
||||
通过赋值得到EigenValue
|
||||
|
||||
@@ -110,7 +110,7 @@ frameconcat(array(a,b));
|
||||
|
||||
返回:any
|
||||
|
||||
### `hJMethodPgm(call_back)`
|
||||
## `H_J_Method_Pgm(call_back)`
|
||||
|
||||
H_J算法测试
|
||||
|
||||
@@ -120,7 +120,7 @@ H_J算法测试
|
||||
|
||||
返回:array
|
||||
|
||||
### `inRange(amin, amax)`
|
||||
## `inRange(amin, amax)`
|
||||
|
||||
判断Avalue是否在\[Amin, Amax\]范围内
|
||||
|
||||
@@ -131,7 +131,7 @@ H_J算法测试
|
||||
|
||||
返回:bool
|
||||
|
||||
### `interestRate(nperiods, payment, present_value, future_value, payment_time)`
|
||||
## `interestRate(nperiods, payment, present_value, future_value, payment_time)`
|
||||
|
||||
返回要求收益率,使得这项投资从现值PresentValue实现终值FutureValue,在共NPeriods个周期后实现。如果周期定义为一年,那么结果就是要求的年收益率。
|
||||
|
||||
@@ -145,7 +145,7 @@ H_J算法测试
|
||||
|
||||
返回:float
|
||||
|
||||
### `invoke(obj, member_name, member_value, p1, pn)`
|
||||
## `invoke(obj, member_name, member_value, p1, pn)`
|
||||
|
||||
调用类的成员方法或对类的成员变量进行赋值操作。支持对重载方法的调用。
|
||||
|
||||
@@ -161,19 +161,19 @@ H_J算法测试
|
||||
|
||||
## 未细分函数
|
||||
|
||||
### `logined()`
|
||||
## `logined()`
|
||||
|
||||
判定是否已经登录成功。只读属性。
|
||||
|
||||
返回:any
|
||||
|
||||
### `milliSecondSpan()`
|
||||
## `milliSecondSpan()`
|
||||
|
||||
范围生成函数相关函数。
|
||||
|
||||
返回:float
|
||||
|
||||
### `mswap(value, dim1, dim2)`
|
||||
## `mswap(value, dim1, dim2)`
|
||||
|
||||
交换多维 FMArray 的两个维度。
|
||||
|
||||
@@ -187,7 +187,7 @@ H_J算法测试
|
||||
|
||||
## 数学函数 / 矩阵运算及分解
|
||||
|
||||
### `nils(length)`
|
||||
## `nils(length)`
|
||||
|
||||
生成元素为 `nil` 的一维结果。
|
||||
|
||||
@@ -197,13 +197,13 @@ H_J算法测试
|
||||
|
||||
返回:array
|
||||
|
||||
### `noTechCacheDo()`
|
||||
## `noTechCacheDo()`
|
||||
|
||||
和TechCacheDo相反的是,在NoTechCacheDo语句段中调用的所有相关计算,将均取消缓存。
|
||||
|
||||
返回:any
|
||||
|
||||
### `ones(length)`
|
||||
## `ones(length)`
|
||||
|
||||
生成元素为 `1` 的一维结果。
|
||||
|
||||
@@ -213,7 +213,7 @@ H_J算法测试
|
||||
|
||||
返回:array
|
||||
|
||||
### `outPutGrowRatio(v1, v2)`
|
||||
## `outPutGrowRatio(v1, v2)`
|
||||
|
||||
增长率(%)
|
||||
|
||||
@@ -224,7 +224,7 @@ H_J算法测试
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
//返回13到14的增长率(%)
|
||||
@@ -232,7 +232,7 @@ outPutGrowRatio(14,13);
|
||||
//结果:7.69
|
||||
```
|
||||
|
||||
### `outPutGrowRatio2(v1, v2)`
|
||||
## `outPutGrowRatio2(v1, v2)`
|
||||
|
||||
增长率(%)
|
||||
|
||||
@@ -243,7 +243,7 @@ outPutGrowRatio(14,13);
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
//返回13到14的增长率(%)
|
||||
@@ -251,7 +251,7 @@ outPutGrowRatio2(14,13);
|
||||
//结果:7.69
|
||||
```
|
||||
|
||||
### `outPutGrowValue2(v1, v2)`
|
||||
## `outPutGrowValue2(v1, v2)`
|
||||
|
||||
增长
|
||||
|
||||
@@ -262,7 +262,7 @@ outPutGrowRatio2(14,13);
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
//返回13与14差值
|
||||
@@ -270,7 +270,7 @@ outPutGrowValue2(13,14);
|
||||
//结果:-1
|
||||
```
|
||||
|
||||
### `raiseError(func_name, err_str)`
|
||||
## `raiseError(func_name, err_str)`
|
||||
|
||||
显示调试出错信息
|
||||
|
||||
@@ -281,7 +281,7 @@ outPutGrowValue2(13,14);
|
||||
|
||||
返回:Error
|
||||
|
||||
### `reIndexCopy(data, index_info1, index_info1_2, index_info_n)`
|
||||
## `reIndexCopy(data, index_info1, index_info1_2, index_info_n)`
|
||||
|
||||
ReIndexCopy和Reindex的差异:ReIndex修改原有的结果集,而ReIndexCopy不修改原结果集返回一个新结果集。
|
||||
|
||||
@@ -296,7 +296,7 @@ ReIndexCopy和Reindex的差异:ReIndex修改原有的结果集,而ReIndexCop
|
||||
|
||||
## 未细分函数
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
实现:将指定列下标转为数组的行下标--可用于快速建立哈希表
|
||||
@@ -306,7 +306,7 @@ t:=nday(10,'time',datetostr(sp_time()),'close',close());
|
||||
return reindexcopy(t,t[:,"time"]);
|
||||
```
|
||||
|
||||
### `reportSeriesSplit(table_name)`
|
||||
## `reportSeriesSplit(table_name)`
|
||||
|
||||
报告期数据处理。注意,该函数主要用于客户端结果处理,不提供给用户程序编辑。
|
||||
|
||||
@@ -316,7 +316,7 @@ return reindexcopy(t,t[:,"time"]);
|
||||
|
||||
返回:any
|
||||
|
||||
### `rotatedComponentMatrix(cm, eigen_value, eigen_vector)`
|
||||
## `rotatedComponentMatrix(cm, eigen_value, eigen_vector)`
|
||||
|
||||
该函数已废弃
|
||||
|
||||
@@ -328,7 +328,7 @@ return reindexcopy(t,t[:,"time"]);
|
||||
|
||||
返回:array
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
//设置样本矩阵
|
||||
@@ -346,7 +346,7 @@ rotatedComponentMatrix(cm);
|
||||
//结果:
|
||||
```
|
||||
|
||||
### `sendRunningData(data, nwdow)`
|
||||
## `sendRunningData(data, nwdow)`
|
||||
|
||||
直接函数相关函数。
|
||||
|
||||
@@ -359,7 +359,7 @@ rotatedComponentMatrix(cm);
|
||||
|
||||
## 错误处理
|
||||
|
||||
### `setUid(uid)`
|
||||
## `setUid(uid)`
|
||||
|
||||
设置当前的用户为指定的用户,需要有特殊权限,如果成功则返回真。
|
||||
|
||||
@@ -369,13 +369,13 @@ rotatedComponentMatrix(cm);
|
||||
|
||||
返回:bool
|
||||
|
||||
### `techCacheDo()`
|
||||
## `techCacheDo()`
|
||||
|
||||
TechCacheDo打开技术类缓存 相关函数。
|
||||
|
||||
返回:any
|
||||
|
||||
### `user(name)`
|
||||
## `user(name)`
|
||||
|
||||
执行指定用户的函数,只有当你已经得到该用户的授权才可以 例如:如果已经被用户user1授权,且user1拥有函数sample,那么我们可以用user('user1').sample来执行user1的sample函数。
|
||||
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
# 运行时
|
||||
|
||||
函数数:386
|
||||
|
||||
| 叶子 | 文件 | 函数数 |
|
||||
| --- | --- | ---: |
|
||||
| 运行时 / 数组 | [运行时 / 数组](array.md) | 67 |
|
||||
| 运行时 / 数据库事务 | [运行时 / 数据库事务](db_transaction.md) | 3 |
|
||||
| 运行时 / 编码与压缩 | [运行时 / 编码与压缩](encoding_compress.md) | 15 |
|
||||
| 运行时 / 文件与目录 | [运行时 / 文件与目录](file_dir.md) | 26 |
|
||||
| 运行时 / 通用 | [运行时 / 通用](general.md) | 30 |
|
||||
| 运行时 / INI配置 | [运行时 / INI配置](ini_config.md) | 24 |
|
||||
| 运行时 / 数学与统计 | [运行时 / 数学与统计](math_stats.md) | 127 |
|
||||
| 运行时 / 其他 | [运行时 / 其他](misc.md) | 2 |
|
||||
| 运行时 / 网络与HTTP | [运行时 / 网络与HTTP](network_http.md) | 17 |
|
||||
| 运行时 / 字符串 | [运行时 / 字符串](string.md) | 42 |
|
||||
| 运行时 / 系统与进程 | [运行时 / 系统与进程](system_process.md) | 27 |
|
||||
| 运行时 / 类型转换 | [运行时 / 类型转换](type_convert.md) | 6 |
|
||||
@@ -1,6 +1,6 @@
|
||||
# 运行时 / INI配置
|
||||
|
||||
### `iniDeleteKey(alias, file_name, section, ident)`
|
||||
## `iniDeleteKey(alias, file_name, section, ident)`
|
||||
|
||||
删除INI中的标识符。
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
返回:any
|
||||
|
||||
### `iniEraseSection(alias, file_name, section)`
|
||||
## `iniEraseSection(alias, file_name, section)`
|
||||
|
||||
删除INI中的段。
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
返回:any
|
||||
|
||||
### `iniReadBinaryStream(alias, file_name, section, ident, _type)`
|
||||
## `iniReadBinaryStream(alias, file_name, section, ident, _type)`
|
||||
|
||||
从INI中读stream类型内容,读取后的内容支持数组,字符串,二进制流以及stream类型进行输出
|
||||
|
||||
@@ -35,11 +35,11 @@
|
||||
| `file_name` | string | 字符串类型。INI文件名称。 |
|
||||
| `section` | string | 字符串类型。INI文件中的节点名称。 |
|
||||
| `ident` | string | 字符串类型。INI文件中的键名称。 |
|
||||
| `_type` | string | TStream |
|
||||
| `_type` | string | TStream |
|
||||
|
||||
返回:string
|
||||
|
||||
### `iniReadBool(alias, file_name, section, ident, _default)`
|
||||
## `iniReadBool(alias, file_name, section, ident, _default)`
|
||||
|
||||
从INI中读Bool类型。
|
||||
|
||||
@@ -49,11 +49,11 @@
|
||||
| `file_name` | bool | 字符串类型。INI文件名称 |
|
||||
| `section` | string | 字符串类型。INI文件的节名称 |
|
||||
| `ident` | string | 字符串类型。INI文件的键名称 |
|
||||
| `_default` | string | object |
|
||||
| `_default` | string | object |
|
||||
|
||||
返回:bool
|
||||
|
||||
### `iniReadDate(alias, file_name, section, ident, _default)`
|
||||
## `iniReadDate(alias, file_name, section, ident, _default)`
|
||||
|
||||
从INI中读日期类型。 老版客户端中,支持读yyyy/mm/dd的日期格式,新版本客户端支持yyyy-mm-dd的日期格式,与其它函数日期格式表现一致。
|
||||
|
||||
@@ -63,11 +63,11 @@
|
||||
| `file_name` | datetime | 字符串类型。INI文件名称 |
|
||||
| `section` | any | 字符串类型。INI文件的节名称 |
|
||||
| `ident` | any | 字符串类型。INI文件的键名称 |
|
||||
| `_default` | any | 日期类型。获取失败时返回的替代值,默认的INI文件的键值 |
|
||||
| `_default` | any | 日期类型。获取失败时返回的替代值,默认的INI文件的键值 |
|
||||
|
||||
返回:datetime
|
||||
|
||||
### `iniReadDateTime(alias, file_name, section, ident, _default)`
|
||||
## `iniReadDateTime(alias, file_name, section, ident, _default)`
|
||||
|
||||
从INI中读日期时间类型。 老版客户端中,支持读yyyy/mm/dd hh:nn:ss的日期格式,新版本客户端支持yyyy-mm-dd hh:nn:ss的日期格式,与其它函数日期格式表现一致。
|
||||
|
||||
@@ -77,11 +77,11 @@
|
||||
| `file_name` | datetime | 字符串类型。INI文件名称 |
|
||||
| `section` | string | 字符串类型。INI文件的节名称 |
|
||||
| `ident` | string | 字符串类型。INI文件的键名称 |
|
||||
| `_default` | string | 日期时间类型。默认的INI文件的键值 |
|
||||
| `_default` | string | 日期时间类型。默认的INI文件的键值 |
|
||||
|
||||
返回:datetime
|
||||
|
||||
### `iniReadFloat(alias, file_name, section, ident, _default)`
|
||||
## `iniReadFloat(alias, file_name, section, ident, _default)`
|
||||
|
||||
从INI中读浮点类型。
|
||||
|
||||
@@ -91,11 +91,11 @@
|
||||
| `file_name` | float | 字符串类型。INI文件名称 |
|
||||
| `section` | string | 字符串类型。INI文件的节名称 |
|
||||
| `ident` | string | 字符串类型。INI文件的键名称 |
|
||||
| `_default` | string | 浮点类型。默认的INI文件的键值 |
|
||||
| `_default` | string | 浮点类型。默认的INI文件的键值 |
|
||||
|
||||
返回:float
|
||||
|
||||
### `iniReadInteger(alias, file_name, section, ident, _default)`
|
||||
## `iniReadInteger(alias, file_name, section, ident, _default)`
|
||||
|
||||
从INI中读整数类型。
|
||||
|
||||
@@ -105,11 +105,11 @@
|
||||
| `file_name` | int | 字符串类型。INI文件名称 |
|
||||
| `section` | string | 字符串类型。INI文件的节名称 |
|
||||
| `ident` | string | 字符串类型。INI文件的键名称 |
|
||||
| `_default` | string | 整数类型。默认的INI文件的键值 |
|
||||
| `_default` | string | 整数类型。默认的INI文件的键值 |
|
||||
|
||||
返回:int
|
||||
|
||||
### `iniReadSection(alias, file_name, section)`
|
||||
## `iniReadSection(alias, file_name, section)`
|
||||
|
||||
从INI中读出一个节点中所有键名称。
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `iniReadSections(alias, file_name)`
|
||||
## `iniReadSections(alias, file_name)`
|
||||
|
||||
从INI中读出所有的节名称。
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `iniReadSectionsw(alias, file_name)`
|
||||
## `iniReadSectionsw(alias, file_name)`
|
||||
|
||||
从INI中读出所有的节名称,其中,名称字符串为宽字节字符串,IniReadSections返回的名称字符串为多字节字符串。
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `iniReadSectionValues(alias, file_name, section)`
|
||||
## `iniReadSectionValues(alias, file_name, section)`
|
||||
|
||||
从INI中读指定节所有的键的值。
|
||||
|
||||
@@ -155,7 +155,7 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `iniReadString(alias, file_name, section, ident, _default)`
|
||||
## `iniReadString(alias, file_name, section, ident, _default)`
|
||||
|
||||
从INI中读字符类型。
|
||||
|
||||
@@ -165,11 +165,11 @@
|
||||
| `file_name` | string | 字符串类型。INI文件的名称 |
|
||||
| `section` | string | 字符串类型。InI文件的节名称 |
|
||||
| `ident` | string | 字符串类型。INI文件的键名称 |
|
||||
| `_default` | string | 字符串类型。INI文件默认的键值 |
|
||||
| `_default` | string | 字符串类型。INI文件默认的键值 |
|
||||
|
||||
返回:string
|
||||
|
||||
### `iniReadTime(alias, file_name, section, ident, _default)`
|
||||
## `iniReadTime(alias, file_name, section, ident, _default)`
|
||||
|
||||
从INI中读时间类型。
|
||||
|
||||
@@ -179,11 +179,11 @@
|
||||
| `file_name` | TTime | 字符串类型。INI文件名称 |
|
||||
| `section` | string | 字符串类型。INI文件的节名称 |
|
||||
| `ident` | string | 字符串类型。INI文件的键名称 |
|
||||
| `_default` | string | 时间类型。INI文件默认的键值 |
|
||||
| `_default` | string | 时间类型。INI文件默认的键值 |
|
||||
|
||||
返回:TTime
|
||||
|
||||
### `iniSectionExists(alias, file_name, section)`
|
||||
## `iniSectionExists(alias, file_name, section)`
|
||||
|
||||
判断INI中的节名称是否存在。
|
||||
|
||||
@@ -195,7 +195,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `iniValueExists(alias, file_name, section, ident)`
|
||||
## `iniValueExists(alias, file_name, section, ident)`
|
||||
|
||||
判断INI中的指定的节名称下的键名称是否有值。
|
||||
|
||||
@@ -208,7 +208,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `iniWriteBinaryStream(alias, file_name, section, ident, value)`
|
||||
## `iniWriteBinaryStream(alias, file_name, section, ident, value)`
|
||||
|
||||
将数据转成数据流写入INI文件中。支持写入数组,字符串,binary,stream类型等。如果不存在FileName,或者不存在Section,或者不存在Ident,则其会根据输入的FileName,Section,Ident创建对应的INI文件,INI文件的节名称,INI文件的键名称,并将字节流Value写入到INI文件指定的键
|
||||
|
||||
@@ -222,7 +222,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `iniWriteBool(alias, file_name, section, ident, value)`
|
||||
## `iniWriteBool(alias, file_name, section, ident, value)`
|
||||
|
||||
将BOOL值写入INI。如果不存在FileName,或者不存在Section,或者不存在Ident,则其会根据输入的FileName,Section,Ident创建对应的INI文件,INI文件的节名称,INI文件的键名称,并将Bool值Value写入到INI文件指定的键
|
||||
|
||||
@@ -236,7 +236,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `iniWriteDate(alias, file_name, section, ident, value)`
|
||||
## `iniWriteDate(alias, file_name, section, ident, value)`
|
||||
|
||||
将日期值写入INI。如果不存在FileName,或者不存在Section,或者不存在Ident,则其会根据输入的FileName,Section,Ident创建对应的INI文件,INI文件的节名称,INI文件的键名称,并将日期值Value写入到INI文件指定的键
|
||||
|
||||
@@ -250,7 +250,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `iniWriteDateTime(alias, file_name, section, ident, value)`
|
||||
## `iniWriteDateTime(alias, file_name, section, ident, value)`
|
||||
|
||||
将日期时间值写入INI。如果不存在FileName,或者不存在Section,或者不存在Ident,则其会根据输入的FileName,Section,Ident创建对应的INI文件,INI文件的节名称,INI文件的键名称,并将日期时间值Value写入到INI文件指定的键
|
||||
|
||||
@@ -264,7 +264,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `iniWriteFloat(alias, file_name, section, ident, value)`
|
||||
## `iniWriteFloat(alias, file_name, section, ident, value)`
|
||||
|
||||
将浮点值写入INI。如果不存在FileName,或者不存在Section,或者不存在Ident,则其会根据输入的FileName,Section,Ident创建对应的INI文件,INI文件的节名称,INI文件的键名称,并将浮点值Value写入到INI文件指定的键
|
||||
|
||||
@@ -278,7 +278,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `iniWriteInteger(alias, file_name, section, ident, value)`
|
||||
## `iniWriteInteger(alias, file_name, section, ident, value)`
|
||||
|
||||
将整数值写入INI。如果不存在FileName,或者不存在Section,或者不存在Ident,则其会根据输入的FileName,Section,Ident创建对应的INI文件,INI文件的节名称,INI文件的键名称,并将整数值Value写入到INI文件指定的键
|
||||
|
||||
@@ -292,7 +292,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `iniWriteString(alias, file_name, section, ident, value)`
|
||||
## `iniWriteString(alias, file_name, section, ident, value)`
|
||||
|
||||
将字符串值写入INI。如果不存在FileName,或者不存在Section,或者不存在Ident,则其会根据输入的FileName,Section,Ident创建对应的INI文件,INI文件的节名称,INI文件的键名称,并将字符串Value写入到INI文件指定的键
|
||||
|
||||
@@ -306,7 +306,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `iniWriteTime(alias, file_name, section, ident, value)`
|
||||
## `iniWriteTime(alias, file_name, section, ident, value)`
|
||||
|
||||
将时间值写入INI。如果不存在FileName,或者不存在Section,或者不存在Ident,则其会根据输入的FileName,Section,Ident创建对应的INI文件,INI文件的节名称,INI文件的键名称,并将时间值Value写入到INI文件指定的键
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
# 运行时 / 其他
|
||||
|
||||
### `isValidDateDay(a_year)`
|
||||
## `isValidDateDay(a_year)`
|
||||
|
||||
判断参数指定的年以及此年的第ADayOfYear天是否是有效日期。返回值类型是布尔型真假值 所谓有效,意味着: 年Ayear介于1和9999之间 ADayOfYear介于1和指定Ayear年的最大天数
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `recodeSecond(a_value)`
|
||||
## `recodeSecond(a_value)`
|
||||
|
||||
将参数ASecond指定的秒数(0至59)替换掉参数AValue中的相应的秒数信息,得到的日期时间类型返回
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# 运行时 / 网络与HTTP
|
||||
|
||||
### `appendHttpHeader(session, header)`
|
||||
## `appendHttpHeader(session, header)`
|
||||
|
||||
向指定会话中添加请求头信息
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
返回:any
|
||||
|
||||
### `clearHttpHeader(session)`
|
||||
## `clearHttpHeader(session)`
|
||||
|
||||
清除会话中的请求头信息
|
||||
|
||||
@@ -21,17 +21,7 @@
|
||||
|
||||
返回:any
|
||||
|
||||
### `createhttpsession(return_value)`
|
||||
|
||||
创建一个http Session对象,并返回会话ID,即Session id。仅新一代TSL语言支持该函数。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| -------------- | ---- | -------------- |
|
||||
| `return_value` | int | 返回session ID |
|
||||
|
||||
返回:intptr
|
||||
|
||||
### `destroyHttpSession(session, return_value)`
|
||||
## `destroyHttpSession(session, return_value)`
|
||||
|
||||
销毁一个Http Session对象,并返回销毁结果,销毁成功返回True。 仅新一代TSL语言支持该函数。
|
||||
|
||||
@@ -42,7 +32,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `getHttp(session, url, time_out, value, code)`
|
||||
## `getHttp(session, url, time_out, value, code)`
|
||||
|
||||
网络访问以及相关函数相关函数。
|
||||
|
||||
@@ -56,7 +46,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `getHttpContent(session, frompos, return_value)`
|
||||
## `getHttpContent(session, frompos, return_value)`
|
||||
|
||||
获得HTTP返回的具体内容,可以从frompos开始取,缺省是取全部。 这个可以方便在progress回调函数中实现文件的临时存贮,亦可以动态打印内容。 仅新一代TSL语言支持该函数。
|
||||
|
||||
@@ -68,7 +58,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `getHttpCookies(session)`
|
||||
## `getHttpCookies(session)`
|
||||
|
||||
获取指定会话、来自服务器设置的Cookies信息
|
||||
|
||||
@@ -78,7 +68,7 @@
|
||||
|
||||
返回:any
|
||||
|
||||
### `getHttpResponseHeader(session, return_value)`
|
||||
## `getHttpResponseHeader(session, return_value)`
|
||||
|
||||
获得HTTP返回的头信息,可以在header回调中看全部合成的header,也可以从已经完成会话的时候获得会话的头部信息。
|
||||
|
||||
@@ -89,7 +79,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `internetRequest(session, url, refer, header, post_data, user_name, pass_word, result_type, response_code, time_out)`
|
||||
## `internetRequest(session, url, refer, header, post_data, user_name, pass_word, result_type, response_code, time_out)`
|
||||
|
||||
发送Internet访问请求,主要用于Web建立网站。
|
||||
|
||||
@@ -108,7 +98,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `postHttp(session, url, content, time_out, value, code)`
|
||||
## `postHttp(session, url, content, time_out, value, code)`
|
||||
|
||||
以POST方式从指定的HTTP URL获得内容。
|
||||
|
||||
@@ -123,7 +113,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `setHttpAuth(session, user_name, pass_word, _type)`
|
||||
## `setHttpAuth(session, user_name, pass_word, _type)`
|
||||
|
||||
设置指定会话中认证信息
|
||||
|
||||
@@ -132,11 +122,11 @@
|
||||
| `session` | any | Session ID |
|
||||
| `user_name` | string | 用户名 |
|
||||
| `pass_word` | string | 密码 |
|
||||
| `_type` | any | 可选参数,认证信息类型;可多次调用以设置不同类型的认证信息: |
|
||||
| `_type` | any | 可选参数,认证信息类型;可多次调用以设置不同类型的认证信息: |
|
||||
|
||||
返回:any
|
||||
|
||||
### `setHttpCallBack(session, callback, t, return_value)`
|
||||
## `setHttpCallBack(session, callback, t, return_value)`
|
||||
|
||||
设置http回调,缺省回调模式是progress模式,可以通过t设定为"header"设置头部回调函数。仅新一代TSL语言支持该函数。
|
||||
|
||||
@@ -149,7 +139,7 @@
|
||||
|
||||
返回:回调函数的返回值为0表示继续,非0则结束请求
|
||||
|
||||
### `setHttpCookies(session, cookies)`
|
||||
## `setHttpCookies(session, cookies)`
|
||||
|
||||
设置指定会话中Cookies信息
|
||||
|
||||
@@ -160,7 +150,7 @@
|
||||
|
||||
返回:any
|
||||
|
||||
### `setHttpMode(session, mode, return_value)`
|
||||
## `setHttpMode(session, mode, return_value)`
|
||||
|
||||
设置chunked模式(分段模式),主要用于大模型类的一个请求分段输出模式,支持类似于大模型一样按单词吐词输出。仅新一代TSL语言支持该函数。
|
||||
|
||||
@@ -172,7 +162,7 @@
|
||||
|
||||
返回:any
|
||||
|
||||
### `setHttpProxy(session, proxy_addr, proxy_type)`
|
||||
## `setHttpProxy(session, proxy_addr, proxy_type)`
|
||||
|
||||
设置指定会话中代理信息
|
||||
|
||||
@@ -184,7 +174,7 @@
|
||||
|
||||
返回:any
|
||||
|
||||
### `setHttpVerifySsl(session, verify)`
|
||||
## `setHttpVerifySsl(session, verify)`
|
||||
|
||||
设置指定会话是否校验服务器证书
|
||||
|
||||
@@ -197,17 +187,17 @@
|
||||
|
||||
## URL 内容函数
|
||||
|
||||
### `urlToText(a_src)`
|
||||
## `urlToText(a_src)`
|
||||
|
||||
将URL标准格式的串转化为文本字符串
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | ------ | ---------- |
|
||||
| `a_src` | string | 字符串类型 |
|
||||
|
||||
返回:string
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
a_src := "%23abcd%20%2010";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# 运行时 / 字符串
|
||||
|
||||
### `adjustLineBreaks(s, style)`
|
||||
## `adjustLineBreaks(s, style)`
|
||||
|
||||
字符串相关函数。
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `ansiDequotedStr(s, aquote)`
|
||||
## `ansiDequotedStr(s, aquote)`
|
||||
|
||||
字符串相关函数。
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `ansiIndexStr(a_text, a_values)`
|
||||
## `ansiIndexStr(a_text, a_values)`
|
||||
|
||||
判定指定的字符串Atext可以匹配到的第一个由参数Avalues指定的字符串数组中元素索引号,就是数组的第几个元素(从0开始计算)。返回整数,如果没有找到匹配的字符串,就返回-1。与AnsiEndsText函数不同,字符串的匹配是大小写敏感的 注意:这种判定是基于大小写敏感
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `ansiIndexText(a_text, a_values)`
|
||||
## `ansiIndexText(a_text, a_values)`
|
||||
|
||||
判定指定的字符串Atext可以匹配到的第一个由参数Avalues指定的字符串数组中元素索引号,就是数组的第几个元素(从0开始计算)。返回整数,如果没有找到匹配的字符串,就返回-1 注意:这种判定是基于大小写不敏感
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `ansiMatchStr(a_text, avalues)`
|
||||
## `ansiMatchStr(a_text, avalues)`
|
||||
|
||||
判定指定的字符串Atext是否可以匹配由参数Avalues指定的字符串数组中的某个字符串。返回布尔型真假值,如果Atext匹配到了Avalues数组中的某个字符串,就返回真,否则返回假。与AnsiMatchText函数不同,字符串的匹配是大小写敏感的 注意:这种判定是基于大小写敏感
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `ansiMatchText(a_text, avalues)`
|
||||
## `ansiMatchText(a_text, avalues)`
|
||||
|
||||
判定指定的字符串Atext是否可以完全匹配由参数Avalues指定的字符串数组中的某个字符串。返回布尔型真假值,如果Atext匹配到了Avalues数组中的某个字符串,就返回真,否则返回假。 注意:这种判定是基于大小写不敏感。
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `ansiQuotedStr(s, quote)`
|
||||
## `ansiQuotedStr(s, quote)`
|
||||
|
||||
字符串相关函数。
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `ansiStr2Array(value, aps)`
|
||||
## `ansiStr2Array(value, aps)`
|
||||
|
||||
常用字符串函数相关函数。
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `boolToStr(s)`
|
||||
## `boolToStr(s)`
|
||||
|
||||
将布尔型转换成字符串类型并返回。参数UseBoolStrs一般为假,如果B为真,函数返回'-1',如果B为假,返回'0'。若想返回’True’与’False’的结果可用BoolToStr2实现。
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `containsText(a_text, a_sub_text)`
|
||||
## `containsText(a_text, a_sub_text)`
|
||||
|
||||
字符串相关函数。
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `dateTimeToString(format, date_time)`
|
||||
## `dateTimeToString(format, date_time)`
|
||||
|
||||
根据参数Format给定的格式串将参数DateTime转换成字符串类型存到参数Result中,其中格式串的使用参照FormaTDateTime函数
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `eval(exp)`
|
||||
## `eval(exp)`
|
||||
|
||||
表达式求值。返回,表达式的值。字符串表达式中支持return。TSL.EXE支持 tsl -eval "echo 100"的模式直接调用TSL语句。 表达式允许在跨函数中传导引用参数和变量
|
||||
|
||||
@@ -130,19 +130,19 @@
|
||||
|
||||
返回:any
|
||||
|
||||
### `fHeader()`
|
||||
## `fHeader()`
|
||||
|
||||
字符串,TS-OPS服务注册时需要指定的头部信息,比如TS-OPS-CALL等。 类型:读写
|
||||
|
||||
返回:string
|
||||
|
||||
### `fUrl()`
|
||||
## `fUrl()`
|
||||
|
||||
字符串,TS-OPS服务注册地址 类型:读写
|
||||
|
||||
返回:string
|
||||
|
||||
### `importjsonstring(json)`
|
||||
## `importjsonstring(json)`
|
||||
|
||||
将json串转化为天软数据类型。 对大无符号数据会自动转换为长整型(INT64) 注意:输入的字符串应是ASCII编码的。因为JSON标准使用UTF8编码,所以请先使用天软Utf8ToAnsi将UTF8编码的字符串缓缓为ASCII编码。可参考下面的例程。
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
|
||||
返回:any
|
||||
|
||||
### `leftStr(text, num_chars)`
|
||||
## `leftStr(text, num_chars)`
|
||||
|
||||
返回字符串从开始向左数Num_Chars个字符组成的字符串,支持多字节语言,一个汉字当成一个字符。
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `ord(value)`
|
||||
## `ord(value)`
|
||||
|
||||
如果是STRING类型返回value\[1\]的ASCII序号,就是value字符串的第一个字符的ASCII序号,如果为WIDESTRING,则为UNICODE码。
|
||||
|
||||
@@ -173,7 +173,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `reversebString(s)`
|
||||
## `reversebString(s)`
|
||||
|
||||
字符串相关函数。
|
||||
|
||||
@@ -185,7 +185,7 @@
|
||||
|
||||
## 发音相关函数
|
||||
|
||||
### `rightStr(text, num_chars)`
|
||||
## `rightStr(text, num_chars)`
|
||||
|
||||
前N个字符;基于所指定的字符数返回文本字符串中的最后一个或后几个字符;
|
||||
|
||||
@@ -196,7 +196,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `setChar(s, index, ch)`
|
||||
## `setChar(s, index, ch)`
|
||||
|
||||
设置字符串/二进制流中相应位置的字符。Char为0-255之间的整数类型
|
||||
|
||||
@@ -208,7 +208,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `setLikeFlag(flag, return_value)`
|
||||
## `setLikeFlag(flag, return_value)`
|
||||
|
||||
设置Like操作符号的正则表达式默认控制状态。默认值为1。
|
||||
|
||||
@@ -219,7 +219,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `soundexWord(a_text)`
|
||||
## `soundexWord(a_text)`
|
||||
|
||||
发音相关函数相关函数。
|
||||
|
||||
@@ -229,7 +229,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `str2Array(value, aps)`
|
||||
## `str2Array(value, aps)`
|
||||
|
||||
字符串相关函数。
|
||||
|
||||
@@ -240,7 +240,7 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `string(value)`
|
||||
## `string(value)`
|
||||
|
||||
将数据转换为字符串。
|
||||
|
||||
@@ -250,7 +250,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `strSubscriptTableToNormal(t, fn)`
|
||||
## `strSubscriptTableToNormal(t, fn)`
|
||||
|
||||
字符串下标数组-->索引下标数组。
|
||||
|
||||
@@ -261,7 +261,7 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `strToBool(s)`
|
||||
## `strToBool(s)`
|
||||
|
||||
如果S为'0',返回假,如果是非0的数字串,则返回真
|
||||
|
||||
@@ -271,7 +271,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `strToCurr(s)`
|
||||
## `strToCurr(s)`
|
||||
|
||||
将数字字符串S转换成实数返回,字符串中不允许有千分号,最大有效小数位为4位,超过四位小数的处理在不同的版本处理可能存在不一致的地方。
|
||||
|
||||
@@ -281,7 +281,7 @@
|
||||
|
||||
返回:float
|
||||
|
||||
### `strToDate(s)`
|
||||
## `strToDate(s)`
|
||||
|
||||
将字符串S转换成TDateTime类型的日期
|
||||
|
||||
@@ -291,7 +291,7 @@
|
||||
|
||||
返回:datetime
|
||||
|
||||
### `strToDateTime(s)`
|
||||
## `strToDateTime(s)`
|
||||
|
||||
将字符串S转换成TDateTime类型的日期和时间
|
||||
|
||||
@@ -301,7 +301,7 @@
|
||||
|
||||
返回:datetime
|
||||
|
||||
### `strToFloat(s)`
|
||||
## `strToFloat(s)`
|
||||
|
||||
将数字字符串S转换成实数返回,字符串中不允许有千分号
|
||||
|
||||
@@ -311,7 +311,7 @@
|
||||
|
||||
返回:float
|
||||
|
||||
### `strToInt(s)`
|
||||
## `strToInt(s)`
|
||||
|
||||
将字符串转换为整数。 支持各种进制格式字符串的转换(如二进制、十六进制等)。若只转换十进制格式字符串,可使用函数FAQ:DecToInt
|
||||
|
||||
@@ -321,7 +321,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `strToInt32(s)`
|
||||
## `strToInt32(s)`
|
||||
|
||||
将字符串转换为32位整数。 支持各种进制格式字符串的转换(如二进制、十六进制等)。若只转换十进制格式字符串,可使用函数FAQ:DecToInt32
|
||||
|
||||
@@ -331,7 +331,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `strToInt64(s)`
|
||||
## `strToInt64(s)`
|
||||
|
||||
将字符串转换为64位整数。 支持各种进制格式字符串的转换(如二进制、十六进制等)。若只转换十进制格式字符串,可使用函数FAQ:DecToInt64
|
||||
|
||||
@@ -341,7 +341,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `strToTime(s)`
|
||||
## `strToTime(s)`
|
||||
|
||||
将字符串S转换成TDateTime类型的时间
|
||||
|
||||
@@ -351,7 +351,7 @@
|
||||
|
||||
返回:datetime
|
||||
|
||||
### `tryStrToTime(s)`
|
||||
## `tryStrToTime(s)`
|
||||
|
||||
将字符串S转换成TDateTime类型的时间并存到参数Value中。如果转换成功,则返回真,否则返回假
|
||||
|
||||
@@ -361,7 +361,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `unUnicodeEsc2(s)`
|
||||
## `unUnicodeEsc2(s)`
|
||||
|
||||
字符串相关函数。
|
||||
|
||||
@@ -371,7 +371,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `unUnicodeEsc2W(s)`
|
||||
## `unUnicodeEsc2W(s)`
|
||||
|
||||
字符串相关函数。
|
||||
|
||||
@@ -381,7 +381,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `writeFile(data_type, alias, file_name, pos, length, data)`
|
||||
## `writeFile(data_type, alias, file_name, pos, length, data)`
|
||||
|
||||
将数据写到本地文件。文件格式可以是字符流、整数流、实数流、字节流等。 多个线程同时写入时无需加锁等操作,仅需将位置设置为-1则可保障追加模式,如果调用失败,可检测返回值为字符串后然后重试即可。(当多线程尝试打开同一个文件写入时会返回错误)
|
||||
|
||||
@@ -398,35 +398,35 @@
|
||||
|
||||
## 字符串与格式转换函数
|
||||
|
||||
### `floatToStrEx(r, n)`
|
||||
## `floatToStrEx(r, n)`
|
||||
|
||||
浮点->字符串
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `r` | real | 实数 |
|
||||
| `n` | integer | 整型数据,保留的小数位数 |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---- | ------- | ------------------------ |
|
||||
| `r` | real | 实数 |
|
||||
| `n` | integer | 整型数据,保留的小数位数 |
|
||||
|
||||
返回:string
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
return floatToStrEx (12.6578, 2);
|
||||
// 结果:’ 12.66’
|
||||
```
|
||||
|
||||
### `textToHtml(src)`
|
||||
## `textToHtml(src)`
|
||||
|
||||
将字符串转化为HTML标准格式的串
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ----- | ------ | ---------- |
|
||||
| `src` | string | 字符串类型 |
|
||||
|
||||
返回:string
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
src := "The First LETTER won\'t be replaced by \'one\', but the Second letter will.";
|
||||
@@ -435,17 +435,17 @@ return textToHtml(src);
|
||||
The First LETTER won't be replaced by 'one', but the Second letter will.
|
||||
```
|
||||
|
||||
### `textToUrl(a_src)`
|
||||
## `textToUrl(a_src)`
|
||||
|
||||
将字符串转化为URL标准格式的串
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | ------ | ---------- |
|
||||
| `a_src` | string | 字符串类型 |
|
||||
|
||||
返回:string
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
a_src := "#abcd 10";
|
||||
@@ -453,17 +453,17 @@ return textToUrl(a_src);
|
||||
// 结果:%23abcd%20%2010
|
||||
```
|
||||
|
||||
### `htmlToText(src)`
|
||||
## `htmlToText(src)`
|
||||
|
||||
将HTML标准格式的串转化为文本字符串
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ----- | ------ | ---------- |
|
||||
| `src` | string | 字符串类型 |
|
||||
|
||||
返回:string
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
Src := "The First LETTER won't be replaced by 'one', but the Second letter will.";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# 运行时 / 系统与进程
|
||||
|
||||
### `sysdbfread(alias, file_name, value, is_col_info)`
|
||||
## `sysdbfread(alias, file_name, value, is_col_info)`
|
||||
|
||||
读取本地DBF格式数据文件的内容,或者读取本地DBF格式数据文件的结构定义。
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `sysdbfwrite(alias, file_name, value, col_info)`
|
||||
## `sysdbfwrite(alias, file_name, value, col_info)`
|
||||
|
||||
将数据导出为DBF的格式的数据文件。
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
返回:bool
|
||||
|
||||
### `sysErrorMessage(code)`
|
||||
## `sysErrorMessage(code)`
|
||||
|
||||
返回指定代码表示的系统错误信息。
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `sysexec(prog, cmdline, startupdir, wait, code, waitms, return_value)`
|
||||
## `sysexec(prog, cmdline, startupdir, wait, code, waitms, return_value)`
|
||||
|
||||
创建子进程执行操作系统命令。在指定目录下使用指定文件执行指定命令。指定目录可以为nil;指定命令可以为字符串,比如”py -V”,也可以为数组,比如array(“py”,”-V”)。 注:本定义方式功能只在新一代客户端版本中支持。 旧版本中用户请参考函数原定义说明:FAQ:SysExec 另外,关于code中返回的退出码(返回码),即为子进程终止时通过SysTerminate传递出来的退出码,当无此命令时,默认为0。
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `sysexecreadpipe(process_handle)`
|
||||
## `sysexecreadpipe(process_handle)`
|
||||
|
||||
获得指定进程所在管道的输出内容。参数缺省时,获得默认管道的输出内容。 在阻塞式运行sysexec的情况下,可以直接获得内容,在非阻塞式运行外部进程的时候,需要多次进行循环读取输出。
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `sysexecsetenvs(envs, addsysenv)`
|
||||
## `sysexecsetenvs(envs, addsysenv)`
|
||||
|
||||
重新设置子进程的环境变量,使得子进程与主进程的环境变量不一样,应用于Sysexec创建的子进程。不设置的情况下子进程的环境变量与主进程一致。
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `sysExecWritePipe(content)`
|
||||
## `sysExecWritePipe(content)`
|
||||
|
||||
向指定进程所在管道写入输入内容。参数缺省时,向默认管道写入输入内容。 管道的长度是有限的,当管道长度被占用了,需要等待空间被释放后再进行(即时读取管道信息可以被释放),即它是一个阻塞式的过程。
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `sysGetFuncdepends(fun, flag, cfuninfo, binclassinfo)`
|
||||
## `sysGetFuncdepends(fun, flag, cfuninfo, binclassinfo)`
|
||||
|
||||
获取目标函数或类的依赖关系。 可以用于查找用户函数、公用函数与本地函数的依赖,但无法查找系统函数。当查找本地函数时,函数文件后缀必须是.tsf。 服务器执行时,由于权限问题,返回结果可能并不完整。用户可以使用本地执行或者rdo2执行来获取完整的依赖信息。
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
|
||||
返回:funInfo
|
||||
|
||||
### `sysGetPidOfCom(obj)`
|
||||
## `sysGetPidOfCom(obj)`
|
||||
|
||||
获得COM对象对应的进程ID,由于com的限制,仅当进程ID<65535才有效,一旦返回值为65535表示进程ID超过65535。
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `sysGetProcessCmdLine(pid, return_value)`
|
||||
## `sysGetProcessCmdLine(pid, return_value)`
|
||||
|
||||
获取指定进程的执行命令行
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `sysGetProcessCmdLinew(pid, return_value)`
|
||||
## `sysGetProcessCmdLinew(pid, return_value)`
|
||||
|
||||
获取指定进程的cmd执行命令,返回结果为宽字节字符串
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `sysGetProcessNamePath(pid, return_value)`
|
||||
## `sysGetProcessNamePath(pid, return_value)`
|
||||
|
||||
获取指定进程路径,若无法获得路径返回进程的名称
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `sysGetProcessNamePathw(pid, return_value)`
|
||||
## `sysGetProcessNamePathw(pid, return_value)`
|
||||
|
||||
获取指定进程路径,返回结果为宽字节字符串
|
||||
|
||||
@@ -150,7 +150,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `sysGetProcessPriority(pri, pid, return_value)`
|
||||
## `sysGetProcessPriority(pri, pid, return_value)`
|
||||
|
||||
获取进程优先级
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `sysGetThreadName(tid, return_value)`
|
||||
## `sysGetThreadName(tid, return_value)`
|
||||
|
||||
获取线程名称
|
||||
|
||||
@@ -173,7 +173,7 @@
|
||||
|
||||
返回:string
|
||||
|
||||
### `sysGetThreadPriority(pri, tid, return_value)`
|
||||
## `sysGetThreadPriority(pri, tid, return_value)`
|
||||
|
||||
获取线程优先级
|
||||
|
||||
@@ -185,7 +185,7 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `sysGetThreads(pid, return_value)`
|
||||
## `sysGetThreads(pid, return_value)`
|
||||
|
||||
获取进程内的线程列表
|
||||
|
||||
@@ -196,7 +196,7 @@
|
||||
|
||||
返回:array
|
||||
|
||||
### `sysHandleOfPid(pid, rights, inherithandle, return_value)`
|
||||
## `sysHandleOfPid(pid, rights, inherithandle, return_value)`
|
||||
|
||||
Windows上获取进程id对应的句柄,Linux上获取指定文件ID的复制ID。得到的句柄可用函数FAQ:SysCloseHandle进行关闭。
|
||||
|
||||
@@ -209,7 +209,7 @@ Windows上获取进程id对应的句柄,Linux上获取指定文件ID的复制I
|
||||
|
||||
返回:IntPtr\|int
|
||||
|
||||
### `sysKill(pid, code, return_value)`
|
||||
## `sysKill(pid, code, return_value)`
|
||||
|
||||
终止进程。在WINDOWS上,和FAQ:SysTerminate不同之处是,SysTerminate参数为进程句柄,SysKill参数是进程ID。LINUX上两者一致
|
||||
|
||||
@@ -221,7 +221,7 @@ Windows上获取进程id对应的句柄,Linux上获取指定文件ID的复制I
|
||||
|
||||
返回:bool
|
||||
|
||||
### `sysPidOfHandle(handle, return_value)`
|
||||
## `sysPidOfHandle(handle, return_value)`
|
||||
|
||||
根据进程句柄获取进程ID。在Linux上,返回和进程句柄值相同的整数
|
||||
|
||||
@@ -232,7 +232,7 @@ Windows上获取进程id对应的句柄,Linux上获取指定文件ID的复制I
|
||||
|
||||
返回:int
|
||||
|
||||
### `sysPidOfTid(tid, return_value)`
|
||||
## `sysPidOfTid(tid, return_value)`
|
||||
|
||||
获取线程所属进程ID
|
||||
|
||||
@@ -243,7 +243,7 @@ Windows上获取进程id对应的句柄,Linux上获取指定文件ID的复制I
|
||||
|
||||
返回:int
|
||||
|
||||
### `sysPPid(pid, return_value)`
|
||||
## `sysPPid(pid, return_value)`
|
||||
|
||||
获得进程的父进程ID
|
||||
|
||||
@@ -254,7 +254,7 @@ Windows上获取进程id对应的句柄,Linux上获取指定文件ID的复制I
|
||||
|
||||
返回:int
|
||||
|
||||
### `sysSetProcessPriority(pri, pid, return_value)`
|
||||
## `sysSetProcessPriority(pri, pid, return_value)`
|
||||
|
||||
设置进程优先级
|
||||
|
||||
@@ -266,7 +266,7 @@ Windows上获取进程id对应的句柄,Linux上获取指定文件ID的复制I
|
||||
|
||||
返回:int
|
||||
|
||||
### `sysSetThreadName(name, tid, return_value)`
|
||||
## `sysSetThreadName(name, tid, return_value)`
|
||||
|
||||
设置线程名称
|
||||
|
||||
@@ -278,7 +278,7 @@ Windows上获取进程id对应的句柄,Linux上获取指定文件ID的复制I
|
||||
|
||||
返回:int
|
||||
|
||||
### `sysSetThreadPriority(pri, tid, return_value)`
|
||||
## `sysSetThreadPriority(pri, tid, return_value)`
|
||||
|
||||
设置线程优先级
|
||||
|
||||
@@ -290,7 +290,7 @@ Windows上获取进程id对应的句柄,Linux上获取指定文件ID的复制I
|
||||
|
||||
返回:int
|
||||
|
||||
### `syssettsllibpath(path_list)`
|
||||
## `syssettsllibpath(path_list)`
|
||||
|
||||
设置函数库查找路径(支持分号分隔的多个目录)。
|
||||
|
||||
@@ -300,7 +300,7 @@ Windows上获取进程id对应的句柄,Linux上获取指定文件ID的复制I
|
||||
|
||||
返回:string
|
||||
|
||||
### `sysWaitForSingleObject(object, wait_ms)`
|
||||
## `sysWaitForSingleObject(object, wait_ms)`
|
||||
|
||||
等待占有一个对象,例如互斥对象。支持windows和linux的进程
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# 运行时 / 类型转换
|
||||
|
||||
### `convertBufToData(buf, convert_type, index)`
|
||||
## `convertBufToData(buf, convert_type, index)`
|
||||
|
||||
将一个内存中的BUFFER转换成数据。
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
返回:any
|
||||
|
||||
### `createMatrix(rows, cols, cols_value, _values, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15)`
|
||||
## `createMatrix(rows, cols, cols_value, _values, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15)`
|
||||
|
||||
创建 Matrix 类型数据,可指定列索引与初始值。
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
| `rows` | int | 行数 |
|
||||
| `cols` | array | 列数 |
|
||||
| `cols_value` | any | 列序列(可选) |
|
||||
| `_values` | int | 初始化值序列(可选,按行列顺序) |
|
||||
| `_values` | int | 初始化值序列(可选,按行列顺序) |
|
||||
| `arg5` | any | |
|
||||
| `arg6` | any | |
|
||||
| `arg7` | any | |
|
||||
@@ -36,13 +36,13 @@
|
||||
|
||||
返回:matrix
|
||||
|
||||
### `fOnMessage()`
|
||||
## `fOnMessage()`
|
||||
|
||||
函数指针,消息处理过程,指向一个函数。可通过Findfunction("函数名")产生 类型:读写
|
||||
|
||||
返回:any
|
||||
|
||||
### `getNone(value)`
|
||||
## `getNone(value)`
|
||||
|
||||
读取 None 值携带的整数标记。
|
||||
|
||||
@@ -52,13 +52,13 @@
|
||||
|
||||
返回:int
|
||||
|
||||
### `nDay()`
|
||||
## `nDay()`
|
||||
|
||||
整数类型,NDAY默认返回的点数系统参数,读写。
|
||||
|
||||
返回:any
|
||||
|
||||
### `stm(v)`
|
||||
## `stm(v)`
|
||||
|
||||
把STM流转换为任意类型。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user