table of contents
other languages
- English tcl8.6-doc
- English tcl8.5-doc
- 中文 (zh-CN)
- 繁體中文 (zh-TW)
other sections
split(3tcl) | Tcl Built-In Commands | split(3tcl) |
NAME¶
split - 把一個字符串分離成一個恰當的 Tcl 列表總覽 SYNOPSIS¶
split string ?splitChars?描述 DESCRIPTION¶
返回通過把字符串在每個用 splitChars 參數指定的字符上分開而建立的一個列表。結果列表的每個元素都是由位於在 splitChars 中的字符的實例之間的來自 string 的字符組成。如果 string 包含在 splitChars 中毗連的字符,或者 string 的第一個或最後一個字符在 splitChars 中,則生成空列表元素。如果 splitChars 是一個空串,則在 string 中的每個字符都變成結果列表中的一個獨立元素。 SplitChars 缺省是標準白空格字符。例如,split "comp.unix.misc" .
split "Hello world" {}
參見 SEE ALSO¶
join(n), list(n), string(n)關鍵字 KEYWORDS¶
list, split, string[中文版維護人]¶
寒蟬退士[中文版最新更新]¶
2001/10/30《中國 Linux 論壇 man 手冊頁翻譯計劃》:¶
http://cmpp.linuxforum.net跋¶
本頁面中文版由中文 man 手冊頁計劃提供。中文 man 手冊頁計劃:https://github.com/man-pages-zh/manpages-zh
Tcl |