⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dec_env.tcl.in

📁 Isolated Speech Recognition Process that using the Linux to run the program
💻 IN
字号:
#! @TCL@ -f# file: dec_env.tcl# # procedures to identify environment variables from input string and# expand them from the system## procedure to expand pathnames#proc expand_env_proc {instr} {    # declare globals    #    global p    global env    global dir_sep    global env_sep    # the output string    #    set outstr ""    # break the string into various sections    #    set instr [string trim $instr]    set ind 0    while {$ind >= 0} {		# extract each subpath string	#	set ind [string first $dir_sep $instr]	if {$ind < 0}  {	    set var $instr	} else {	    set var [string range $instr 0 $ind]	    set instr [string range $instr [expr $ind + 1] end]	    set instr [string trim $instr]	}	set var [string trimright $var $dir_sep]	# check if the subpath is an environment variable	#	if {[string index $var 0] == $env_sep} {	    set var [string range $var 1 end]	    set var "$env($var)"	}	set outstr [format "%s%s" $outstr $var]	# add directory separator if required	#	if {$ind >= 0} {	    set outstr [format "%s%s" $outstr $dir_sep]	}    }    # return the expanded string    #    return $outstr}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -