integer 32位整形值 lower 全为Unicode小写字母 upper 全为Unicode大写字母 punct 全为Unicode标点符号 space 全为Unicode空格符号 wordchar 全为字母和连接符(主要指下划线) xdigit 全为十六进制数,包括(0~9,a~f,A~F) string is <字符类型> <字符串> 判断字符串是不是指定的字符类型,是返回1,否返回0. 3...
在string1种查找string2的定义次出现的位置。未找到返回-1。 string length string 返回字符串string的长度。 string match pattern string 判断string是否能匹配pattern。pattern是以shell文件名的 统配格式来给出。 string range string first last 返回字符串string中从first到last之间的内容。 string tolower string ...
在string1种查找string2的定义次出现的位置。未找到返回-1。 string length string 返回字符串string的长度。 string match pattern string 判断string是否能匹配pattern。pattern是以shell文件名的 统配格式来给出。 string range string first last 返回字符串string中从first到last之间的内容。 string tolower string ...
string index str charIndex 返回字符串str索引charIndex处的字符。索引是从0开始递增。如果charIndex小于0或大于或等于字符串的长度,则此命令返回一个空字符串。charIndex可以是以下几种形式: 索引 说明 integer 任何string is integer -strict。 end str最后一位的索引。 end-N 最后一位向前偏移N位。 end+N 最后...
1.一个命令就是一个字符串(string)。 2.命令是用换行符或分号来分隔的。 3.一个命令由许多的域组成。第一个于是命令名,其它的域作为参数来传递。 4.域通常是有空白(Tab横向制表健 Space空格)来分开的。 5.双引号可以使一个参数包括换行符或分号。三种子替换仍然发生。
集成开发环境(IDEs)和文本编辑器扩展:TCL常被用作定制和扩展IDE功能的脚本语言,例如Eclipse通过插件可以...
Scan command is used for parsing a string based to the format specifier. Some examples are shown below. Live Demo #!/usr/bin/tclshputs[scan"90"{%[0-9]}m]puts[scan"abc"{%[a-z]}m]puts[scan"abc"{%[A-Z]}m]puts[scan"ABC"{%[A-Z]}m] ...
atan2( x, y) Arc tangent of x/ y, in the range -p/2 to p/2. ceil( x) Smallest integer not less than x. cos( x) Cosine of x ( x in radians). cosh( x) Hyperboliccosine of x. double( i) Real value equal to integer i. ...
Standard_Integer bsection(Draw_Interpretor& di,Standard_Integer n,constchar** a){if(n <4) {di <<"use bsection r s1 s2 [-n2d/-n2d1/-n2d2] [-na] [tol]\n";return0;}//TopoDS_Shape aS1, aS2;//aS1=DBRep::Get(a[2]);aS2=DB...
if {([string is integer -strict $stepCommand]) || ($stepCommand == "b") || ($stepCommand == {}) || ($stepCommand == "e")} { catch {array set ::stepsource::varValues [array get ::stepsource::currentValues]} catch {array unset ::stepsource::currentValues} ...