.ƽ̨нӿڣUTF-8봫ݡUTF-8UTF-8
.нűļUTF-8뱣棨UTF-8+
.ӿinfoط״̬ϵͳ״̬
.ӿaskwwwӦҳǶʽű
.ӿupfileformdataʽϴļĽգfnameļļѭύļuploadõĿ¼²ļַᴴĿ¼
.ӿupfile2formdataʽϴļĽգfnameļļѭύļuploadõĿ¼²ļַᴴĿ¼
.ӿupcacheformdataʽϴļĽգfnameļļѭύļcacheʱĿ¼²ļַᴴĿ¼
.ӿupfilesformdataʽϴļĽգfpathfnameļļѭύļָweb·²ļַᴴĿ¼
.ӿrestartˣرշ
.֧ϴ·ãָurlʹ·ļ[Upload]һ¼Ч
.֧pascal﷨ű
.֧Ŀ¼Ĭҳ͵ãã
.֧Ŀ¼ʶ
.֧web񣬾̬ı
.֧HOSTض301תƣӰӿڣ
.֧α̬ҳ̬űα̬ҳŻ¼
.֧JavaScriptã
.֧gzipѹģʽ
.֧IPã
.֧ãʱΪλ
.ֶ֧󶨣ӦͬĽűĿ¼


ú嵥

1.HTTP HTTP/HTTPSתûпƣ
  (*
    ⣺HTTP֧ssl
    ʽhttp(ַͷ JSON|SOAP|FILE|GET|POST|DELETEʱ 100ϣ
    __________ύʽ 65001|936ձʽ 65001|936
    __________ύ true|falseձ true|false);
    ַ.asText.asTextͷ.asText.asTextʱ.asInteger
    ______ύʽ.asIntegreձʽ.asIntegre
    ______ύ.asBooleanձ.asBoolean
    أasText
    ʾHTTP('http://offeu.com/utf8.txt','','','GET',10000,65001,65001,false,false);
    HTTP('http://localhost:8833/upfile','fname=file(/data.json)&utt=xxoo','','FILE',10000,65001,65001,false,false);

    caption:HTTP request, support ssl
    format:http(url,params,headers,method JSON|SOAP|FILE|GET|POST|DELETE,
    _______timeout millisecond,requestCoding 65001|936,responseCoding 65001|936,
    _______encoding true|false,decoding true|false);
    params:url.asText,params.asText,headers.asText,method.asText,
    _______timeout.asInteger,requestCoding.asInteger,responseCoding.asInteger,
    _______encoding.asBoolean,decoding.asBoolean;
    result:asText
    example:HTTP('http://offeu.com/utf8.txt','','','GET',10000,65001,65001,false,false);
    HTTP('http://localhost:8833/upfile','fname=file(/data.json)&utt=xxoo','','FILE',10000,65001,65001,false,false);
  *)
2.DBConn/DBExec/DBQuery/DBQueryToJson/DBQueryToTxt/DBQueryToExcel ݿעƣ
  (*
    ⣺ԴݿԴ
    ʽDBConn(Դ,Ӳ);
    Դ.asText,Ӳ.asText
    أasBoolean
    ʾDBConn('mydb','DriverID=MSAcc;Database=.\db.mdb');
    עֻӣǲɾʱգӳɹŻ᷵True
    ǻɾӵĻӰ첢ʹãʱջõ㡣

    caption:Add data source (database connection source)
    format:DBConn(name,params);
    params:name.asText,params.asText
    result:asBoolean
    example:DBConn('mydb','DriverID=MSAcc;Database=.\db.mdb');
    Note: Only allowed to add, do not overwrite does not delete
    (emptied restart the service), the new success will be added to return True.
    If you overwrite or delete the connection, it will affect the concurrent
    use, so it will be better to empty the service restart.
  *)
  (*
    ⣺ִSQL
    ʽDBExec(Դ,SQL[,1,...,n]);
    Դ.asText,SQL.asText
    أasBoolean
    ʾDBExec('mydb','update tuser set fuser=:p1 where fid=1','admin');

    caption:Execute SQL statements
    format:DBExec(conn,sql[,P1,...,Pn]);
    params:conn.asText,sql.asText
    result:asBoolean
    example:DBExec('mydb','update tuser set fuser=:p1 where fid=1','admin');
  *)
  (*
    ⣺ʹSQLѯݿ
    ʽDBQuery(Դ,SQL[,1,...,n]);
    Դ.asText,SQL.asText
    أasDataset
    ʾDBQuery('mydb','select * from tuser where fname=:p1','admin');

    caption:Use SQL statements to query the database
    format:DBQuery(conn,sql[,P1,...,Pn]);
    params:conn.asText,sql.asText
    result:asDataset
    example:DBQuery('mydb','select * from tuser where fname=:p1','admin');
  *)
  (*
    ⣺ʹSQLѯݿⲢJSON
    ʽDBQueryToJSON(Դ,SQL[,1,...,n]);
    Դ.asText,SQL.asText
    أasText
    ʾDBQueryToJSON('mydb','select * from tuser where fname=:p1','admin');

    caption:Use SQL statements to query the database and output json
    format:DBQueryToJSON(conn,sql[,P1,...,Pn]);
    params:conn.asText,sql.asText
    result:asText
    example:DBQueryToJSON('mydb','select * from tuser where fname=:p1','admin');
  *)
  (*
    ⣺ʹSQLѯݿⲢ浽ıļ
    ʽDBQueryToTxt(Դ,SQL[,1,...,n]);
    Դ.asText,SQL.asText
    أasText
    ʾDBQueryToTxt('mydb','select * from tuser where fname=:p1','admin');

    caption:Use SQL statements to query the database and save it to a text file
    format:DBQueryToTxt(conn,sql[,P1,...,Pn]);
    params:conn.asText,sql.asText
    result:asText
    example:DBQueryToTxt('mydb','select * from tuser where fname=:p1','admin');
  *)
  (*
    ⣺ʹSQLѯݿⲢ浽Excelļ
    ʽDBQueryToExcel(Դ,SQL[,1,...,n]);
    Դ.asText,SQL.asText
    أasText
    ʾDBQueryToExcel('mydb','select * from tuser where fname=:p1','admin');

    caption:Use SQL statements to query the database and save it to a excel file
    format:DBQueryToExcel(conn,sql[,P1,...,Pn]);
    params:conn.asText,sql.asText
    result:asText
    example:DBQueryToExcel('mydb','select * from tuser where fname=:p1','admin');
  *)
3.URLencode ַ/뺯
  (*
    ⣺URL
    ʽURLencode([, 65001|936[,Ƿ true|false]]);
    .asText,.asInteger,Ƿ.asBoolean
    أasText
    ʾURLencode('123456',65001,true);

    caption:URLencoding
    format:URLencode(content[,encode 65001|936[,encoding true|false]]);
    params:content.asText,encode.asInteger,encoding.asBoolean
    result:asText
    example:URLencode('123456',65001,true);
  *)
4.RegexCheck/Regex ʽȡֵ/Уַ
  (*
    ⣺ʹʽ֤
    ʽRegexCheck(,ʽ);
    .asText,ʽ.asText
    أasBoolean
    ʾRegexCheck('I am 18 years old forever','.*');

    caption:Use regular expressions to validate the data
    format:RegexCheck(content,regex);
    params:content.asText,regex.asText
    result:asBoolean
    example:RegexCheck('I am 18 years old forever','.*');
  *)
  (*
    ⣺ʹʽȡ
    ʽRegex(,ʽ);
    .asText,ʽ.asText
    أasRecord
    ʾRegex('I am 18 years old forever','.*');

    caption:Use regular expressions to get the data
    format:Regex(content,regex);
    params:content.asText,regex.asText
    result:asRecord
    example:Regex('I am 18 years old forever','.*');
  *)
5.JsonToRecord/RecordToJson/JsonRead/JsonSave/JsonCheck JsonRecordתJsonļȡ뱣棬JsonǷЧ
  (*
    ⣺JsonַתRecord¼
    ʽJsonToRecord();
    .asText
    أasRecord
    ʾJsonToRecord('{"name": "ɭ","sex": ""}');

    caption:Json string to Record set
    format:JsonToRecord(json);
    params:json.asText
    result:asRecord
    example:JsonToRecord('{"name": "Vincent","sex": "male"}');
  *)
  (*
    ⣺Record¼תJsonַ
    ʽRecordToJson(¼);
    ¼.asRecord
    أasText
    ʾRecordToJson(JsonToRecord('{"name": "ɭ","sex": ""}'));

    caption:Record set to Json string
    format:RecordToJson(Record);
    params:Record.asRecord
    result:asText
    example:RecordToJson(JsonToRecord('{"name": "Vincent","sex": "male"}'));
  *)
  (*
    ⣺ȡļjsonʽתɼ¼
    ʽJsonRead(ļ);
    ļ.asText
    أasRecord
    ʾJsonRead('/up/data.json');

    caption:Read the file(json format) and converted into a record set
    format:JsonRead(filename);
    params:filename.asText
    result:asRecord
    example:JsonRead('/up/data.json');
  *)
  (*
    ⣺Jsonַ浽ļ
    ʽJsonSave(json,ļ);
    json.asText,ļ.asText
    أasBoolean
    ʾJsonSave('{"a":"b"}','/up/data.json');
    עweb·/ͷβ/ʹ..\web·hostй

    caption:Json string saved to the file
    format:JsonSave(json,filename);
    params:json.asText,filename.asText
    result:asBoolean
    example:JsonSave('{"a":"b"}','/up/data.json');
    Note: web path required / beginning, end can not /, not allowed to use .. \,
    web path and host settings related.
  *)
  (*
    ⣺УJSONǷWPҪ
    ʽJsonCheck(JSONַ);
    JSON.asText
    أasBoolean
    ʾJsonCheck('{"a":"b"}');

    caption:check json
    format:JsonCheck(Json);
    params:Json.asText
    result:asBoolean
    example:JsonCheck('{"a":"b"}');
  *)
6.UnicodeToAnsi Unicodeת
  (*
    ⣺unicodeת
    ʽUnicodeToAnsi(unicode);
    unicode.asText
    أasText
    ʾUnicodeToAnsi('{"name":"\u59d3\u540d","sex":"\u6027\u522b"}');

    caption:Convert unicode to Chinese
    format:UnicodeToAnsi(unicode);
    params:unicode.asText
    result:asText
    example:UnicodeToAnsi('{"name":"\u59d3\u540d","sex":"\u6027\u522b"}');
  *)
7.Base64ToFile base64ļ벢ļļ
  (*
    ⣺base64뵽ļ
    ʽBase64toFile(base64,ļ);
    base64.asText,ļ.asText
    أasText

    caption:base64 decoding to file
    format:Base64toFile(unicode);
    params:base64.asText,filename.asText
    result:asText
    example:
    $f:=Base64ToFile('iVBORw0KGgoAAAANSUhEUgAAABMAAAARCAYAAAA/mJfHAAACz0lEQVQ4jXVUz2sTQRh9s7M/kiba'
    +'1KZSCq0HCQgteLMexINUL6KCIngQpFLBg/+A3kTPIiheFJGi4klPKl6sF7G11Wqp1FKkbWKsSW2y'
    +'TTfNZrM74+xOzKatHfKYH+R7+77vfTOkWq1ybBo/F6cwOfoM8zNvYRWyqJSKYDUPED/CDXT3HseZ'
    +'SzfR2Z1qxKyWqiCO4zTIOOf4/GEYlrmAzPc3yGemARcBSfO8vs4Rj7RgYOgu9h85F8QWijZU27Yb'
    +'7F8/DiOqE2Smn8AuFbDT0AG1TkTrswJEwRGjHibuXwb1XPQdPQ/PZSC5XC5Qll14j4r5DempR3DK'
    +'pgzcBopQGKdKsHZFYodvjMCN7JHKGPOw9OMVUJ4FdcuIUk3kjG3hi0wYFIpYcMIx9/g6egYfSLKV'
    +'pS9QaxlU1+YRoSIvJtPZAiJBFYKdqgq1vrdn3qG4lIVaqVRQ+j0GpZKDHhQoDArQPIj0ICZS9Ml0'
    +'Rf6BR2NIT45IMtfKIOJY4uO0bmsTGlZLcM93UhNkGgxG5LmhYjE9J8k8uwziKfKzPhjCddMZF4gI'
    +'NSpT0aoaUF0i0xfOUtsRparV4LEdcKs+mbLROQ8b9sT1U6SiGBQaMUL1jjAx2QlF13VoiT5oXg06'
    +'0SWUOshGaAK2Q5EUNQITPcj1YGarZbB9/VC7urrgJk+gmn+KWEtcqqj9p7/qZy2EoiNiyDMmla1F'
    +'dyO2txdqKiXvV8EcQlv6hci/LQzeDm5oDlv+BX7hmtiSoHzBaO2/gqKbFPl7MoV/4JuApvVaBWbq'
    +'ABIDp0BVJSRTRLPGTz+EWRa9ZllhANuGaLmAwq4eJK7eEs4IhwUZYYwFgv0XI5AtLu7q69vQJ54j'
    +'FmsXvdAeumwL1fk8rKIF9+QgEmcvNtpwdCwL8mdFvCd8y5MmrpaJ9fGXILOfQMyiICTg8Q6g9yBi'
    +'h45B8x2tD/8tu3NvHH8B9EZlK6ozLtkAAAAASUVORK5CYII=',formatdatetime('yyyyMMddhhmmsszzz".jpg"',now));
    if $f<>'error' then begin
    'File saved successfully, the file name is:'$f;' <img src="'$f'">'
    end else begin
    'File save failed.';
    end;
  *)
8.CAPTCHA ֤ͼƬɣdata:image/jpeg;base64
  (*
    ⣺֤ͼƬ(base64)
    ʽcaptcha(35[,Ʒ100~20])
    .asText,Ʒ.asInteger
    أasText
    ʾcaptcha('abc123ABC',100);

    caption:Generate captcha image data (base64)
    format:captcha(content[,quality]);
    params:content.asText,quality.asInteger
    result:asText
    example:captcha('abc123ABC',100);
  *)
9.QRCode άɣdata:image/jpeg;base64
  (*
    ⣺ɶάͼƬ(base64)
    ʽqrcode(1210ĸֵ605[Ʒ100~20[Ŵ]]);
    .asText,Ʒ.asInteger,.asInteger
    أasText
    ʾqrcode('abc123ABC',100,2);

    caption:Generate QRCode image data (base64)
    format:qrcode(content[,quality[,multiple]]);
    params:content.asText,quality.asInteger,multiple.asInteger
    result:asText
    example:qrcode('abc123ABC',100,2);
  *)
10.GetDirList/GetDirFile/GetFileList/CopyFile/DeleteFile/MakeDir/RemoveDir/FileExists/DirectoryExists/
   FileSize/FileDateTime/DirDateTime ļغ
  (*
    ⣺ȡĿ¼бĿ¼
    ʽGetDirList(·);
    ·.asText
    أasArray
    ʾGetDirList('/');

    caption:Get a list of directories, excluding subdirectories
    format:GetFileList(path);
    params:path.asText
    result:asArray
    example:GetFileList('/');
  *)
  (*
    ⣺ȡļбĿ¼µļ
    ʽGetDirFile(·);
    ·.asText
    أasRecord.asArray['r']
    ʾGetDirFile('/');

    caption:Get a list of files, excluding files in subdirectories
    format:GetDirFile(path);
    params:path.asText
    result:asRecord.asArray['r']
    example:GetDirFile('/');
  *)
  (*
    ⣺ȡļбĿ¼µļ
    ʽGetFileList(·);
    ·.asText
    أasRecord.asArray['r']
    ʾGetFileList('/');

    caption:Get a list of files, including files in subdirectories
    format:GetFileList(path);
    params:path.asText
    result:asRecord.asArray['r']
    example:GetFileList('/');
  *)
  (*
    ⣺ļ罫 /a.txt Ƶ /doc/a.txt
    ʽCopyFile(ԴļĿļ);
    ·.asText
    أasBoolean
    ʾCopyFile('/cache/a.jpg','/up/a.jpg');
    עᴴĿ¼ĿĿ¼ڣḴʧ

    caption:copy file
    format:CopyFile(Source,target);
    params:Source.asText,target.asText
    result:asBoolean
    example:CopyFile('/cache/a.jpg','/up/a.jpg');
    Note: The directory will not be created, and if the target directory does
    not exist, replication will fail
  *)
  (*
    ⣺ɾָļ
    ʽDeleteFile(ļ);
    ļ.asText
    أasBoolean
    ʾDeleteFile('/up/a.png');

    caption:Delete the specified file
    format:DeleteFile(filename);
    params:filename.asText
    result:asBoolean
    example:DeleteFile('/up/a.png');
  *)
  (*
    ⣺Ŀ¼
    ʽMakeDir(Ŀ¼);
    Ŀ¼.asText
    أasBoolean
    ʾMakeDir('/up/aaa');

    caption:Create a directory
    format:MakeDir(dir);
    params:dir.asText
    result:asBoolean
    example:MakeDir('/up/aaa');
  *)
  (*
    ⣺ɾָĿ¼
    ʽRemoveDir(·);
    ·.asText
    أasBoolean
    ʾRemoveDir('/up/aaa');

    caption:Delete the specified directory
    format:RemoveDir(path);
    params:path.asText
    result:asBoolean
    example:RemoveDir('/up/aaa');
  *)
  (*
    ⣺жļǷ
    ʽFileExists(·);
    ·.asText
    أasBoolean
    ʾFileExists('/up/a.png');

    caption:Judge whether the file exists
    format:FileExists(filename);
    params:filename.asText
    result:asBoolean
    example:FileExists('/up/a.png');
  *)
  (*
    ⣺ж·Ƿ
    ʽDirectoryExists(·);
    ·.asText
    أasBoolean
    ʾDirectoryExists('/up/aaa');

    caption:Judge whether the path exists
    format:DirectoryExists(path);
    params:path.asText
    result:asBoolean
    example:DirectoryExists('/up/aaa');
  *)
  (*
    ⣺ȡļС
    ʽFileSize(ļ);
    ļ.asText
    أasLargeInt Int64
    ʾFileSize('/up/a.png');

    caption:Get the file size
    format:FileSize(filename);
    params:filename.asText
    result:asLargeInt Int64
    example:FileSize('/up/a.png');
  *)
  (*
    ⣺ȡļʱ
    ʽFileDateTime(ļ);
    ļ.asText
    أasDateTime
    ʾFileDateTime('/up/a.png');

    caption:Get the file date and time
    format:FileDateTime(filename);
    params:filename.asText
    result:asDateTime
    example:FileDateTime('/up/a.png');
  *)
  (*
    ⣺ȡĿ¼ʱ
    ʽDirDateTime(Ŀ¼);
    Ŀ¼.asText
    أasDateTime
    ʾDirDateTime('/up');

    caption:Get the Directory date and time
    format:DirDateTime(path);
    params:path.asText
    result:asDateTime
    example:DirDateTime('/up');
  *)
11.Include һⲿűļظýűļִн
  (*
    ⣺ؽűļظýűļִн
    ʽInclude(ļ);
    ļ.asText
    أasText
    ʾInclude('admin\login.api');

    caption:Load the script file and return the execution result of the script file
    format:Include(filename);
    params:filename.asText
    result:asText
    example:Include('admin\login.api');
  *)
12.MergePng ϲpngļһjpgļ
  (*
    ⣺ϲpngͼƬͼƬݣbase64
    ʽMergePng(Ʒ,,,Ŀļ,Դļ1[,Դļ2,...,Դļn]);
    Ʒ.asInteger,.asInteger,.asInteger,Ŀļ.asText,Դļ.asText
    أasText data:image/jpeg;base64,....
    ʾMergePng(100,2048,1536,'abc.jpg','c:\1.jpg','c:\2.jpg');

    caption:Merge png pictures and output picture data (base64)
    format:MergePng(quality,width,height,objFile,srcFile1[,srcFile2,...,srcFileN]);
    params:quality.asInteger,width.asInteger,height.asInteger,
    _______objFile.asText,srcFile1.asText
    result:asText data:image/jpeg;base64,....
    example:MergePng(100,2048,1536,'abc.jpg','c:\1.jpg','c:\2.jpg');
  *)
13.GetMachineInfo ڻȡӲϢBIOSϢUUID롢CPUϢWinϵͳGUIDϢ
  (*
    ⣺ڻȡӲϢBIOSϢUUID롢CPUϢWinϵͳGUIDϢ
    ʽGetMachineInfo;
    
    أasText
    ʾGetMachineInfo;
    עUUID䣬װϵͳӰ죬֧winmacCPUIDͬͬWinϵͳGUIDװϵͳ䡣

    caption:Used to obtain hardware and software information
    format:GetMachineInfo;
    params:
    result:asText
    example:GetMachineInfo;
    Note: UUID unchanged, reinstall the system does not affect win and mac;
    CPUID the same batch; Win system GUID reinstall the system will change.
  *)
14.UnZip ѹzipļ
  (*
    ⣺ѹzipļ
    ʽUnZip(ļ,·);
    ļ.asText,·.asText
    أasText {"result":"success or error","msg":""}
    ʾUnZip('/up/abc.zip','/up');

    caption:Unzip the zip file
    format:UnZip(filename,path);
    params:filename.asText,path.asText
    result:asText {"result":"success or error","msg":""}
    example:UnZip('/up/abc.zip','/up');
  *)
15.Exit/Error ִֹͣкűϢError׳쳣ִֹͣкűExit׳ʾִֹͣкű
  (*
    ⣺˳ǰűʾ
    ʽExit();
    .asText
    أrtc_Text Exit('abc')  abc
    ʾExit('abc');
    ע⣺ǰݻִУЧִн

    caption:Exit the current script, the output prompt
    format:Exit(content);
    params:content.asText
    result:rtc_Text Exit('abc') result abc
    example:Exit('abc');
    Note: The contents of the front of the function will be executed normally,
    the variable is valid, the execution result can be output by this function
  *)
  (*
    ⣺˳ǰűʾ
    ʽError();
    .asText
    أrtc_Text Error('abc')  {"result":"error","msg":"abc"}
    ʾError('abc');
    ע⣺ǰݻִУЧִн

    caption:Exit the current script, the output prompt
    format:Error(content);
    params:content.asText
    result:rtc_Text Error('abc') result {"result":"error","msg":"abc"}
    example:Error('abc');
    Note: The contents of the front of the function will be executed normally,
    the variable is valid, the execution result can be output by this function
  *)
16.΢Žӿ
  (*
    ⣺΢Ϣ
    ʽWxEncryptMsg(sMsg,sToken,sCorpid,sEncodingAESKey);
    .asText (вΪı)
    أasText

    caption:Weixin Encrypt Msg
    format:WxEncryptMsg(sMsg,sToken,sCorpid,sEncodingAESKey);
    params:param.asText
    result:asText
  *)
  (*
    ⣺΢Ϣ
    ʽWxDecryptMsg(sToken,sTimestamp,sNonce,sMsgEncrypt,
    sMsg_signature,sCorpid,sEncodingAESKey);
    .asText (вΪı)
    أasText

    caption:Weixin Decrypt Msg
    format:WxDecryptMsg(sToken,sTimestamp,sNonce,sMsgEncrypt,
    sMsg_signature,sCorpid,sEncodingAESKey);
    params:param.asText
    result:asText
  *)
17.ƻ
  (*
   ⣺ȡƻ״̬
   ʽTaskInfo
   
   أasText
   ʾtaskinfo;

   caption:Get scheduled task status
   format:taskinfo
   params:
   result:asText
   example:taskinfo;
  *)
  (*
   ⣺ͣƻ񣨹
   ʽTaskPause(,Ƿ);
   .asInteger,Ƿ.asBoolean
   أasBoolean;
   ʾtaskpause(true);

   caption:Pause scheduled task(Suspended)
   format:TaskPause(TaskID,Suspended);
   params:TaskID.asInteger,Suspended.asBoolean;
   result:asBoolean;
   example:taskpause(true);
  *)
  (*
   ⣺ؼƻ
   ʽTaskLoad(,űļ);
   .asInteger,űļ.asText
   أasBoolean;
   ʾtaskload(0,'test.api');

   caption:Load scheduled task
   format:TaskPause(TaskID,ScriptFileName);
   params:TaskID.asInteger,ScriptFileName.asText;
   result:asBoolean;
   example:taskload(0,'test.api');
  *)
18.ϣ㷨
  (*
    ⣺ϣ㷨
    ʽHASH(,㷨[,ʽ]);
    ı,ı(MD5,SHA1,SHA224,SHA256,SHA384,SHA512,SHA512_224,SHA512_256)[,ı(Hex/Base64)]
    أı
    ʾhash('123456','md5','hex');

    caption:Hash algorithm
    format:HASH(content,algorithm[,format]);
    params:Text,Text(MD5,SHA1,SHA224,SHA256,SHA384,SHA512,SHA512_224,SHA512_256)[,Text(Hex/Base64)]
    result:Text
    example:hash('123456','md5','hex');
  *)
  (*
    ⣺ϣԿ㷨
    ʽHMAC(,Կ,㷨[,ʽ]);
    ı,ı,ı(MD5,SHA1,SHA224,SHA256,SHA384,SHA512,SHA512_224,SHA512_256)[,ı(Hex/Base64)]
    أı
    ʾhmac('123456','key','md5','hex');

    caption:hmac hash algorithm
    format:HMAC(content,key,algorithm[,format]);
    params:Text,Text,Text(MD5,SHA1,SHA224,SHA256,SHA384,SHA512,SHA512_224,SHA512_256)[,Text(Hex/Base64)]
    result:Text
    example:hmac('123456','key','md5','hex');
  *)
19.ִⲿ򲢲
  (*
    ⣺ִCMDؽ
    ʽRunCMD(ָ);
    ı
    أı
    ʾRunCMD('dir /ad c:\');

    caption:Execute CMD and return results
    format:RunCMD(command);
    params:Text
    result:Text
    example:RunCMD('dir /ad c:\');
  *)

n.
  Length		ַ			<?length('12345')?>
  Trim			ַҿո		<?trim(' abc ')?>
  Now			ȡǰʱ		<?formatdatetime('yyyy-MM-DD hh:mm:ss.zzz',now);?>
  StrToDatetime		ַת		<?formatdatetime('yyyy-MM-DD hh:mm:ss.zzz',StrToDatetime('2019-01-01 00:00:00'));?>
  FormatDateTime	ʽ			<?formatdatetime('yyyy-MM-DD hh:mm:ss.zzz',now);?>
  FormatFloat		ʽֵ			<?formatfloat('#,##0.#0',555.55);?>
  FormatCapacity	ʽʾ			<?formatcapacity(1024);?>
  Pos			λַַеλ	<?copy('abcdefg',pos('e','abcdefg'),2);?>
  Copy			ָλøַָ	<?copy('abcdefg',pos('e','abcdefg'),2);?>
  Sort			ַ		<?sort('a','c','d');?>
  Split			ַв		<?split('a,c,d',',');?>
  Log			¼־Ϣ־Ŀ¼	<?log('','־');?>
  AES			ַAES		<?AES('123456','key',true,128,true);?>//һΪܣǷECBģʽ
  DES			ַDES		<?DES('123456','key',true);?>//һΪ
  BlowFish		ַBlowFish	<?BlowFish('123456','key',true,'ECB','Hex');?>
  BASE64		ַBASE64		<?base64('123456',true);'|'base64('MTIzNDU2',false);?>
  FileSHA1		ȡļSHA1		<?FileSHA1('/up/a.png');?>
  MD5			ַMD5		<?md5('123456');?>
  FileMD5		ȡļMD5			<?FileMD5('/up/a.png');?>
  StrToFloat		ַתɸ		<?StrToFloat('55.55');?>
  Trunc			ȡ֣	<?Trunc(55.55);?>
  ABS			ȡֵ			<?ABS(-100.55);?>
  Random		ȡ			<?Random(100);?>
  LowerCase		ĸתСд			<?LowerCase('TEST');?>
  UpperCase		ĸתд			<?UpperCase('test');?>
  QuotedStr		ַӵ		<?QuotedStr('test');?>
  Replace		滻ָݣ֧		<?Replace('һֻԱǣ','(?<=һ)ֻ(?=)','ƥ')?>
  Sleep			ָʱ		<?Sleep(1000);?>
  Timestamp		ȡUnixʱ			<?Timestamp;?>
  TimestampToDateTime	Unixʱԭ	<?FormatDateTime('yyyy-MM-DD hh:mm:ss',TimestampToDateTime(Timestamp));?>
  GetPort		ȡǰķ˿		<?GetPort;?>
  Snowflake		ȡΨһid			<?Snowflake(1);?>

