N gsub(reg,string,target)
每次常规表达式
reg
匹配时替换
target
中的
string
N index(search,string) 返回 string 中 search 串的位置
A length(string) 求串 string 中的字符个数
N match(string,reg) 返回常规表达式 reg 匹配的 string 中的位置
N printf(format,variable) 格式化输出,按 format 提供的格式输出变量 variable 。
N split(string,store,delim) 根据分界符 delim, 分解 string 为 store 的数组元素
N sprintf(format,variable) 返回一个包含基于 format 的格式化数据, variables 是要放到串中的数据
G strftime(format,timestamp) 返回一个基于 format 的日期或者时间串, timestmp 是 systime() 函数返回的时间
N sub(reg,string,target) 第一次当常规表达式 reg 匹配,替换 target 串中的字符串
A substr(string,position,len) 返回一个以 position 开始 len 个字符的子串
P totower(string) 返回 string 中对应的小写字符
P toupper(string) 返回 string 中对应的大写字符
A atan(x,y) x 的余切 ( 弧度 )
N cos(x) x 的余弦 ( 弧度 )
A exp(x) e 的 x 幂
A int(x) x 的整数部分
A log(x) x 的自然对数值
N rand() 0-1 之间的随机数
N sin(x) x 的正弦 ( 弧度 )
A sqrt(x) x 的平方根
A srand(x) 初始化随机数发生器。如果忽略 x ,则使用 system()
G system() 返回自 1970 年 1 月 1 日以来经过的时间(按秒计算)
N index(search,string) 返回 string 中 search 串的位置
A length(string) 求串 string 中的字符个数
N match(string,reg) 返回常规表达式 reg 匹配的 string 中的位置
N printf(format,variable) 格式化输出,按 format 提供的格式输出变量 variable 。
N split(string,store,delim) 根据分界符 delim, 分解 string 为 store 的数组元素
N sprintf(format,variable) 返回一个包含基于 format 的格式化数据, variables 是要放到串中的数据
G strftime(format,timestamp) 返回一个基于 format 的日期或者时间串, timestmp 是 systime() 函数返回的时间
N sub(reg,string,target) 第一次当常规表达式 reg 匹配,替换 target 串中的字符串
A substr(string,position,len) 返回一个以 position 开始 len 个字符的子串
P totower(string) 返回 string 中对应的小写字符
P toupper(string) 返回 string 中对应的大写字符
A atan(x,y) x 的余切 ( 弧度 )
N cos(x) x 的余弦 ( 弧度 )
A exp(x) e 的 x 幂
A int(x) x 的整数部分
A log(x) x 的自然对数值
N rand() 0-1 之间的随机数
N sin(x) x 的正弦 ( 弧度 )
A sqrt(x) x 的平方根
A srand(x) 初始化随机数发生器。如果忽略 x ,则使用 system()
G system() 返回自 1970 年 1 月 1 日以来经过的时间(按秒计算)