✨ feat(tsl-api-reference): update API catalog and data dictionary
This commit is contained in:
@@ -4,7 +4,9 @@
|
||||
|
||||
声明:class
|
||||
|
||||
TStringList 内置对象
|
||||
提供字符串集合存储、查找、排序和名称值管理能力的内置对象
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 排序 sort 查找 搜索 lookup 数组 列表 array list -->
|
||||
|
||||
### `create()`
|
||||
|
||||
@@ -12,6 +14,8 @@ TStringList 内置对象
|
||||
|
||||
创建 TStringList 实例
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 创建 生成 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
### `add(s)`
|
||||
@@ -20,6 +24,8 @@ TStringList 内置对象
|
||||
|
||||
添加字符串
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 添加 追加 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -51,6 +57,8 @@ return r;
|
||||
|
||||
将Strings里的字符串批量添加
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 添加 追加 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -76,6 +84,8 @@ return obj.CommaText;
|
||||
|
||||
添加字符串,与Add相同,但不返回索引号
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 添加 追加 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -90,6 +100,8 @@ return obj.CommaText;
|
||||
|
||||
将内容复制成和src里的内容一样
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 数组 列表 array list 字符串 文本 string text 对象 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -116,6 +128,8 @@ return array(obj2.Delimiter,obj2.DelimitedText);
|
||||
|
||||
清除掉所有内容
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 清除 重置 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
返回:any
|
||||
@@ -126,6 +140,8 @@ return array(obj2.Delimiter,obj2.DelimitedText);
|
||||
|
||||
删除指定索引
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 删除 移除 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -140,6 +156,8 @@ return array(obj2.Delimiter,obj2.DelimitedText);
|
||||
|
||||
比较两个内容是否相同
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 数组 列表 array list 字符串 文本 string text 对象 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -154,6 +172,8 @@ return array(obj2.Delimiter,obj2.DelimitedText);
|
||||
|
||||
将两个位置的内容互相交换
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 数组 列表 array list 字符串 文本 string text 对象 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -178,6 +198,8 @@ return obj.CommaText;
|
||||
|
||||
查找字符串。仅对已经排序好的TStringlist有效,未排序的请用IndexOf
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 排序 sort 查找 搜索 lookup 数组 列表 array list -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -204,6 +226,8 @@ else return '查找失败';
|
||||
|
||||
返回字符串所在的索引号。查找与大小写敏感设置有关
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 查找 搜索 lookup 返回 获取 数组 列表 array list -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -218,6 +242,8 @@ else return '查找失败';
|
||||
|
||||
返回Name键值所在的索引号
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 返回 获取 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -232,6 +258,8 @@ else return '查找失败';
|
||||
|
||||
插入字符串在指定索引号。仅未排序的场景适用,已排序的情况请用 Add
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 排序 sort 添加 追加 数组 列表 array list 字符串 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -245,7 +273,9 @@ else return '查找失败';
|
||||
|
||||
声明:function
|
||||
|
||||
从指定的文件中装载内容
|
||||
从指定的文件中加载内容
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 读取 获取 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
@@ -269,7 +299,9 @@ return obj.CommaText;
|
||||
|
||||
声明:function
|
||||
|
||||
从指定的流中装载内容
|
||||
从指定的流中加载内容
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 读取 获取 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
@@ -296,6 +328,8 @@ return obj.CommaText;
|
||||
|
||||
将指定位置的内容移动到新位置
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 数组 列表 array list 字符串 文本 string text 对象 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -311,6 +345,8 @@ return obj.CommaText;
|
||||
|
||||
取第Index个Name=Value串的Name串。Index从0开始
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 数组 列表 array list 字符串 文本 string text 对象 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -325,6 +361,8 @@ return obj.CommaText;
|
||||
|
||||
将内容存贮到指定的文件中
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 写入 保存 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -349,6 +387,8 @@ obj.SaveToFile('',pathName);
|
||||
|
||||
将内容保存到指定的流中
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 写入 保存 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -377,6 +417,8 @@ return ws.size; //返回20
|
||||
|
||||
设置text的内容,与设置属性Text的操作相同
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 设置 修改 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -391,6 +433,8 @@ return ws.size; //返回20
|
||||
|
||||
排序
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 排序 sort 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
返回:any
|
||||
@@ -401,6 +445,8 @@ return ws.size; //返回20
|
||||
|
||||
取或者设置指定索引的字符串。下标从0开始
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 数组 列表 array list 字符串 文本 string text 对象 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -424,6 +470,8 @@ return obj.strings(1); //读
|
||||
|
||||
取或者设置指定索引的字符串。功能同Strings,区别在于读取时StringsW返回的是宽字节字符串,而Strings返回的是多字节字符串
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 数组 列表 array list 字符串 文本 string text 对象 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -438,6 +486,8 @@ return obj.strings(1); //读
|
||||
|
||||
读取或写入第Index个串的Value值。Index下标从0开始
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 读取 获取 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -463,6 +513,8 @@ return array(s0,obj.DelimitedText);
|
||||
|
||||
设置或者取得Name=Value模式串中指定的Name的Value值
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 设置 修改 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
@@ -493,6 +545,8 @@ return r;
|
||||
|
||||
容量,如果已知需要的字符串比较多,预先设置容量会有比较好的性能
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 数组 列表 array list 字符串 文本 string text 对象 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
类型:integer
|
||||
@@ -505,6 +559,8 @@ return r;
|
||||
|
||||
大小写敏感,决定排序或者查找时是否大小写敏感。设置为真则表示大小写敏感,为假为大小写不敏感,默认为假
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 排序 sort 查找 搜索 lookup 数组 列表 array list -->
|
||||
|
||||
可见性:public
|
||||
|
||||
类型:boolean
|
||||
@@ -515,7 +571,9 @@ return r;
|
||||
|
||||
声明:property
|
||||
|
||||
逗号分割串。将每个字符串用,分割连接起来。若字符串中间有逗号,则在字符串两头加”号(注,单引号无效),若字符串中还包含”号,如字符串’ 3,a"bc’,则用'"3,a""bc"'表达
|
||||
逗号分割串。将每个字符串用,分割连接起来。若字符串中间有逗号,则在字符串两头加"号(注,单引号无效),若字符串中还包含"号,如字符串' 3,a"bc',则用'"3,a""bc"'表达
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 数组 列表 array list 字符串 文本 string text 对象 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
@@ -529,6 +587,8 @@ return r;
|
||||
|
||||
功能同CommaText,区别是在读取时CommaTextW返回为宽字节字符串,而CommaText返回的是多字节字符串
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 数组 列表 array list 字符串 文本 string text 对象 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
类型:string
|
||||
@@ -539,7 +599,9 @@ return r;
|
||||
|
||||
声明:property
|
||||
|
||||
字符串个数
|
||||
获取字符串个数
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 获取 查询 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
@@ -551,7 +613,9 @@ return r;
|
||||
|
||||
声明:property
|
||||
|
||||
用分割符连接起来的单个字符串。连接符用Delimiter属性指定,默认为逗号。而当字符串中存在连接符时,用QuoteChar加在字符串两端。当QuoteChar为”,且Delimiter为逗号时,DelimitedText的结果和CommaText一样
|
||||
用分割符连接起来的单个字符串。连接符用Delimiter属性指定,默认为逗号。而当字符串中存在连接符时,用QuoteChar加在字符串两端。当QuoteChar为",且Delimiter为逗号时,DelimitedText的结果和CommaText一样
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 数组 列表 array list 字符串 文本 string text 对象 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
@@ -565,6 +629,8 @@ return r;
|
||||
|
||||
DelmitedText所依赖的连接符,默认为逗号
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 数组 列表 array list 字符串 文本 string text 对象 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
类型:string
|
||||
@@ -577,6 +643,8 @@ DelmitedText所依赖的连接符,默认为逗号
|
||||
|
||||
重复串时的行为控制,0:忽略重复串(默认值),1:允许重复串,2:重复串出错。排序时有效
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 排序 sort 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
类型:integer
|
||||
@@ -589,6 +657,8 @@ DelmitedText所依赖的连接符,默认为逗号
|
||||
|
||||
获取Text的值
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 获取 查询 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
类型:string
|
||||
@@ -601,6 +671,8 @@ DelmitedText所依赖的连接符,默认为逗号
|
||||
|
||||
获取Text的值,并以宽字符串类型返回
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 获取 查询 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
类型:string
|
||||
@@ -613,6 +685,8 @@ DelmitedText所依赖的连接符,默认为逗号
|
||||
|
||||
Name,Value之间的间隔符,默认为=
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 数组 列表 array list 字符串 文本 string text 对象 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
类型:string
|
||||
@@ -625,6 +699,8 @@ Name,Value之间的间隔符,默认为=
|
||||
|
||||
DelmitedText所依赖的引号符。一般在串中存在分割符时使用
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 数组 列表 array list 字符串 文本 string text 对象 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
类型:string
|
||||
@@ -637,6 +713,8 @@ DelmitedText所依赖的引号符。一般在串中存在分割符时使用
|
||||
|
||||
是否已经排序,设置为真则进行排序
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 排序 sort 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
类型:boolean
|
||||
@@ -649,6 +727,8 @@ DelmitedText所依赖的引号符。一般在串中存在分割符时使用
|
||||
|
||||
以回车换行分割每个字符串连接起来的单个串。如果存在包括回车换行的串,就会有混淆,如果要没有混淆,则需要用DelmitedText或者CommaText
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 数组 列表 array list 字符串 文本 string text 对象 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
类型:string
|
||||
@@ -661,6 +741,8 @@ DelmitedText所依赖的引号符。一般在串中存在分割符时使用
|
||||
|
||||
功能同Text,区别在于在读取时TextW返回为宽字节字符串,而Text返回的是多字节字符串
|
||||
|
||||
<!-- tags: Object TStringList 字符串列表 读取 获取 数组 列表 array list 字符串 文本 string -->
|
||||
|
||||
可见性:public
|
||||
|
||||
类型:string
|
||||
|
||||
Reference in New Issue
Block a user