
共59页
产品名称崔 鹏
批准
陈 旻审核崔 鹏审核陈旭盛拟制深圳市华为技术有限公司
版权所有 侵权必究
修订记录
目 录
19
6.1eval 命令...........................................................
196.2.5switch 命令....................................................196.2.4break 和continue 命令..............................................186.2.3foreach 命令....................................................186.2.2for 命令...
....................................................176.2.1while 命令......................................................176.2循环命令for
命令和单词符号.................................................
7
2语法...................................................................61引言...................................................................
41
11.2.4 TCL 的版本和库...............................................
4011.2.3命令信息.....................................................3911.2.2过程信息.....................................................3811.2.1变量信息.....................................................3811.2 info 命令..........................................................3711.1查询数组中的元素..................................................3711深入TCL ..............................................................3510.4其他异常.........................................................3510.3使用catch 捕获错误..................................................3410.2从TCL 脚本中产生错误...............................................3310.1错误.............................................................3310错误和异常............................................................309.
5文件操作和获取文件信息..............................................309.4 当前工作目录......................................................299.3随机文件访问.......................................................289.2基本文件输入输出命令................................................289.1文件名............................................................289文件访问...............................................................278.5.15string trimright string ?chars?....................................278.5.14string trimleft string ?chars?.......................................278.5.13 string trim string ?chars?......................................278.5.12string toupper string ?first? ?last?................................278.5.11string tolower string ?first? ?last?.................................278.5.10string replace string first last ?newstring?.........................278.5.9string repeat string count ........................................278.5.8string range string first last ......................................268.5.7string match ?-nocase? pattern string ...................................268.5.6string length string .............................................268.5.5string last string1 string2 ?startindex?...............................268.5.4string index string charIndex ........................................268.5.3string first string1 string2 ?startindex?.................................258.5.2string equal ?-nocase? ?-length int? .258.5.1string compare ?-nocase? ?-length int? .258.5string 命令..........................................................258.4regsub 命令...............
..........................................238.3regexp 命令.........................................................238.2scan 命令...........................................................228.1format 命令.........................................................228字符串操作.............................................................217.4引用
59
14总结.................................................................
5813.5在C/C++应用程序中嵌入TCL ..........................................5513.4利用clientData 参数和deleteProc 参数......................................5413.3.3注册命令.....................................................5413.3.2编写扩展命令对应的C/C++过程....................................5213.3.1Tcl_Obj 结构...................................................5213.3扩展自己的命令
方法(一)............................................
48
13.1生成自己的TCLSH ..................................................
4713TCL 和C\C++...........................................................4512历史记录..................................................
............4411.2.9自动加载.....................................................4411.2.8 unknown 命令..................................................4311.2.7 命令的重命名和删除............................................4111.2.6 跟踪变量....................................................4111.2.5 命令的执行时间...............................................绝密
请输入文档编号
TCL 培训教程(全
)
更多推荐
命令,文件,错误
发布评论