ScriptingFunctionsstrunpack本页总览strunpack注意这个$函数以小写字母开头。 描述 该函数用于解包字符串。 参数 名称说明dest[]目标字符串(引用传递),用于存储解包后的内容const source[]源字符串(已打包的原始字符串)maxlength = sizeof (string)最大解包长度(默认取目标字符串容量) 返回值 解包的字符数量。 示例 new string[17];new pstring[17 char] = !"Hi, how are you?";strunpack(string, pstring); // 解包已压缩字符串 相关函数 ispacked: 检测字符串是否已打包 strpack: 打包字符串 strcmp: 比较字符串是否相同 strfind: 在字符串中搜索子串 strins: 插入字符串内容 strlen: 获取字符串长度 strmid: 截取子字符串 strval: 字符串转整型 strcat: 字符串拼接 strdel: 删除字符串片段