integer 32位整形值 lower 全为Unicode小写字母 upper 全为Unicode大写字母 punct 全为Unicode标点符号 space 全为Unicode空格符号 wordchar 全为字母和连接符(主要指下划线) xdigit 全为十六进制数,包括(0~9,a~f,A~F) string is <字符类型> <字符串> 判断字符串是不是指定的字符类型,是返回1,否返回0. 3...
任何string is integer -strict。 end str最后一位的索引。 end-N 最后一位向前偏移N位。 end+N 最后一位向后偏移N位。 M±N 索引为整数M和N的和或差。M、N与加减号之间不能有空格。 range string range str first last 返回str从索引first到last范围内的字符。first和last可以是string index支持的任何形...
stringisalpha"ăéαß以及汉字"stringisalnum"1234ăéαß以及汉字"stringisascii"Forever"stringislower"forever"stringisupper"FOREVER"stringiswordchar"Stu_No3"stringisdigit1234stringisxdigit"\\x33"stringisinteger1234stringiswideinteger1234stringisdouble1e-3stringislist {Forever Young .}stringisboolean ye...
% string is integer "1234567890123456789" 0 任何字母、数字和下划线wordchar: % string is wordchar "Hi_Hi" 1 任何16位进制字符([0-9][A-F][a-f])xdigit: % string is xdigit "0123456789abcdefABCDEF" 1 如果指定了-strict,空字符串就返回0,不指定则返回1。 % string is integer "" 1 % strin...
basic_format.tcl set name "John" set age 30 set result [format "Name: %s, Age: %d" $name $age] puts $result Here %s formats a string and %d formats a decimal integer. The variables name and age are substituted into the format string. The result is stored in result and printed. ...
% string length "This is a tcltk example" 23 两者在有其它字符出现的时候就会有区别了,比如中文: % string bytelength "这是一个tcltk示例" 23 % string length "这是一个tcltk示例" 11 一个中文为三个字节,所以造成了以上两者的区别,在使用这两个命令的时候需要注意这个不同点。
% string is integer "123.0" 0 % string is double "123.0" 1 % string is alnum "123a" 1 % string is alnum "123.0a" 0 The format command generates formatted strings and can perform some data conversions. It is equivalent to the C language sprintf command. Syntax: format formatString ?da...
# maxLineLen is an integer # charset is a string # path is a string set status [CkStringTable_AppendFromFile$maxLineLen $charset $path] Introduced in version9.5.0.62 Appends strings, one per line, from a file. Each line in thepathshould be no longer than the length specified inmaxLineLe...
删除失败:["Err", value, version]。错误是"ERR update version is stale", value 和 version 都是引擎最新的 其他错误返回异常 使用示例: 127.0.0.1:6379>EXSET foo bar OK 127.0.0.1:6379>EXCAS foo bzz 1 1) OK 2) 3) (integer) 2 127.0.0.1:6379>EXGET foo 1)"bzz"2) (integer) 2 127.0....
procedure Insert(Index: Integer; const S: string); Insert方法向TstringList插入一行字符串。在Insert里,我们可以自由地选择字符串插入的位置。参数S 代表要插入的字符串的内容,Index 代表要插入的位置。 procedure Delete(Index: Integer); Delete 方法删除某行字符串,我们同样可以自由地选择删除任意一行字符串。参...